We help IT Professionals succeed at work.
Get Started

Connection refused Error: Consuming Webservice (WSDL asmx file) using Axis2 in Eclipse helios

amol_dbhatt asked
Last Modified: 2012-05-10
I am using Eclipse Helios to setup a Webservice Client for following external WSDL link.


The SOAP engine used within Eclipse is AXIS2 with tomcat 6.0 . I was successful in setting up the stub files. However when I created a client java project and tried accessing the API's, I am getting the following error.

[INFO] Unable to sendViaPost to url[http://rmsazure.cloudapp.net/RemoteManagementWebService/RMIntegrationService.asmx]
java.net.ConnectException: Connection refused: connect

I am able to access the above url from my browser, however the above error shows the code is not able to access it. What is missing from my configuration. Could it be a proxy issue.

Please Note: I have attached the error file from the eclipse console, the customer API integration guide, the sourcecode from the webservice client.

Any help with this regard would be helpful. Let me know if you need any more information.

Watch Question
This problem has been solved!
Unlock 2 Answers and 4 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE