localhost and external IP for web services?
843833Apr 11 2007 — edited Dec 20 2007I've developed a web service using NetBean5.5 (JAX-WS 2.0) and deployed it to Tomcat 5.5. To access the WSDL and XSD I use the following URLs respectively (where SERVER and PORT is the server name and port on our local network):
http://SERVER:PORT/SampleWS/SampleService?wsdl
http://SERVER:PORT/SampleWS/SampleService?xsd=1
However, for external customers to access this they use an IP mapped to SERVER:PORT by our sys admin.
They can successfully access the WSDL using this external IP in the above URL but the schemaLocation port binding elements still refer to the local machine name and port. This means they cannot execute calls on the web service.
How do I get round this? Is this a Tomcat config setting? Or can something be done on the JAX-WS side such as dynamically generate the URLs within the WSDL?
Any help would be much appreciated.