The following ant target works just fine.
<target name="Java2WSDL" description="Creates WSDL file from Java Classes">
<java classname="org.apache.axis.wsdl.Java2WSDL" fork="yes" > <arg value="-o helloworld.wsdl" /> <arg value="-l "http://localhost/axis/services/sayhello"" /> <arg value="-n "urn:com:simpaq:helloworld"" /> <arg value="-p"com:simpaq:helloworld"" /> <arg value=""urn:com:simpaq:helloworld"" /> <arg value="com.simpaq.helloworld.SayHello" /> <classpath> <path refid="APACHE_AXIS_API.classpath"/> <path refid="compile.classpath" /> <pathelement path="${build.home}"/> </classpath> </java> </target> But when I added the option "-y WRAPPED" like the following:
<target name="Java2WSDL" description="Creates WSDL file from Java Classes">
<java classname="org.apache.axis.wsdl.Java2WSDL" fork="yes" > <arg value="-o helloworld.wsdl" /> <arg value="-l "http://localhost/axis/services/sayhello"" /> <arg value="-n "urn:com:simpaq:helloworld"" /> <arg value="-p"com:simpaq:helloworld"" /> <arg value="-y WRAPPED" /> <arg value=""urn:com:simpaq:helloworld"" /> <arg value="com.simpaq.helloworld.SayHello" /> <classpath> <path refid="APACHE_AXIS_API.classpath"/> <path refid="compile.classpath" /> <pathelement path="${build.home}"/> </classpath> </java> </target> I get the following error:
Java2WSDL :[ java] The value of --style must be DOCUMENT, RPC, or WRAPPED.[ java] Java Result: 1Any ideas why?
Thanks.
Gabsaga
|
- Java2WSDL -y option in Ant Target Gabsaga Tata
- Re: Java2WSDL -y option in Ant Target Anne Thomas Manes
- Re: Java2WSDL -y option in Ant Target Gabsaga Tata
