You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Martin Gainty <mg...@hotmail.com> on 2006/11/29 17:02:20 UTC

Fw: where is wsdl2Java?

Hello All-

Any suggestions where to locate the axis-ant-plugin jar?

Thanks,
Martin -
This e-mail communication and any attachments may contain confidential and privileged information for the use of the 
designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its 
contents
----- Original Message ----- 
From: "Steve Loughran" <st...@apache.org>
To: "Ant Users List" <us...@ant.apache.org>
Sent: Wednesday, November 29, 2006 10:13 AM
Subject: Re: where is wsdl2Java?


> Martin Gainty wrote:
>> Hi Scott-
>> 
>> I copied $AXIS2_HOME/lib/axis-codegen-1.0.jar (size 189.558) to %ANT_HOME/lib and ran the samples.xbeans build.xml compile task
>> 
>> first I editted the build.xml to include the WSDL2Java class
>> vi build.xml
>>         <taskdef name="wsdl2java"
>>          classname="org.apache.axis2.wsdl.WSDL2Java"
>>          classpathref="classpath"/>
>> 
>> cd $AXIS2_HOME/samples/xbeans
> 
> 
>> compile:
>> No public execute() in class org.apache.axis2.wsdl.WSDL2Java
>> 
>> BUILD FAILED
>> C:\AXIS\Axis-2_1\src\axis\samples\xbeans\build.xml:61: No public execute() in class org.apache.axis2.wsdl.WSDL2Java
>> 
>> So it appears that class org.apache.axis2.wsdl.WSDL2Java not having execute() method will not allow the class to be taskdef'ed in Ant
>> 
> 
> That means it isnt an ant task. Ant will turn any class which implements 
> public void execute() into a task, but not things that don't. Wsdl2Java 
> has to be somewhere else.
> 
> In my copy of axis2 from a year ago, the axis-ant-plugin module has a 
> class org.apache.axis2.tool.ant.AntCodegenTask. I do not know if this is 
> what you want or not. I'd also point you at the axis user and then axis 
> dev mail lists, as they are the people who know the code.
> 
> -steve
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
>

Re: Fw: where is wsdl2Java?

Posted by Steve Loughran <st...@apache.org>.
Martin Gainty wrote:
> Hello All-
> 
> Any suggestions where to locate the axis-ant-plugin jar?

sorry, I was confusing. There is a bit in the axis2 source tree called 
axis-ant-plugin, but I think it creates the ant-codegen.jar file

try doing a a taskdef with the task name of 
org.apache.axis2.tool.ant.AntCodegenTask

>>
>> In my copy of axis2 from a year ago, the axis-ant-plugin module has a 
>> class org.apache.axis2.tool.ant.AntCodegenTask. I do not know if this is 
>> what you want or not. I'd also point you at the axis user and then axis 
>> dev mail lists, as they are the people who know the code.
>>
>> -steve
>>

To change subject slightly, while I am pleased to see that you are 
following the path-of-righteousness by going from WSDL to Java, what 
gets generated, on all SOAP stacks, has a tendency to be pretty 
unpleasant. This is why I'm no longer an active Axis 
developer/committer; I got fed up with all the interop problems.

I'm more of an advocate of living in the XML space:
http://www.hpl.hp.com/techreports/2005/HPL-2005-83.html

While I'm not going to recommend my own 'alpine' SOAP stack, XFire has a 
pretty good reputation and does appear to be ready for production use.

-Steve

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org