Avatar

Level 1
Hi Jim,



I just started using Flex this week so I haven't tried making
calls using the method that you are (by importing the WSDL through
Data >
Import Web Service (WSDL)...), but I have been successful in
making calls via another method.



<mx:WebService id="webServiceID" wsdl="
http://yourwebsite/somefolder/service.wsdl">

<mx:operation name="operationName"
result="ResultHandler(event)"fault=

"FaultHandler(event)">

<mx:request>

<!-- parameters -->

</mx:request>

</mx:operation>

</mx:WebService>



To make the call, you would use the send() method on your
operation ("operationName" in the example above). Let's just say
you want to send the request on a button click. The code would look
like:



<mx:Button label="Send Web Service Request"
click="webServiceID.operationName.send()"/>



Please note that "operationName.send()" will not work alone -
you need to use "webServiceID.operationName.send()"



Hope this helps.



Cheers,

Chris