users@jax-rpc.java.net

Re: ant task wscompile frustration

From: trebor iksrazal <iksrazal_at_yahoo.com>
Date: Tue, 31 May 2005 11:04:39 -0700 (PDT)

My intro got trimmed, should have been:

Hi all,

I know ant and web services well, and I have been
using a bash alias to call wscompile.sh . I decided to
try to call wscompile via ant, and I get:

home/iksrazal/watchdog> ant ws
Buildfile: build.xml

ws:
wscompile] command line: wscompile -g -import -mapping
/home/iksrazal/watchdog/resources/CallCentreWeb_Mapping.xml
-verbose
/home/iksrazal/watchdog/resources/config-wsdl.xml
[wscompile] error: -mapping is an invalid option or
argument

[wscompile] Usage: wscompile [options]
configuration_file

[wscompile] Use "wscompile -help" for a detailed
description of options.


BUILD FAILED

In the shell my alias that works fine is:

wscompile.sh -import -mapping
resources/CallCentreWeb_Mapping.xml
resources/config-wsdl.xml

My ant tasks are:

<taskdef name="wscompile"
classname="com.sun.xml.rpc.tools.ant.Wscompile">
       <classpath refid="classpath-jboss"/>
</taskdef>
<target name="ws" description="Generate compiled
complex interfaces and classes from wsdl">
       <wscompile
             import="true"
            
mapping="resources/CallCentreWeb_Mapping.xml"
             verbose="true"
             debug="true"
             config="resources/config-wsdl.xml">
       </wscompile>
  </target>

The documentation I have been using:

https://jax-rpc.dev.java.net/whitepaper/1.1/index-part1.html#2.1

Any ideas?
iksrazal




--- trebor iksrazal <iksrazal_at_yahoo.com> wrote:
> /home/iksrazal/watchdog> ant ws
> Buildfile: build.xml
>
> ws:
> wscompile] command line: wscompile -g -import
> -mapping
>
/home/iksrazal/watchdog/resources/CallCentreWeb_Mapping.xml
> -verbose
> /home/iksrazal/watchdog/resources/config-wsdl.xml
> [wscompile] error: -mapping is an invalid option or
> argument
>
> [wscompile] Usage: wscompile [options]
> configuration_file
>
> [wscompile] Use "wscompile -help" for a detailed
> description of options.
>
>
> BUILD FAILED
>
> In the shell my alias that works fine is:
>
> wscompile.sh -import -mapping
> resources/CallCentreWeb_Mapping.xml
> resources/config-wsdl.xml
>
> My ant tasks are:
>
> <taskdef name="wscompile"
> classname="com.sun.xml.rpc.tools.ant.Wscompile">
> <classpath refid="classpath-jboss"/>
> </taskdef>
> <target name="ws" description="Generate compiled
> complex interfaces and classes from wsdl">
> <wscompile
> import="true"
>
> mapping="resources/CallCentreWeb_Mapping.xml"
> verbose="true"
> debug="true"
> config="resources/config-wsdl.xml">
> </wscompile>
> </target>
>
> The documentation I have been using:
>
>
https://jax-rpc.dev.java.net/whitepaper/1.1/index-part1.html#2.1
>
> Any ideas?
> iksrazal
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe_at_jax-rpc.dev.java.net
> For additional commands, e-mail:
> users-help_at_jax-rpc.dev.java.net
>
>


                
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/