Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Eclipse + Axis: Connection reset

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey guys,

Nobody can give me a light on it?
 
Rototillers convert rich soil into dirt. Please note that this tiny ad is not a rototiller:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic