You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Peter Jones (JIRA)" <ji...@apache.org> on 2006/10/19 23:10:34 UTC

[jira] Created: (CXF-161) wsdl2java doesn't map parameter order correctly

wsdl2java doesn't map parameter order correctly
-----------------------------------------------

                 Key: CXF-161
                 URL: http://issues.apache.org/jira/browse/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"/>
    </message>

(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 = "http://apache.org/header2", partName = "the_request", name = "Header")
        org.apache.header2.Header theRequest,
        @WebParam(targetNamespace = "http://apache.org/header2", header = true, mode = Mode.INOUT, partName = "header_info", name = "HeaderInfo")
        javax.xml.ws.Holder<org.apache.header2.HeaderData> headerInfo
    );
    

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

        

[jira] Resolved: (CXF-161) wsdl2java doesn't map parameter order correctly

Posted by "maomaode (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/CXF-161?page=all ]

maomaode resolved CXF-161.
--------------------------

    Resolution: Fixed

Fixed the parameter order of holder parameter, the IN/OUT parameter should replace the IN parameter instead of remove and add.

> wsdl2java doesn't map parameter order correctly
> -----------------------------------------------
>
>                 Key: CXF-161
>                 URL: http://issues.apache.org/jira/browse/CXF-161
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0-M1
>            Reporter: Peter Jones
>         Assigned To: jimma
>             Fix For: 2.0-M1
>
>         Attachments: header2.wsdl
>
>
> 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"/>
>     </message>
> (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 = "http://apache.org/header2", partName = "the_request", name = "Header")
>         org.apache.header2.Header theRequest,
>         @WebParam(targetNamespace = "http://apache.org/header2", header = true, mode = Mode.INOUT, partName = "header_info", name = "HeaderInfo")
>         javax.xml.ws.Holder<org.apache.header2.HeaderData> headerInfo
>     );
>     

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

        

[jira] Resolved: (CXF-161) wsdl2java doesn't map parameter order correctly

Posted by "jimma (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/CXF-161?page=all ]

jimma resolved CXF-161.
-----------------------

    Resolution: Fixed

> wsdl2java doesn't map parameter order correctly
> -----------------------------------------------
>
>                 Key: CXF-161
>                 URL: http://issues.apache.org/jira/browse/CXF-161
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0-M1
>            Reporter: Peter Jones
>         Assigned To: jimma
>             Fix For: 2.0-M1
>
>         Attachments: header2.wsdl
>
>
> 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"/>
>     </message>
> (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 = "http://apache.org/header2", partName = "the_request", name = "Header")
>         org.apache.header2.Header theRequest,
>         @WebParam(targetNamespace = "http://apache.org/header2", header = true, mode = Mode.INOUT, partName = "header_info", name = "HeaderInfo")
>         javax.xml.ws.Holder<org.apache.header2.HeaderData> headerInfo
>     );
>     

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

        

[jira] Updated: (CXF-161) wsdl2java doesn't map parameter order correctly

Posted by "maomaode (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/CXF-161?page=all ]

maomaode updated CXF-161:
-------------------------

        Fix Version/s: 2.0-M1
    Affects Version/s: 2.0-M1
             Assignee: jimma

> wsdl2java doesn't map parameter order correctly
> -----------------------------------------------
>
>                 Key: CXF-161
>                 URL: http://issues.apache.org/jira/browse/CXF-161
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0-M1
>            Reporter: Peter Jones
>         Assigned To: jimma
>             Fix For: 2.0-M1
>
>         Attachments: header2.wsdl
>
>
> 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"/>
>     </message>
> (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 = "http://apache.org/header2", partName = "the_request", name = "Header")
>         org.apache.header2.Header theRequest,
>         @WebParam(targetNamespace = "http://apache.org/header2", header = true, mode = Mode.INOUT, partName = "header_info", name = "HeaderInfo")
>         javax.xml.ws.Holder<org.apache.header2.HeaderData> headerInfo
>     );
>     

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

        

[jira] Updated: (CXF-161) wsdl2java doesn't map parameter order correctly

