Link to home
Start Free TrialLog in
Avatar of amol_dbhatt
amol_dbhatt

asked on

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

   
I am using Eclipse Helios to setup a Webservice Client for following external WSDL link.

http://rmsazure.cloudapp.net/RemoteManagementWebService/RMIntegrationService.asmx?WSDL

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.

Regards,
Dhanraj
RMSWebServiceInterfaceSpecificat.docx
rmi-error.txt
remotemanagementwebservice.zip
SOLUTION
Avatar of Valeri
Valeri
Flag of Bulgaria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of amol_dbhatt
amol_dbhatt

ASKER

Hmm... Tomcat 6 is configured to work on the default port 8080. If Axis2 is able to generate the stub files from WSDL,  then I guess the code shouldn't face issue connecting to the web-service provider.

Is there an alternative to Axis2 as a Soap engine ?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the guidance!!