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 Vollmy (JIRA)" <ji...@apache.org> on 2012/11/19 10:08:59 UTC

[jira] [Updated] (AXIS2-5457) WSDL2C: wrong types from serialize

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

Andreas Vollmy updated AXIS2-5457:
----------------------------------

    Attachment: test.wsdl

Sample WSDL used.
                
> WSDL2C: wrong types from serialize
> ----------------------------------
>
>                 Key: AXIS2-5457
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5457
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, codegen, wsdl
>    Affects Versions: 1.6.1, 1.6.2
>         Environment: Red Hat 5
>            Reporter: Andreas Vollmy
>         Attachments: test.wsdl
>
>
> I'm trying to build a ansi c client & server from a wsdl using wsdl2c. 
> I have a request-type which contains another complex type (see example below). 
> While serializing there is an xs:type written into the stream for each element, but the inner structure "overwrites" the type of the outer structure. 
> The server then is unable to unpack this message and writes an error into the log, that "non nillable or minOccurs != 0 element some1 missing"
> Types:
>     <xs:element name="testRequest">
>       <xs:complexType>
>         <xs:sequence>
>           <xs:element name="arg0" type="tns:trArg1"  minOccurs="1" maxOccurs="1"/>
>         </xs:sequence>
>       </xs:complexType>
>     </xs:element> 
>     <xs:complexType name="trArg1">
>       <xs:sequence>
>         <xs:element name="some1" type="xs:long"/>
>         <xs:element name="some2" type="xs:short"/>
>       </xs:sequence>
>     </xs:complexType>
>   </xs:schema>
> Request-Soap (on testRequest there should not be an xsi:type=trArg1 in my understanding):
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>  <soapenv:Body>
>   <n:testRequest xmlns:n="http://www.test.ch/test/TestVer" 
>                        xmlns:xsi="http://www.test.ch/test/TestVer" 
>                        xsi:type="trArg1">
>     <arg0 xsi:type="trArg1">
>       <some1>1</some1>
>       <some2>2</some2>
>     </arg0>
>   </n:testRequest>
>  </soapenv:Body>
> </soapenv:Envelope>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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