File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion 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!>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Configure wsimport to not insert wsdl location in client service class?