ws-soap-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmah...@inautix.com
Subject Multi dimensional Array Handling in Apache SOAP
Date Fri, 13 Sep 2002 08:07:53 GMT

Hi ,
 I am getting problem in  Deserialising  a  2-D int Array form a
webservice.  I am using apache soap tk 2.3.1
can any one please help in this regards

Exception :

Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
msg=No map
ping found for 'http://schemas.xmlsoap.org/soap/encoding/:Array' using
encoding
style 'http://schemas.xmlsoap.org/soap/encoding/'.;
targetException=java.lang.Il
legalArgumentException: No mapping found for
'http://schemas.xmlsoap.org/soap/en
coding/:Array' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.

Response SOAP message:

<soap-env:Envelope xmlns:soap-env
="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi
="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd
="http://www.w3.org/1999/XMLSchema" xmlns:SOAP-ENC
="http://schemas.xmlsoap.org/soap/encoding/">
<soap-env:Header/>
<soap-env:Body>
     <intx:getIntArrayResponse xmlns:intx
="http://architecture.pershing.com"
soap-env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
          <getIntArrayResult xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType
="SOAP-ENC:Array[2]">
               <int SOAP-ENC:arrayType="xsd:int[2]" xsi:type
="SOAP-ENC:Array">
                    <int xsi:type="xsd:int">1</int>
                    <int xsi:type="xsd:int">2</int>
               </int>
               <int SOAP-ENC:arrayType="xsd:int[2]" xsi:type
="SOAP-ENC:Array">
                    <int xsi:type="xsd:int">3</int>
                    <int xsi:type="xsd:int">4</int>
               </int>
          </getIntArrayResult>
     </intx:getIntArrayResponse>
</soap-env:Body>
</soap-env:Envelope>



It works fine for the one dimensional array


Thanks & regards,Rajender Mahato
NT Server Team
X-1237



Mime
View raw message