You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org> on 2007/05/03 07:02:15 UTC

[jira] Commented: (AXIS2-2609) Incorrectly generated stub functions

    [ https://issues.apache.org/jira/browse/AXIS2-2609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493280 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-2609:
-----------------------------------------------------

use 
<operation name="sampleOperation">
         <soap:operation soapAction="http://www.mycompany.com/SampleService/queryServers" style="document"/>
         <input>
            <soap:header message="tns:sampleRequest" part="header" use="literal"/>
            <soap:body parts="" use="literal"/>
         </input>
         <output>
            <soap:body parts="payload" use="literal"/>
         </output>
      </operation>

please specifically specify you don't want to send any thing in the body. Otherwise it picks the message part as the body part. 

> Incorrectly generated stub functions 
> -------------------------------------
>
>                 Key: AXIS2-2609
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2609
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.2
>            Reporter: Gul Onural
>         Assigned To: Amila Chinthaka Suriarachchi
>            Priority: Blocker
>         Attachments: test.zip
>
>
> The release 1.2 wsdl2 java generates incorrect stub functions for the operations that has header part only, no payload.
> This was correctly done with version axis2 1.1.1. Something changed in between the two releases in this area is causing the problem.
> For example, operation and message are defined something similar to  :
>       <operation name="queryX">
>          <input message="queryXRequest"/>
>          <output message="queryXResponse"/>
>       </operation>
>    <message name="queryXRequest">
>       <part name="header" element="id"/>
>    </message>
> The generated stubs contains the id twice :
>   public  com.mycompany.QueryXResponseDocument queryX(
>                             com.mycompany.IdDocument id2,
>                             com.mycompany.IdDocument id3)
>                             throws java.rmi.RemoteException
> {
> ...
> }

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org