How do I specify host and port when accessing a web service from JAX-WS-generated code?

The constructor should work fine for your needs, when you create MyService, pass it the url of the WSDL you want i. E someurl:someport/service?wsdl.

The constructor should work fine for your needs, when you create MyService, pass it the url of the WSDL you want i.e. someurl:someport/service?wsdl.

Ok. Just so I understand... MyService will request the WSDL and then use whatever's in the tag to determine where the service actually is? – Dave Ray Mar 16 '09 at 12:44 I think that is right, I've tried to look it up but I can't find anything to answer clearly.

– Sam Merrell Apr 10 '09 at 6:04 Yes. JAX-WS will load the WSDL at wsdlLocation and then parse the WSDL for the service and port specified by serviceName and portName, respectively. JAX-WS will use the URL specified in the WSDL port when invoking the Web service.

Thus, you will need to know the WSDL URL, service QName, and port QName in order to interact with the remote service using the code you listed above. – DavidValeri Jun 8 '09 at 11:58.

If you have a look in the generated source close to the generated constructor, you should be able to figure out what to put in it from the default constructor, should look something like: public OrdersService() { super(WSDL_LOCATION, new QName("namespace.org/order/v1", "OrdersService")); } You should be able to find the def of WSDL_LOCATION in the static field further up in the class.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions