cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

What about authorizations? Does your VC user have the authorizations to access this URL?

Former Member
0 Kudos

Hi Mario,

what do you mean by authorizations? The web service itself does not require any username or password. Also, I am able to consume the web service using a simple flex application (not integrated inside Visual Composer) without the need for supplying a username or password.

Cheers,

Amrish

Former Member
0 Kudos

My thought was, that your VC user does not have the authorization to e.g. access files on your local machine, because it's e.g. not a Windows User. Eventually this might mean that it may not access your server.

But I am also just guessing...