File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Problem accessing web service on application server through webserver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Problem accessing web service on application server through webserver" Watch "Problem accessing web service on application server through webserver" New topic
Author

Problem accessing web service on application server through webserver

s pillai
Greenhorn

Joined: May 04, 2006
Posts: 4
Hi,

We are facing a problem while accessing web service on App server(Websphere 6) through a web server(Apache/2.0.47). Web service is deployed correctly and wsdl is accessible through the browser. When trying to invoke the web service we get 404 not found error.

The same web service is accessible if directly invoked from the application server, without going through the web server.

Was wondeing if any one has faced such issue previously. Any input would be of great help and appreciated.

Th response soap message from tcpmon was
HTTP/1.1 404 Not Found
Date: Thu, 04 May 2006 17:10:28 GMT
Server: IBM_HTTP_Server/6.0.2.3 Apache/2.0.47 (Unix)
Content-Length: 339
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /SLKServices/services/LicenseRequest was not found on this server.</p>
<hr />
<address>IBM_HTTP_Server/6.0.2.3 Apache/2.0.47 (Unix) Server at 192.168.126.95 Port 3040</address>
</body></html>

Could the problem be because of the http version difference?

Thanks
spillai
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41863
    
  63
Hello "spillai spillai"-

Welcome to JavaRanch.

On your way in you may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.

As to your question, I'm not sure what you mean by "http version difference" - you seem to have an HTTP 1.1 connection, and it looks like it's working fine. Are you sure you're going against the correct port on the correct machine? What does the section of the WSDL look like that describes the URL?


Ping & DNS - my free Android networking tools app
s pillai
Greenhorn

Joined: May 04, 2006
Posts: 4
Thanks for the reply.

What i mean by the http version difference is that on app server http 1.0 is there and on webserver http 1.1 is present. Will this be an issue?

Yes . I ma using the service end point url appearing on the wsdl.

Please note that i have problem in invoking this service only when i access the web service on app server via web server.

I am able to access the webservice on the appserver using a client on the app server it self.

There seems to be a blocking happening at the web server end.
please share your thoughts
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem accessing web service on application server through webserver