axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nadir amra (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Closed: (AXISCPP-952) AxisCPP server cannot parse Java client arrays
Date Mon, 05 Feb 2007 18:15:06 GMT

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

nadir amra closed AXISCPP-952.
------------------------------

       Resolution: Fixed
    Fix Version/s: current (nightly)

This should be fixed in the latest code base.  Please try again and if problem persists, reopen
issue. 

> AxisCPP server cannot parse Java client arrays
> ----------------------------------------------
>
>                 Key: AXISCPP-952
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-952
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Server - Deserialization
>    Affects Versions:  1.6 Beta
>         Environment: Windows 2000, Apache 1.3
>            Reporter: Jonathan Beakley
>             Fix For: current (nightly)
>
>
> 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
> array:
>   <types>
>     <schema xmlns="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://localhost/axis/csaapi/xsd">
>       <import namespace = "http://schemas.xmlsoap.org/soap/encoding/"/>
>       <complexType name="ArrayOfInt">
>         <complexContent>
>             <restriction base="soapenc:Array">
>               <attribute ref="soapenc:arrayType"
> wsdl:arrayType="int[]"/>
>             </restriction>
>         </complexContent>
>       </complexType>
>     </schema>
>   </types>
> When I create and run the AxisCPP client, it generates XML that uses "<item>" to
denote the elements in the array:
>   <SOAP-ENV:Body>
>     <ns1:GetNamesByIds
>         xmlns:ns1="http://localhost/axis/csaapi">
>       <objType xsi:type="xsd:int">0</objType>
>       <idsArray
>           xmlns:enc="http://www.w3.org/2001/06/soap-encoding"
>           enc:arrayType="xsd:int[9]">
>         <item>1</item>
>         <item>2</item>
>         <item>3</item>
>       </idsArray>
>     </ns1:GetNamesByIds>
>   </SOAP-ENV:Body>
> 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:
>   <soapenv:Body>
>     <ns1:GetNamesByIds
>  
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>         xmlns:ns1="http://localhost/axis/csaapi">
>       <objType xsi:type="xsd:int">0</objType>
>       <ids soapenc:arrayType="xsd:int[9]"
>             xsi:type="soapenc:Array"
>             xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>         <ids xsi:type="xsd:int">1</ids>
>         <ids xsi:type="xsd:int">2</ids>
>         <ids xsi:type="xsd:int">3</ids>
>       </ids>
>     </ns1:GetNamesByIds>
>   </soapenv:Body>
> 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
> beakley@cisco.com

-- 
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Mime
View raw message