wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant wsimport task... how to reference remote wsdlLocation for service? 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 » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant wsimport task... how to reference remote wsdlLocation for service?" Watch "Ant wsimport task... how to reference remote wsdlLocation for service?" New topic
Author

Ant wsimport task... how to reference remote wsdlLocation for service?

Karl Krasnowsky
Ranch Hand

Joined: Jan 16, 2009
Posts: 97
So I'm trying to use the wsimport ant task to grab the wsdl from the server and build the client classes. Simple enough... However...
In the resulting Service information the wsdlLocation is referencing the local file that I generate, e.g.,:


when what I want is the wsdl location as it is on the server, e.g.:


so there's no dependency on a local file reference.

I thought I could accomplish this through the use of a catalog file but I can't seem to make it work. Any pointers on how to adjust this?

thanks,
Karl

[SCJP 6]
[SCBCD in process]
Karl Krasnowsky
Ranch Hand

Joined: Jan 16, 2009
Posts: 97
Never mind... figured it out. Needed to use both the wsdl and wsdllocation specifiers. Easy fix.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant wsimport task... how to reference remote wsdlLocation for service?
 
Similar Threads
Ant & wsimport
JNDI and JAX-WS
JAXWS client generated with clientgen - Soap Message with attachment: response ok, attachment null.
Change address location webservice
Best practices regarding client code generation to a third party webservice and deployment issues