Hi Kaleb,

 

Nice test.

 

Could you try exposing your webservice as RPC/Encoded. I’m very curious to see if that makes a difference. Personally, I don’t have a configuration running where I could test this.

 

Ben: The XSD is referred to from WSDL, so, yes: it’s necessary. But as you already have asked many times, I’m curious what Flex DOES with a schema file in the serialization process.

 

Cheers,

Franck

 


From: [email protected] [mailto:[email protected]] On Behalf Of ben.clinkinbeard
Sent: Saturday, August 19, 2006 3:41 AM
To: [email protected]
Subject: [flexcoders] Re: ComplexType in WSDL with webservice not sending arguments

 

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 [EMAIL PROTECTED]ups.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





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to