Posted by "Peter Jones (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/CXF-161?page=all ]

Peter Jones updated CXF-161:
----------------------------

    Attachment: header2.wsdl

> wsdl2java doesn't map parameter order correctly
> -----------------------------------------------
>
>                 Key: CXF-161
>                 URL: http://issues.apache.org/jira/browse/CXF-161
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>            Reporter: Peter Jones
>         Attachments: header2.wsdl
>
>
> 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"/>
>     </message>
> (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 = "http://apache.org/header2", partName = "the_request", name = "Header")
>         org.apache.header2.Header theRequest,
>         @WebParam(targetNamespace = "http://apache.org/header2", header = true, mode = Mode.INOUT, partName = "header_info", name = "HeaderInfo")
>         javax.xml.ws.Holder<org.apache.header2.HeaderData> headerInfo
>     );
>     

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

        

Re: [jira] Commented: (CXF-161) wsdl2java doesn't map parameter order correctly

Posted by Peter Jones <pe...@iona.com>.
Hi there,

On Thu, Nov 09, 2006 at 11:25:16AM +0800, James Mao wrote:
> Hi Peter,
> 
> Just commit the fix, can you try it again.

Works great James!  Thanks for the fix.  I'll remove the work-around from
the mtosi demo.

Cheers,
Peter

> Thanks,
> James.
> [...]

-- 
Peter Jones
IONA Technologies Inc.
E-Mail: mailto:peter.jones@iona.com
Tel: (w) 709-738-3725 x22 | Fax: 709-738-3745
84-86 Elizabeth Ave. St. John's, NL A1A 1W7 Canada

Re: [jira] Commented: (CXF-161) wsdl2java doesn't map parameter order correctly

Posted by James Mao <ja...@iona.com>.
Hi Peter,

Just commit the fix, can you try it again.

Thanks,
James.

Peter Jones (JIRA) 写道:
>     [ http://issues.apache.org/jira/browse/CXF-161?page=comments#action_12447917 ] 
>             
> Peter Jones commented on CXF-161:
> ---------------------------------
>
> This is still a bug.  Although the header2.wsdl that's in svn passes the test that was added for cxf-161, that wsdl differs from the one attached to this issue because the header_info part is missing from the response message in the copy in svn.  If I copy the file attached to this issue into tools/wsdl2java/src/test/resources/wsdl2java_wsdl/bug161/header2.wsdl, then the test that was added fails... because the parameter order is wrong.
>
>   
>> wsdl2java doesn't map parameter order correctly
>> -----------------------------------------------
>>
>>                 Key: CXF-161
>>                 URL: http://issues.apache.org/jira/browse/CXF-161
>>             Project: CXF
>>          Issue Type: Bug
>>          Components: Tooling
>>    Affects Versions: 2.0-M1
>>            Reporter: Peter Jones
>>         Assigned To: jimma
>>             Fix For: 2.0-M1
>>
>>         Attachments: header2.wsdl
>>
>>
>> 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"/>
>>     </message>
>> (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 = "http://apache.org/header2", partName = "the_request", name = "Header")
>>         org.apache.header2.Header theRequest,
>>         @WebParam(targetNamespace = "http://apache.org/header2", header = true, mode = Mode.INOUT, partName = "header_info", name = "HeaderInfo")
>>         javax.xml.ws.Holder<org.apache.header2.HeaderData> headerInfo
>>     );
>>     
>>     
>
>   


Re: [jira] Commented: (CXF-161) wsdl2java doesn't map parameter order correctly

Posted by James Mao <ja...@iona.com>.
Hi Peter,

Just commit the fix, can you try it again.

Thanks,
James.

