wood burning stoves 2.0*
The moose likes Web Services and the fly likes Configure wsimport to not insert wsdl location in client service class? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Configure wsimport to not insert wsdl location in client service class?" Watch "Configure wsimport to not insert wsdl location in client service class?" New topic
Author

Configure wsimport to not insert wsdl location in client service class?

Bobby Anderson
Ranch Hand

Joined: Oct 28, 2008
Posts: 114
Is there a way that I can tell wsimport to not generate the wsdl location url in the client service class?

I.E. when I use wsimport to generate my client side service class using ant:


When I do this my generated client has hard coded my wsdl to its path at compile time. I do not really want this hardcoded path in their as I do not use the default constructor to get my service.

i.e.


So as you can see I always provide my own wsdl location and service name in my client so I don't really need the extra code in the generated client service.

As an aside I do this because I deploy yo many different URL's and each client reads in properties for the wsdl location so that each client has a configurable property to go to different servers.

I guess I could always set the wsdLocation when using wsimport to a empty string "", but I am not sure that I like that either.

Thanks!>
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Configure wsimport to not insert wsdl location in client service class?
 
Similar Threads
Generating and using client code from wsdl file with wsimport
many questions about ws
JAX-WS - domain model
Best practices regarding client code generation to a third party webservice and deployment issues
Jax-ws 2.2.1: creating clients for endpoints that are not in the WSDL