axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <>
Subject [jira] [Resolved] (AXIS2-5027) XmlOptions used to serialize a message in a generated Stub are not accessible
Date Sat, 14 May 2011 18:51:47 GMT


Andreas Veithen resolved AXIS2-5027.

       Resolution: Fixed
    Fix Version/s: 1.7.0

I've modified the template so that it generates a _getXmlOptions method that gives access
to the XmlOptions object.

> XmlOptions used to serialize a message in a generated Stub are not accessible
> -----------------------------------------------------------------------------
>                 Key: AXIS2-5027
>                 URL:
>             Project: Axis2
>          Issue Type: Improvement
>          Components: Tools
>    Affects Versions: 1.5.4
>         Environment: Windows XP, Ecplise IDE 3.5
>            Reporter: Yoann Guerro
>            Assignee: Andreas Veithen
>            Priority: Minor
>             Fix For: 1.7.0
> 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();
>, 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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message