You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Gabsaga Tata <ja...@simpaq.com> on 2006/08/31 07:16:58 UTC
Java2WSDL -y option in Ant Target
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: 1
Any ideas why?
Thanks.
Gabsaga
Re: Java2WSDL -y option in Ant Target
Posted by Anne Thomas Manes <at...@gmail.com>.
Remove the space.
On 8/31/06, Gabsaga Tata <ja...@simpaq.com> wrote:
>
> 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: 1
>
> Any ideas why?
>
> Thanks.
>
> Gabsaga
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org