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 &quot;http://localhost/axis/services/sayhello&quot;" />
 <arg value="-n &quot;urn:com:simpaq:helloworld&quot;" />
 <arg value="-p&quot;com:simpaq:helloworld&quot;" /> 
 <arg value="&quot;urn:com:simpaq:helloworld&quot;" />
 <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 &quot;http://localhost/axis/services/sayhello&quot;" />
 <arg value="-n &quot;urn:com:simpaq:helloworld&quot;" />
 <arg value="-p&quot;com:simpaq:helloworld&quot;" /> 
<arg value="-y WRAPPED" />
 <arg value="&quot;urn:com:simpaq:helloworld&quot;" />
 <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
> &quot;http://localhost/axis/services/sayhello&quot;" />
>   <arg value="-n &quot;urn:com:simpaq:helloworld&quot;" />
>   <arg value="-p&quot;com:simpaq:helloworld&quot;" />
>   <arg value="&quot;urn:com:simpaq:helloworld&quot;" />
>   <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
> &quot;http://localhost/axis/services/sayhello&quot;" />
>   <arg value="-n &quot;urn:com:simpaq:helloworld&quot;" />
>   <arg value="-p&quot;com:simpaq:helloworld&quot;" />
>   <arg value="-y WRAPPED" />
>   <arg value="&quot;urn:com:simpaq:helloworld&quot;" />
>   <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