Vy,

This actually works, but the mappings need to be enclosed in brackets
as in the following example:

<java classname="org.apache.ws.java2wsdl.Java2WSDL"
classpathref="maven.test.classpath" fork="true" failonerror="true">
    <arg value="-o"/>
    <arg value="${project.build.directory}/java2wsdl"/>
    <arg value="-of"/>
    <arg value="p2n.wsdl"/>
    <arg value="-cn"/>
    <arg value="org.apache.axis2.description.CalculatorService"/>
    <arg value="-p2n"/>
    <arg 
value="[org.apache.axis2.description,http://www.example.org/calculator]"/>
    <arg value="-stn"/>
    <arg value="http://www.example.org/calculator-service"/>
</java>

Obviously, java2wsdl should complain when the syntax is incorrect, but
it fails to do so. Can you open a JIRA issue for that?

Andreas

On Sun, Mar 14, 2010 at 03:35, Nan Null <[email protected]> wrote:
> Hi Andreas,
>
> Please see my comment below.
>
>
>> Where does Axis2 use the incorrect namespace? In the output of
>> Java2WSDL, in the WSDL exposed at runtime (through the "...?wsdl" URL)
>> or in responses received from the service?
>
> This happens when I run Java2WSDL using ant java task (running the
> main class).  Basically, the main method is called with parameters
> passing in almost like running it from a command line classical Java
> application.
>
> Regards,
>
> Vy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to