Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Bobby Anderson
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.


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.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!