The WebServiceConnector Component
The webServiceConnector component is designed to easily and quickly connect to web services on the web. To use it, drag it onto the stage, set the URL for the web service's WSDL, select the web method you are going to call, and trigger it.Data from the webServiceConnector comes back as an object, as you will see in the following example.
The preceding code creates a listener object for the webServiceConnector component. It then creates an event callback, passing it one parameter, the myResults parameter, which will be the results coming back from the web service. We then add the event listener to the webServiceConnector and finally call the TRigger() method, which will activate the webServiceConnector.When you test the movie, you will get the same result as before using this web service. This example just shows how simple it is to connect to web services using the webServiceConnector.But what if it were simpler?