No... I had missed your message. I ran through the process as you indicated and found out that the XML that you generate gets sent as the SOAP Body, so it doesn't use the call information from the operation that I had. Thus, I had to use as XML:
<ns1:sendStrings xmlns:ns1="..."><arg0>One</arg0><arg0>Two</arg0>...</ns1:sendStrings> If I don't fully specify the body or don't specify the namespace it generates an error message. This would actually be a clean solution if the web service class would derive the operation name and namespace from the WSDL file or the operation I'm invoking. Perhaps I could override or proxy the operation call? Still... this seems like a hack (although the first successfull one ;) Other suggestions and ways that I might be able to get it to work correctly without going through this process? Thanks for the comments. --Kaleb --- In flexcoders@yahoogroups.com, "Darren Houle" <[EMAIL PROTECTED]> wrote: > > Did you try creating and sending that XML I suggested? > > Darren > > > > >From: "kaleb_pederson" <[EMAIL PROTECTED]> > >Reply-To: flexcoders@yahoogroups.com > >To: flexcoders@yahoogroups.com > >Subject: [flexcoders] Re: Array parameters fail with Webservices > >Date: Thu, 03 Aug 2006 15:36:07 -0000 > > > >Thanks for the suggestion. I tried: > > > >// variation five > >ws.sendStrings("One","Two","Three"); > > > >// variation six > >ws.sendStrings(new Array("One","Two","Three")); > > > >Both of the above result in the exact same empty SOAP message being > >generated. Any other ideas? Given the number of variations that I > >have tried, I'm beginning to wonder if this is a bug? > > > >Thanks for the help. > > > >--Kaleb > > > >--- In flexcoders@yahoogroups.com, "Renaun Erickson" <renaun@> > >wrote: > > > > > > Try: > > > ws.sendStrings("One","Two","Three"); > > > > > > Which should make the call with 3 distinct parameters. > > > > > > Renaun > > > > > > --- In flexcoders@yahoogroups.com, "kaleb_pederson" <kibab@> > >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 > > > > > > > > > > > > > -- 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/