This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Using WSConsume in ANT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Using WSConsume in ANT" Watch "Using WSConsume in ANT" New topic

Using WSConsume in ANT

Amirtharaj Chinnaraj
Ranch Hand

Joined: Sep 28, 2006
Posts: 231
Hi All,

Iam trying to generate the STUB for a Web Service , i am successful in generating the stub as well. i used the below script to generate the stub

if i am having one more wsdl , then how can i generate the stub for both the wsdl using the same wsconsume task, However iam able to generate the stub for both wsdl's separately. what i would like to know is how can i pass the list of wsdl files for single wsconsume ANT Task. i think the list of wsdl can be passed if we use Maven.

Please advice me on this

Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 29285

From that Ant task, it doesn't appear you can. Your choices are:
1) Duplicate the task and have it twice in your code
2) Write a macrodef in Ant that makes this call with a WSDL parameter. Then call it twice or from an ant-contrib loop from a list.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Amirtharaj Chinnaraj
Ranch Hand

Joined: Sep 28, 2006
Posts: 231
Thanks Jeanne
I agree. Here's the link:
subject: Using WSConsume in ANT
Similar Threads
More fun with JAXB, trying to implement Oasis WSN top down - errors genned
Building WS client using Ant
How to use wstools in ant
Parameter names in wsdl - axis2
Apache Axis versus JbossWS