cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Jones (JIRA)" <>
Subject [jira] Created: (CXF-161) wsdl2java doesn't map parameter order correctly
Date Thu, 19 Oct 2006 21:10:34 GMT
wsdl2java doesn't map parameter order correctly

                 Key: CXF-161
             Project: CXF
          Issue Type: Bug
          Components: Tooling
            Reporter: Peter Jones

According to the "Parameter Order" section of jaxws spec, unlisted parameters mapped from
in and in/out parts appear in the same order the corresponding parts appear in the input message.

I'll attach a test wsdl in which wsdl2java doesn't follow this rule.  Basically, the wsdl
input message is:

    <message name="headerRequest">
        <part element="tns:HeaderInfo" name="header_info"/>
        <part element="tns:Header" name="the_request"/>

(header_info first, the_request second) - but the generated method signature 
has theRequest parameter first and headerInfo second:

    public org.apache.header2.HeaderResponse headerMethod(
        @WebParam(targetNamespace = "", partName = "the_request",
name = "Header")
        org.apache.header2.Header theRequest,
        @WebParam(targetNamespace = "", header = true, mode = Mode.INOUT,
partName = "header_info", name = "HeaderInfo")<org.apache.header2.HeaderData> headerInfo

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message