Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Eclipse + Axis: Connection reset  RSS feed

 
Paulo Guiatiponet
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys,

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:

_serviceClient.getOptions().setProperty(HTTPConstants.CHUNKED,false);


But the problem IS:

When I call a webservice published in internet, it works:
http://www.michaelpage.com.ar/GlobalJobCount_ar/services/GetLocalJobCount?wsdl

But when I call another webservice:
http://services.demotbj.com/v1.3-CL/JobsControllerSoap?wsdl

I get:

[INFO] Unable to sendViaPost to url[http://services.demotbj.com/v1.3-CL/JobsControllerSoap]
java.net.SocketException: Connection reset


Why? Why with a webservice, it's OK, and with another webservice, following all the same steps, it's not OK?

Note 1: The address location of the second WS in the WSDL is:
http://localhost:8085/v1.3-CL/JobsControllerSoap
So I had to change it when I save the WSDL file to:
http://services.demotbj.com/v1.3-CL/JobsControllerSoap

Note 2: I've tested online this WS with this website:
http://www.soapclient.com/soaptest.html
So, the WS is OK.... The problem is me (lol).

Note 3: I'm working in a proxy, but I don't think it's the proxy because the first WS worked. Anyway, I've tested putting proxy information and It returns the same message...

Do you have any ideas? Maybe I can change the framework? I've just worked with Axis. Are there another tools better than it I can use?

Thanks!




 
Paulo Guiatiponet
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys,

Nobody can give me a light on it?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!