Re: Multidimensionality in SOAPLite

Eric Amick <[email protected]> Tue, 15 Jul 2003 10:16:40 -0400
Newsgroups gmane.comp.windows.devel.soap.general
Message-ID <[email protected]>
----- Original Message -----
From: "Chen, Li (Research, YOH)" <[email protected]>
Date: Tuesday, July 15, 2003 9:34 am
Subject: Re: [SOAP] Multidimensionality in SOAPLite

> BTW, the response from the server side looks like this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope
>
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:xsd="http
://www.w3.org/1999/XMLSchema"
> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
> <soapenv:Body>
>  <ns1:getPersonDataResponse
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:ns1="myService">
>   <ns1:getPersonDataReturn xsi:type="soapenc:Array"
> soapenc:arrayType="ns2:string[][2]"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:ns2="http://www.w3.org/2001/XMLSchema">
>    <item soapenc:arrayType="ns2:string[2]">
>     <item>dummy</item>
>     <item>data</item>
>    </item>
>    <item soapenc:arrayType="ns2:string[2]">
>     <item>here</item>
>     <item>example</item>
>    </item>
>   </ns1:getPersonDataReturn>
>  </ns1:getPersonDataResponse>
> </soapenv:Body>
> </soapenv:Envelope>

When the return value is a one-dimensional array, SOAP::Lite gives you
an array reference, just as it does with input parameters.  It wouldn't
surprise me if this case works much the same.  I would read up on the
Data::Dumper module, which will provide you a way to see just what kind
of value you get back from the service.

Eric Amick
Columbia, MD