[ 
https://issues.apache.org/jira/browse/CXF-2047?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yvan DeBoeck updated CXF-2047:
------------------------------

    Attachment: cxf_faultproblem.zip

eclipse project of minimal example illustrating issue.

The hello.Hello interface is an example of a WebFault specified in a different 
namespace then the WebService.

first the wsdl is generated
org.apache.cxf.tools.java2wsdl.JavaToWSDL
with params: -createxsdimports -verbose -s generated -o hello.wsdl hello.Hello

then the reverse with -p params for different packages per namespace
org.apache.cxf.tools.wsdlto.WSDLToJava
with params: -p http://fault=gen_fault -p http://hello=gen_hello -verbose 
-client -d generated hello.wsdl

The HelloFault class is generated in package gen_hello instead of gen_fault.
The HelloFaultDetails class is correctly generated in package gen_fault. 
(When the wsdl is generated without the option -createxsdimports, also the 
HelloFaultDetails class is wrongly generated in package gen_hello.)


> WSDLToJava generates webfault in wrong package
> ----------------------------------------------
>
>                 Key: CXF-2047
>                 URL: https://issues.apache.org/jira/browse/CXF-2047
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0.10
>            Reporter: Yvan DeBoeck
>         Attachments: cxf_faultproblem.zip
>
>
> When a web service has a method that throws an exception (webfault) then the 
> webfault exception class is generated in the package associated with the 
> service and not in the package of the namespace of the exception. The 
> package-namespace association is configured via -p
> I'll include an example soon.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to