Re: Multidimensionality in SOAPLite
Eric Amick <[email protected]> Sat, 12 Jul 2003 10:25:22 -0400
| Newsgroups | gmane.comp.windows.devel.soap.general |
|---|---|
| Message-ID | <[email protected]> |
> Hi all,
> I am a user of SOAPLite (from the client side), and would like to
> know the
> following: how do I make SOAPLite web services engine create request
> messages with parameters consisting of multidimensional arrays? (I
> knowthere are mentions of SOAPLite having no such native support --
> even if so,
> how can I "force" it to do so with some work-around?) The web
> service I am
> accessing within the company requires multidimensional array
> parameters,with header in Java:
>
> public static String[][] getPersonData(String[] attributes, String[]
> restrictions, String[] appName)
The input parameters are one-dimensional arrays, which SOAP::Lite can
handle just fine.
>
> Currently, my code:
>
> @attributes= ("First Name", "Middle Name", "Last Name");
> @restrictions= ("");
> @app_name= ("myApp");
>
> print SOAP::Lite
> -> uri('MyService')
> -> proxy('http://localhost:8082/axis/services/')
> -> getPersonData(@attributes, @restrictions, @app_name)
> -> result;
Pass references to the arrays instead, i.e.,
-> getPersonData(\@attributes, \@restrictions, \@app_name)
Eric Amick
Columbia, MD