This content has been marked as final.
Show 6 replies
-
1. Re: Keeping WebService responses straight
Raymond Basque Mar 24, 2009 4:30 AM (in response to sneakyimp)When you invoke a method, you can store the returned mx.rpc.AsyncToken and check against the value dispatched with the event. i.e. -
2. Re: Keeping WebService responses straight
Raymond Basque Mar 24, 2009 4:58 AM (in response to sneakyimp)... or you could work with the message property of the event. i.e. -
3. Re: Keeping WebService responses straight
sneakyimp Mar 24, 2009 11:41 AM (in response to sneakyimp)Thanks for the replies! I like that second one pretty much. I was doing a lot of trace calls on the events that came back and they didn't seem to have any properties. I'll see if I can check it out again. -
4. Re: Keeping WebService responses straight
sneakyimp Mar 25, 2009 2:59 PM (in response to sneakyimp)OK the getSoapAction() method keeps returning the empty string.
I imported this to get rid of compiler complaints:
import mx.messaging.messages.SOAPMessage;
these two lines result in action = ""
var soapMesg:* = event.token.message as SOAPMessage;
var action:String = soapMesg.getSOAPAction(); -
5. Re: Keeping WebService responses straight
Lab860 Mar 25, 2009 3:21 PM (in response to sneakyimp)Worked for me -
6. Re: Keeping WebService responses straight
sneakyimp Mar 25, 2009 4:00 PM (in response to sneakyimp)so you are actually getting a value for action? Perhaps it depends on the WSDL command you run? Or the WSDL gateway you are using?


