This content has been marked as final. Show 3 replies
why would you want to load the same webservice twice ... why wouldn't you put the first connection in a proxy in a delegate and just reuse it?
I do very similar things, and the answer to your question (why would you load the same webservice twice) is because I'm a bad programmer, and I don't know how to do it the right way.
I still don't understand what ClownBootz is asking you to do, but I got the whole "multiple operations / result handlers from one WebService component" thing to work. You do have to explicitly set up what operations are allowed to the WebService, and then specify what resultHandler you want for that operation. Like this:
<mx:WebService id="service" wsdl="someWSDLURL">
<operation name="function1" result="function1ResultHandler(event)"/>
<operation name="function2" result="function2ResultHandler(event)"/>
then you could just access service.function1(variables, variables); and handle its result differently than you would the results from service.function2();
Maybe something like this will help you out. I don't know if that is would solve your problem of having to load the same WebService twice, but it did for me.