Peter Jones (JIRA) 写道:
>     [ http://issues.apache.org/jira/browse/CXF-161?page=comments#action_12447917 ] 
>             
> Peter Jones commented on CXF-161:
> ---------------------------------
>
> This is still a bug.  Although the header2.wsdl that's in svn passes the test that was added for cxf-161, that wsdl differs from the one attached to this issue because the header_info part is missing from the response message in the copy in svn.  If I copy the file attached to this issue into tools/wsdl2java/src/test/resources/wsdl2java_wsdl/bug161/header2.wsdl, then the test that was added fails... because the parameter order is wrong.
>
>   
>> wsdl2java doesn't map parameter order correctly
>> -----------------------------------------------
>>
>>                 Key: CXF-161
>>                 URL: http://issues.apache.org/jira/browse/CXF-161
>>             Project: CXF
>>          Issue Type: Bug
>>          Components: Tooling
>>    Affects Versions: 2.0-M1
>>            Reporter: Peter Jones
>>         Assigned To: jimma
>>             Fix For: 2.0-M1
>>
>>         Attachments: header2.wsdl
>>
>>
>> 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"/>
>>     </message>
>> (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 = "http://apache.org/header2", partName = "the_request", name = "Header")
>>         org.apache.header2.Header theRequest,
>>         @WebParam(targetNamespace = "http://apache.org/header2", header = true, mode = Mode.INOUT, partName = "header_info", name = "HeaderInfo")
>>         javax.xml.ws.Holder<org.apache.header2.HeaderData> headerInfo
>>     );
>>     
>>     
>
>   


[jira] Commented: (CXF-161) wsdl2java doesn't map parameter order correctly

Posted by "Peter Jones (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/CXF-161?page=comments#action_12447917 ] 
            
Peter Jones commented on CXF-161:
---------------------------------

This is still a bug.  Although the header2.wsdl that's in svn passes the test that was added for cxf-161, that wsdl differs from the one attached to this issue because the header_info part is missing from the response message in the copy in svn.  If I copy the file attached to this issue into tools/wsdl2java/src/test/resources/wsdl2java_wsdl/bug161/header2.wsdl, then the test that was added fails... because the parameter order is wrong.

> wsdl2java doesn't map parameter order correctly
> -----------------------------------------------
>
>                 Key: CXF-161
>                 URL: http://issues.apache.org/jira/browse/CXF-161
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0-M1
>            Reporter: Peter Jones
>         Assigned To: jimma
>             Fix For: 2.0-M1
>
>         Attachments: header2.wsdl
>
>
> 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"/>
>     </message>
> (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 = "http://apache.org/header2", partName = "the_request", name = "Header")
>         org.apache.header2.Header theRequest,
>         @WebParam(targetNamespace = "http://apache.org/header2", header = true, mode = Mode.INOUT, partName = "header_info", name = "HeaderInfo")
>         javax.xml.ws.Holder<org.apache.header2.HeaderData> headerInfo
>     );
>     

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

        

[jira] Commented: (CXF-161) wsdl2java doesn't map parameter order correctly

Posted by "Dan Diephouse (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/CXF-161?page=comments#action_12445404 ] 
            
Dan Diephouse commented on CXF-161:
-----------------------------------

On a related note, the JaxWsServiceFactoryBean is dependent on this order instead of querying the QName for each method parameter and then matching it up to the appropriate MessagePartInfo from the WSDL...

> wsdl2java doesn't map parameter order correctly
> -----------------------------------------------
>
>                 Key: CXF-161
>                 URL: http://issues.apache.org/jira/browse/CXF-161
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0-M1
>            Reporter: Peter Jones
>         Assigned To: jimma
>             Fix For: 2.0-M1
>
>         Attachments: header2.wsdl
>
>
> 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"/>
>     </message>
> (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 = "http://apache.org/header2", partName = "the_request", name = "Header")
>         org.apache.header2.Header theRequest,
>         @WebParam(targetNamespace = "http://apache.org/header2", header = true, mode = Mode.INOUT, partName = "header_info", name = "HeaderInfo")
>         javax.xml.ws.Holder<org.apache.header2.HeaderData> headerInfo
>     );
>     

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

        

[jira] Closed: (CXF-161) wsdl2java doesn't map parameter order correctly

Posted by "maomaode (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/CXF-161?page=all ]

maomaode closed CXF-161.
------------------------


