This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Web Services and the fly likes Jax-Ws and proxi on Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Jax-Ws and proxi on Tomcat" Watch "Jax-Ws and proxi on Tomcat" New topic
Author

Jax-Ws and proxi on Tomcat

John Landon
Ranch Hand

Joined: Sep 25, 2008
Posts: 221
Hi,
I have web application with embed jax-ws web service (the ws servlet is just added to web.xml).
The machine is behind proxy. So you hit the proxy and it should forward to that machine.
Now, if I hit localhost (within that machine) ...?wsdl I get the wsdl. Also if I hit the ip address of this machine...?wsdl I get the wsdl. If I hit the proxy...?wsdl I get 404 on the browser. If I hit the proxy but some other non web service servlet I get there successfully.
Why is this happening? Why can't I get to the web service?

Thanks,
John
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2906
John Landon wrote:If I hit the proxy but some other non web service servlet I get there successfully.


Based on your description I would suspect the firewall configuration. You have to ask yourself "what is the difference between successful and failed accesses?"
The first difference from your description is the use of the query parameter (?wsdl). Though a more likely candidate is the "Content-type" of the request/response bodies - maybe the firewall blocks SOAP/XML content. And of course the obvious one: maybe the firewall doesn't allow full access to the server, i.e. access to the endpoint URI still has to be enabled.
John Landon
Ranch Hand

Joined: Sep 25, 2008
Posts: 221
firewall is good
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Jax-Ws and proxi on Tomcat
 
Similar Threads
Problem generating Client stubs using METRO 2.0 Library and Netbeans 6.9(JAX-WS style)
JAX-RPC vs JAX-WS
Doubt regarding invocation of JAX-WS through java client code
Check if web service is running
JAX-WS generated client request missing SOAP body