axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Beakley (JIRA)" <>
Subject [jira] Created: (AXISCPP-951) AxisCPP Server cannot parse Java arrays
Date Tue, 21 Mar 2006 14:41:04 GMT
AxisCPP Server cannot parse Java arrays

         Key: AXISCPP-951
     Project: Axis-C++
        Type: Bug
  Components: Server - Deserialization  
    Versions:  1.6 Beta    
 Environment: Windows 2000, Apache 1.3
    Reporter: Jonathan Beakley

I have noticed an inconsistency in the encoding of arrays by Axis Java clients (created using
WSDL2Java) and AxisCPP clients (created using WSDL2Ws).

In short, I have the following RPC/encoded WSDL snippet that defines the

    <schema xmlns=""
      <import namespace = ""/>
      <complexType name="ArrayOfInt">
            <restriction base="soapenc:Array">
              <attribute ref="soapenc:arrayType"

When I create and run the AxisCPP client, it generates XML that uses "<item>" to denote
the elements in the array:

      <objType xsi:type="xsd:int">0</objType>

My AxisCPP service handles this just fine.

BUT, my Java client generates XML that doesn't use the "<item>"
construct, and it causes my CPP service to fail to parse the data.
Here's the Java XML:

      <objType xsi:type="xsd:int">0</objType>
      <ids soapenc:arrayType="xsd:int[9]"
        <ids xsi:type="xsd:int">1</ids>
        <ids xsi:type="xsd:int">2</ids>
        <ids xsi:type="xsd:int">3</ids>

Could someone give me advice on the best way to handle this?  Note that I've already turned
the MULTIREF option off to fix a different set of problems.  I'd prefer to keep the RPC/Encoded
style if at all possible.

Thank you very much in advance!

-Jonathan Beakley

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message