axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yoann Guerro (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AXIS2-5027) XmlOptions used to serialize a message in a generated Stub are not accessible
Date Tue, 10 May 2011 09:39:03 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-5027?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Yoann Guerro updated AXIS2-5027:
--------------------------------

    Summary: XmlOptions used to serialize a message in a generated Stub are not accessible
 (was: XmlOptions used to serialize a message in a generate Stub are not accessible)

> XmlOptions used to serialize a message in a generated Stub are not accessible
> -----------------------------------------------------------------------------
>
>                 Key: AXIS2-5027
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5027
>             Project: Axis2
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.5.4
>         Environment: Windows XP, Ecplise IDE 3.5
>            Reporter: Yoann Guerro
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> I use the Axis2 wsdl2java generator with the following options: -uri MyTest.wsdl -o Test
-d xmlbeans -s -u -sn Test_Service -pn Test_Port -ns2p
> In the generated stub the toOM(RequestDocument param) function creates XmlOptions to
serialize the message:
> org.apache.xmlbeans.XmlOptions xmlOptions = new org.apache.xmlbeans.XmlOptions();
> param.save(outputStream, xmlOptions.setSaveNoXmlDecl());
> As a consequence XmlOption used while instantiating the param element are not taken into
account. In particular if we specify the use of default namespace as follows: 
> org.apache.xmlbeans.XmlOptions xmlOptions = new org.apache.xmlbeans.XmlOptions();
> xmlOptions.setUseDefaultNamespace();
> RequestDocument query = RequestDocument .Factory.newInstance(xmlOptions);
> Would it be possible to 
> - either keep the XmlOptions as an attribute of the XmlObject (or XmlTokenSource) 
> - or provide a method to pass XmlOptions to the client stub for reuse while serializing
the messages.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message