Skip to Content
0
Former Member
Nov 16, 2006 at 04:06 PM

Unable to consume a webservice running on the local host (127.0.0.1)

66 Views

Hi,

i've been trying to consume a webservice which I am hosting locally on my machine. I'm using Tomcat as the application server along with Apache axis as the web service container.

I am unable to add my webservice as a data source using the "Define Web service system..." tool. Each time I try to add the webservice, I get the error that the web service URL is invalid. The URL I am using is http://localhost:8080/axis/EchoHeaders.jws?wsdl.

At first, I thought this may have something to do with my proxy settings, but I've configured the proxies correctly and am able to access external webservices. Also, it does seem to send a request to the web service servlet, i.e. it is able to find the URL - I know this because i've got a listener setup locally inside the tomcat servlet which receives the URL GET request.

Has anyone come across any problems while trying to consume webservices offered using apache tomcat and axis or could this be because I am running the web service on the same host as visual composer and using localhost in the URL? I've tried replacing localhost with my machine name, with 127.0.0.1 and with my IP address, but it doesn't seem to help.

I would really appreciate some help.

Thanks and Regards,

Amrish