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

Chris Moesel updated CXF-602:
-----------------------------

    Attachment: pizza_service_cxf_wsdl2java_header_bug.zip

At least one of the issues with generating from the ebay wsdl is that the 
headers are not included in method signatures.  The following simple project 
and wsdl demonstrates this bug (in a way that is easier to grasp than the ebay 
wsdl).

The summary is as follows:

If a type that should be passed in the SOAP header is defined in its own message
rather than the request message, then CXF does not generate a parameter for 
that 
type in the interface.  There is no simple way to access that data from the 
header.

On the other hand, if the type is defined as a separate part of the same request
message (instead of in its own message), then the interface is generated 
correctly.

The attached example demonstrates a broken operation and a working one.  
It is recommended you look at the wsdl to see the difference:
src/main/resources/pizza.wsdl

Then run "mvn install" and look at the generated PizzaPortType interface:
target/generated/src/main/java/com/mypizzaco/service/PizzaPortType.java

Note the difference in the method signatures of the two operations.  If CXF
were working correctly, both signatures should be the same.

> EBay WSDL does not work
> -----------------------
>
>                 Key: CXF-602
>                 URL: https://issues.apache.org/jira/browse/CXF-602
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0-RC
>            Reporter: Dan Diephouse
>             Fix For: 2.0
>
>         Attachments: pizza_service_cxf_wsdl2java_header_bug.zip
>
>
> Generating a client for the EBay WSDL does not seem to work correctly.

-- 
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