axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Vollmy (JIRA)" <>
Subject [jira] [Created] (AXIS2-5457) WSDL2C: wrong types from serialize
Date Mon, 19 Nov 2012 09:06:57 GMT
Andreas Vollmy created AXIS2-5457:

             Summary: WSDL2C: wrong types from serialize
                 Key: AXIS2-5457
             Project: Axis2
          Issue Type: Bug
          Components: adb, codegen, wsdl
    Affects Versions: 1.6.2, 1.6.1
         Environment: Red Hat 5
            Reporter: Andreas Vollmy

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"

    <xs:element name="testRequest">
          <xs:element name="arg0" type="tns:trArg1"  minOccurs="1" maxOccurs="1"/>

    <xs:complexType name="trArg1">
        <xs:element name="some1" type="xs:long"/>
        <xs:element name="some2" type="xs:short"/>

Request-Soap (on testRequest there should not be an xsi:type=trArg1 in my understanding):

<soapenv:Envelope xmlns:soapenv="">
  <n:testRequest xmlns:n="" 
    <arg0 xsi:type="trArg1">

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:

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

View raw message