Renaun, yes, that will send three distinct args, but I believe he needs to 
send one distinct arg that is an Array of three values.

Kaleb, have you tried creating an XML object and passing that into your 
operation?

var message:XML =
   <arglist>
      <arg1>Moe</arg1>
      <arg2>Curly</arg3>
      <arg3>Larry</arg4>
   </arglist>;
var op:Object = ws.getOperation("sendStrings");
op.send(message);

Or something along those lines?
(Forgive me if this syntax is 100% correct, I just hacked it out real quick 
from memory)

Darren




>From: "Renaun Erickson" <[EMAIL PROTECTED]>
>Reply-To: [email protected]
>To: [email protected]
>Subject: [flexcoders] Re: Array parameters fail with Webservices
>Date: Wed, 02 Aug 2006 18:21:06 -0000
>
>Try:
>ws.sendStrings("One","Two","Three");
>
>Which should make the call with 3 distinct parameters.
>
>Renaun
>
>--- In [email protected], "kaleb_pederson" <[EMAIL PROTECTED]> wrote:
> >
> > I'm using a webservice that requires that an array of strings be
> > passed to one function.  Each method that I have tried to send array
> > parameters fails.  By fails, I mean the request is successfully sent
> > to the server but the parameter list is empty and thus the response
> > isn't valid for the request that I'm attempting to make.
> >
> > Here are the variations that I have tried:
> >
> >        ws = new mx.rpc.soap.mxml.WebService();
> >
> > ws.loadWSDL("http://192.168.1.108:8080/stockquotes/stock_quote?wsdl";);
> >         // waits for loadWSDL to finish
> >
> >         // variation one
> >         var op:Object = ws.getOperation("sendStrings");
> >         op.arguments = new Array("One","Two","Three");
> >         op.send();
> >
> >         // variation two
> >         ws.sendStrings.arguments = new Array("One","Two","Three");
> >         ws.sendStrings.send();
> >
> >         // variation three
> >         ws.sendStrings.send(new Array("One","Two","Three"));
> >
> >         // variation four
> >         ws.sendStrings.send("One","Two","Three");
> >
> > The request that's made looks like the following (less formatting):
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <SOAP-ENV:Envelope
> >         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> >         xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> >         xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
> > <SOAP-ENV:Body>
> > <ns1:sendStrings
> > xmlns:ns1="http://server.webservices.tutorials.wakaleo.com/"; />
> > </SOAP-ENV:Body>
> > </SOAP-ENV:Envelope>
> >
> > The response that comes back looks like the following:
> >
> > <?xml version="1.0" ?>
> > <soapenv:Envelope
> >         xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> >         xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> >
> > xmlns:ns1="http://server.webservices.tutorials.wakaleo.com/";>
> > <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing";>
> > </soapenv:Header>
> > <soapenv:Body>
> > <ns1:sendStringsResponse></ns1:sendStringsResponse>
> > </soapenv:Body>
> > </soapenv:Envelope>
> >
> > The XSD shows the following input specification:
> >
> > <xs:complexType name="sendStrings">
> >  <xs:sequence>
> >  <xs:element name="arg0" type="xs:string" maxOccurs="unbounded"
> > minOccurs="0"/>
> >  </xs:sequence>
> > </xs:complexType>
> >
> > I also tried using MXML without any success.  See the following for
> > details:
> >
> >
>http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=585&threadid=1176598#4215452
> >
> > Any thoughts?  Am I missing something obvious?  I can give you more
> > information, including the complete WSDL, so please let me know if
> > there is anything else that would be useful.
> >
> > Thanks.
> >
> > --Kaleb






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to