I get the same result- an empty request that successfully returns an empty result. Do you have to use the XSD? I am not familiar with these at all, so I don't understand exactly what purpose it may serve, but I would not be surprised at all if the WebService library did not support things like this.
Ben --- In flexcoders@yahoogroups.com, "kaleb_pederson" <[EMAIL PROTECTED]> wrote: > > Hello all, > > My webservice has one function, sendStrings(), which takes a > sequence of arg0 values, each of which are strings. Despite the > simplicity of the request, I cannot get the web service to send > anything but an empty request across (other than variation 9 in > which I send XML across). I have tried every variation that I could > think of and have included them below: > > I'm hoping that one of you can try this and figure out if this is a > bug or if I'm just completely missing something. > > Feel free to hit this service as many times as needed to help with > this issue: > > WSDL: http://kibab.homeip.net:8080/myserv/myserv?wsdl > XSD: http://kibab.homeip.net:8080/myserv/myserv?xsd=1 > (The crossdomain.xml file is setup to allow everyone access) > > If I send Array("One","Two","Three",...) across, the expected result > would be: Array("[0]One","[1]Two","[2]Three",...). > > Here are the different variations I've tried: > > /* NOTE: I fully re-initialize the web service each time: > > var ws:WebService = new mx.rpc.soap.mxml.WebService(); > ws.addEventListener(LoadEvent.LOAD,loadHandler); > ws.addEventListener(FaultEvent.FAULT,faultHandler); > ws.loadWSDL("http://kibab.homeip.net:8080/myserv/myserv?wsdl"); > // then after the load has completed perform the test > > */ > > trace("variation1"); > var op:AbstractOperation = ws.getOperation("sendStrings"); > op.arguments = new Array("variation","one"); > op.send(); > > trace("variation2"); > ws.sendStrings.arguments = new Array("variation","two"); > ws.sendStrings.send(); > > trace("variation3"); > ws.sendStrings.send(new Array("variation","three")); > > trace("variation4"); > ws.sendStrings.send("variation","four"); > > trace("variation5"); > ws.sendStrings("variation","five"); > > // this function results in a fault event: > // Unexpected parameter "sendStrings" found in input arguments. > trace("variation6"); > var op:AbstractOperation = ws.getOperation("sendStrings"); > op.arguments = {sendStrings:{arg0:new > Array("variation","six")}}; > op.send(); > > trace("variation7"); > var op:AbstractOperation = ws.getOperation("sendStrings"); > op.send({sendStrings:{arg0:new Array("variation","six")}}); > > trace("variation8"); > var xml:XML = new XML("<ns1:sendStrings > xmlns:ns1="http://server.webservices.tutorials.wakaleo.com/">" + > "<arg0>variation</arg0><arg0>eight</arg0>" + > "</ns1:sendStrings>"); > var op:AbstractOperation = ws.getOperation("sendStrings"); > op.send(xml); > > trace("variation9"); > // this WORKS (but variation 8 does not) > var xml:XMLDocument = new XMLDocument("<ns1:sendStrings > xmlns:ns1="http://server.webservices.tutorials.wakaleo.com/">" + > "<arg0>variation</arg0><arg0>nine</arg0>" + > "</ns1:sendStrings>"); > var op:AbstractOperation = ws.getOperation("sendStrings"); > op.send(xml); > > trace("variation10"); > var op:Operation = ws.getOperation("sendStrings") as Operation; > op.resultFormat = "e4x"; > var args:Object = new Object(); > args.arg0 = new Array("variation","ten"); > op.arguments = args; > ws.sendStrings(); > > trace("variation11"); > var op:Operation = ws.getOperation("sendStrings") as Operation; > op.resultFormat = "e4x"; > var args:Object = new Object(); > args.sendStrings = new Object(); > args.sendStrings.arg0 = new Array("variation","eleven"); > op.arguments = args; > ws.sendStrings(); > > Please let me know if there is any other information that I can > provide to help resolve this issue. > > Thanks for the help! > > --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/