WSDL2C tool generates nodes for group references
------------------------------------------------
Key: AXIS2C-749
URL: https://issues.apache.org/jira/browse/AXIS2C-749
Project: Axis2-C
Issue Type: Bug
Components: code generation
Affects Versions: 1.1.0
Environment: I'm running Windows XP SP2 x86, but this seems to be OS
independent
Reporter: Michael Mole
When using the WSDL2C tool with a schema definition file that contains group
references, the generated serialize methods of the adb databindings insert the
groups as if they were elements.
In other words, I am using adb databindings with the WSDL2C tool. I have a
wsdl that defines a group. I then reference this group in one of my complex
types. The serialize method for this complex type is explicitly adding the
group as if it is an element. It should leave out the group node, and just add
the contents of the group. Please see (edited) snippets below:
<group name="TargetGroup">
<sequence>
<element name="target" type="string">
</element>
</sequence>
</group>
<complexType name="Request">
<sequence>
<group ref="WSX:TargetGroup"/>
</sequence>
</complexType>
The serialize method of "Request" is producing this (from tcpmon): Also,
please note the method I ran is called "update".
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/ ">
<soapenv:Header/>
<soapenv:Body>
<ns4:update xmlns:ns2="http://[REMOVED FROM THIS EMAIL]"
xmlns:ns4="http://[REMOVED FROM THIS EMAIL]">
<ns2:TargetGroup>
<ns2:target>this_is_a_target</ns2:target>
</ns2:TargetGroup>
</ns4:update>
</soapenv:Body></soapenv:Envelope>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]