I'm trying to develop a client for a webservice in the internet. I use Eclipse, so I chose Axis2 1.6.2.
Everything looked nice, and I created a client through eclipse tool:
1) I saved the WSDL file;
2) I created a dynamic web service project;
3) Generated a client with the eclipse tool "Webservices > Generate client";
4) Stub classes were generated successfully
5) I created a main class that calls the Stub.
I also had to add the following line (after some search on google) before calling the execute method inside the stub class: