[flexcoders] Re: Call Document Style WebService in Flex 2

2006-12-19 Thread rd_grimes
Thanks Ben for responding to my inquiry. I spent some more time trying to get this right and got it working and here's what I can document for fellow consumers of Web Services via Flex 2. The following consumes web services that use document style wsdl's, and without using FDS. import

[flexcoders] Re: Call Document Style WebService in Flex 2

2006-12-19 Thread ben.clinkinbeard
Glad you got it working. You should check out E4X, its the shiz. Will let you change your xml parsing code to something like this: var x:XML = new XML(event.message); var sessionID:String = x..SessionID; var auth:Boolean = (x..Authorized == Y); // the attribute version var auth:Boolean = ([EMAIL

[flexcoders] Re: Call Document Style WebService in Flex 2

2006-12-19 Thread rd_grimes
Very cool, Ben. I gave it a whirl and got it to work with e4x. Much better syntax than having to specify the children().children().children() garbage. I've been developing business apps in Flash 8 for the past year and a half, and am just now converting over to using Flex 2. So, now it's a bit

[flexcoders] Re: Call Document Style WebService in Flex 2

2006-12-17 Thread ben.clinkinbeard
Only have a quick second to throw this out there, but I usually use the following syntax: var op:Operation = ws.getOperation(AdminLoginOperation); var loginObj:Object = new Object(); loginObj.username = Foo; loginObj.pwd = Bar; op.arguments = loginObj; op.send(); You'll also want to make sure