FYI: You can get the skeleton interfaces with the command line wsdl2java
using the -ssi flag. The default is off. 

-----Original Message-----
From: david2 [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 28, 2007 3:32 PM
To: axis-user@ws.apache.org
Subject: Re: Ant wsdl2java & command line WSDL2Java generate different
code


Answer to my question #3:  Use the Ant java task.  This behaves the same
way as the User Guide example (no Skeleton Interface, nor references to
it) and, best of all, the Client successfully executes against the
resulting aar.

Here are the tasks for generating the service aar file.  Note the copied
Skeleton containing method logic.  The ant task kicks off the build
script created by wsdl2java:

        <java classname="org.apache.axis2.wsdl.WSDL2Java">
            <arg line="-uri ${wsdl.file} -p ${package.name} -o
${service.dir} -d ${binding} -s -wv 1.1 -ss -sd" />
            <classpath refid="axis2.classpath" />
        </java>
        <copy file="${basedir}/Axis2UserGuideServiceSkeleton.java" 
            toDir="${service.dir}/src/org/apache/axis2/axis2userguide/"
overwrite="yes">
        </copy>
        <ant dir="${service.dir}" />

Here are the tasks for generating the client jar file.  The ant task
kicks off the build script created by wsdl2java:

        <java classname="org.apache.axis2.wsdl.WSDL2Java">
            <arg line="-uri ${wsdl.file} -p ${package.name} -o
${client.dir} -d ${binding} -s" />
            <classpath refid="axis2.classpath" />
        </java>
        <ant dir="${client.dir}" />
--
View this message in context:
http://www.nabble.com/Ant-wsdl2java---command-line-WSDL2Java-generate-di
fferent-code-tf3481674.html#a9718427
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to