Re: Ant wsdl2java command line WSDL2Java generate different code

2007-03-29 Thread Glen Mazza
Am Mittwoch, den 28.03.2007, 10:12 -0700 schrieb david2:

 I also noticed that the ant wsdl2java task generated an
 Axis2UserGuideServiceSkeletonInterface class which was never generated by
 the invocation of WSDL2Java as a Java class. 

According to the docs[1], it appears that that's because you did not set
the -ssi option for the CLI, or equivalently because you set the
serverSideInterface option with the Ant task.

Glen


[1] http://ws.apache.org/axis2/tools/1_1/CodegenToolReference.html

 
 Command line service code generation (all on one line):
 ===
 
   java org.apache.axis2.wsdl.WSDL2Java 
   -uri Axis2UserGuide.wsdl 
   -p org.apache.axis2.axis2userguide 
   -o service 
   -d adb 
   -s 
   -wv 1.1 
   -ss 
   -sd
 
 Ant task service code generation (all on one line):
 ===
 
 taskdef name=wsdl2java
  classname=org.apache.axis2.tool.ant.AntCodegenTask
  classpathref=axis2.classpath/
 wsdl2java wsdlFilename=${wsdl.file}
output=${service.dir}
packageName=org.apache.axis2.axis2userguide
language=java
databindingName=adb
synconly=true
serverside=true
serverSideInterface=true
   
 namespaceToPackages=http://apache.org/axis2/Axis2UserGuide=org.apache.axis2.axis2userguide;
generateservicexml=true
 /
 



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



Re: Ant wsdl2java command line WSDL2Java generate different code

2007-03-28 Thread david2

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-different-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]



RE: Ant wsdl2java command line WSDL2Java generate different code

2007-03-28 Thread Masin, Valerie
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]