Posted by taolu
on October 17, 2008 at 7:34 PM PDT
I am looking at the sample JAX-WS code in chapter 16 of Java EE 5 Tutorial
It uses to connect to server runtime to generate WS client side code, but I noticed "localhost" is hardcoded in the generated code. Does this mean before going to production I have to connect to web service running on production server to generate another client which is specific production server?
I guess no. The generated client code should be generic enough to connect to any runtime server, as long as you pass the correct url to @WebServiceRef(wsdlLocation="http://....")
It is really ugly seeing "http://localhost:8080/helloservice/hello?wsdl" in production code.