Remove the space.

On 8/31/06, Gabsaga Tata <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to