I think you are doing this the hard way unless you are trying to dynamically introspect the service because you don't know what methods will be available. The recommended (and the way I use) way to create WSDL WebService connections would be to go to the Data menu and choose Connect to WebService...
here you can give yoru service a name and place the webservice url (including the WSDL ending) and it will import all the methods for you. Then in your component you want to utilize the webservice in, simply create an instance of th eservice name in the Declarations section and you have intellisense type of support for the different methods available on the webservice.
Thanks for the hint but I already tried it that way and still get the same problem.
This happens, even if I don't create a load event for the Web Service component and just create a result event.
The thing that I don't understand is why it calls the same XSD thousand of times...
Giving some more detail to my response I have this XSD structure on the Axis2 (Java) Web Service:
STRUCT1 -> can have one or many
STRUCT2 -> can have one or many
STRUCT3 -> can have one or many
Using the Connect to Data Service I get a structure of AS classes that look like this:
Using the generated component that Curtis mentioned, I still get thousands of requests to the STRUCTs XSD's
Hope it helps...
My experience has only been with .NET webservices, sorry.
If you have specified the WSDL in the MXML tag, it is loaded automatically, so you do NOT have to call the loadWSDL () method.
Also (and like curtis33321, I am using .NET), you may need to specify the WSDL URI differently.
.NET uses a "gateway" file, so you do it like this: wsdl="http://...MyWebService.asmx?wsdl".
...note the ?wsdl; this should also be used for your java service URI.
In Java, I'm not certain but it could be something like: "http://...MyJavaWebService/MyJavaServiceClass?wsdl"
Not sure how your web service file was created or how it was implemented on the server.