Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

localhost and external IP for web services?

843833Apr 11 2007 — edited Dec 20 2007
I'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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 17 2008
Added on Apr 11 2007
6 comments
552 views