[ http://issues.apache.org/jira/browse/AXIS2-1609?page=all ]

Ulf Heyder updated AXIS2-1609:
------------------------------

    Attachment: KeinFehlerWsdl2Java.zip

Thanks to Carlos Riberiro answering my mail in axis-user list:
He wrote:
You probably need to do: "-ns2p 
http://www.foo-bar.de/bar=foo.bar.service.types";.
I wrongly used the option like "-ns2p bar=foo.bar.service.types" having defined 
xmlns:bar="http://www.foo-bar.de/bar";

See my new attachment where I changed my wsdl2java call, everything works fine 
now.

It seems to be important to be precise with the namespace:
-ns2p http://www.example.org/Test/=de.foo.service.types works
-ns2p http://www.example.org/Test=de.foo.service.types doen't work since I 
defined 

xmlns:tns="http://www.example.org/Test/"; (regard the last slash)

We should change status to "improvement" to extend functionality to use "-ns2p 
bar=foo.bar.service.types" also.

> namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2
> --------------------------------------------------------------------------
>
>                 Key: AXIS2-1609
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1609
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.1
>         Environment: Win XP, JDK 1.5
>            Reporter: Charitha Kankanamge
>            Priority: Critical
>         Attachments: FehlerWsdl2Java.zip, KeinFehlerWsdl2Java.zip, 
> MathsService.wsdl
>
>
> ns2p code gen option does not work in Axis2 1.1 RC2.
> I provided the following code gen option.
> C:\Axis\axis-rc\axis2-1.1\bin>wsdl2java -uri "C:\Documents and 
> Settings\Charitha\workspace2\servicetest\temp2\MathsService.wsdl" -ns2p 
> http://test.com=my.new
> -o "C:\Documents and 
> Settings\Charitha\workspace2\servicetest\temp2\packagetest"
> The generated stub was not included in the given package (my.new). Instead, 
> it was included inside the original package (com.test)
> The wsdl file is attached here with.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to