You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2011/05/14 19:47:47 UTC
[jira] [Assigned] (AXIS2-5027) XmlOptions used to serialize a
message in a generated Stub are not accessible
[ https://issues.apache.org/jira/browse/AXIS2-5027?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen reassigned AXIS2-5027:
--------------------------------------
Assignee: Andreas Veithen
> 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
> Assignee: Andreas Veithen
> 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