> wsdl2java doesn't map parameter order correctly
> -----------------------------------------------
>
>                 Key: CXF-161
>                 URL: http://issues.apache.org/jira/browse/CXF-161
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0-M1
>            Reporter: Peter Jones
>         Assigned To: jimma
>             Fix For: 2.0-M1
>
>         Attachments: header2.wsdl
>
>
> 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"/>
>     </message>
> (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 = "http://apache.org/header2", partName = "the_request", name = "Header")
>         org.apache.header2.Header theRequest,
>         @WebParam(targetNamespace = "http://apache.org/header2", header = true, mode = Mode.INOUT, partName = "header_info", name = "HeaderInfo")
>         javax.xml.ws.Holder<org.apache.header2.HeaderData> headerInfo
>     );
>     

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

        

[jira] Commented: (CXF-161) wsdl2java doesn't map parameter order correctly

Posted by "Peter Jones (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/CXF-161?page=comments#action_12447637 ] 
            
Peter Jones commented on CXF-161:
---------------------------------

Are you sure this bug is resolved?  I just tried running wsdl2java with the wsdl attached to the bug, and the headerInfo was still the second parameter of the method instead of the first (its the first part in the message)... I'll look into this a bit more tomorrow to make sure I'm not just confused.

> wsdl2java doesn't map parameter order correctly
> -----------------------------------------------
>
>                 Key: CXF-161
>                 URL: http://issues.apache.org/jira/browse/CXF-161
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0-M1
>            Reporter: Peter Jones
>         Assigned To: jimma
>             Fix For: 2.0-M1
>
>         Attachments: header2.wsdl
>
>
> 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"/>
>     </message>
> (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 = "http://apache.org/header2", partName = "the_request", name = "Header")
>         org.apache.header2.Header theRequest,
>         @WebParam(targetNamespace = "http://apache.org/header2", header = true, mode = Mode.INOUT, partName = "header_info", name = "HeaderInfo")
>         javax.xml.ws.Holder<org.apache.header2.HeaderData> headerInfo
>     );
>     

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

        

[jira] Reopened: (CXF-161) wsdl2java doesn't map parameter order correctly

Posted by "Bozhong Lin (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/CXF-161?page=all ]

Bozhong Lin reopened CXF-161:
-----------------------------

             

> wsdl2java doesn't map parameter order correctly
> -----------------------------------------------
>
>                 Key: CXF-161
>                 URL: http://issues.apache.org/jira/browse/CXF-161
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0-M1
>            Reporter: Peter Jones
>         Assigned To: jimma
>             Fix For: 2.0-M1
>
>         Attachments: header2.wsdl
>
>
> 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"/>
>     </message>
> (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 = "http://apache.org/header2", partName = "the_request", name = "Header")
>         org.apache.header2.Header theRequest,
>         @WebParam(targetNamespace = "http://apache.org/header2", header = true, mode = Mode.INOUT, partName = "header_info", name = "HeaderInfo")
>         javax.xml.ws.Holder<org.apache.header2.HeaderData> headerInfo
>     );
>     

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

        

[jira] Commented: (CXF-161) wsdl2java doesn't map parameter order correctly

Posted by "jimma (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/CXF-161?page=comments#action_12448062 ] 
            
jimma commented on CXF-161:
---------------------------

Thank you for pointing out this to me .
I only fixed the parameter order issue when there is no holder in method parameters. I need to add another test for holder parameter using the attached wsdl .  I will look into this .   

> wsdl2java doesn't map parameter order correctly
> -----------------------------------------------
>
>                 Key: CXF-161
>                 URL: http://issues.apache.org/jira/browse/CXF-161
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0-M1
>            Reporter: Peter Jones
>         Assigned To: jimma
>             Fix For: 2.0-M1
>
>         Attachments: header2.wsdl
>
>
> 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"/>
>     </message>
> (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 = "http://apache.org/header2", partName = "the_request", name = "Header")
>         org.apache.header2.Header theRequest,
>         @WebParam(targetNamespace = "http://apache.org/header2", header = true, mode = Mode.INOUT, partName = "header_info", name = "HeaderInfo")
>         javax.xml.ws.Holder<org.apache.header2.HeaderData> headerInfo
>     );
>     

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