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

Amila Chinthaka Suriarachchi resolved AXIS2-4851.
-------------------------------------------------

    Resolution: Fixed

fixed already

> Pojo with optional fields in WSDL - parameters are mapped by order rather 
> than name
> -----------------------------------------------------------------------------------
>
>                 Key: AXIS2-4851
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4851
>             Project: Axis2
>          Issue Type: Bug
>    Affects Versions: 1.5.1
>         Environment: JBoss 4.3, Java 1.5, Linux 4.7
>            Reporter: Larry Barker
>
> I have several axis2 web services built via Eclipse 3.5 by clicking "Create 
> Web Service"  The web service is correctly created and deployed.  The WSDL 
> can be viewed, and the Web Service can be executed.  The problem is that the 
> WSDL generated sets minOccurs to 0 on all the fields (which is fine because 
> many are optional).  But if parameters in the middle of the list are omitted 
> when calling the service, the values appear to be mapped to the pojo based on 
> order in the soap document, not name.  For example, if I have parameters p1, 
> p2, and p3, and I supply value for p1 and p3 only, when the pojo method is 
> called, p2 has the value of p3, and p3 is null.
> I am sure there is a solution for this, but I cannot find it anywhere.  Can 
> someone help?
> Here is a message printed from my Pojo.  The soap message is below.  Please 
> note that parameter9 and parameter10 are omitted from the message, but values 
> are found, and the last 2 parameters are left as null...
> Received getUserDecisionFromDashboard request: entityName=entityName, 
> parameterNames=parameterNames, parameter1=SPT-Software, parameter2=, 
> parameter3=507, parameter4=ARACHNOPHOBIA, 
> parameter5=mamtm02.studio.disney.com, parameter6=Test7, 
> parameter7=Test7-TwoStep, parameter8=Darth, parameter9=Servicing-232-1, 
> parameter10=http://spt01.swna.wdpr.disney.com:28080/active-bpel/services/soap12/GetUserDecisionCallbackService,
>  
> replyToEndpoint=http://spt.studio.disney.com/schema/SPT-CommonResources/GetUserDecisionWrapper.xsd,
>  replyToOperation=null, replyToNamespace=null
> Soap message:
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"; 
> xmlns:web="http://webservice.hi.spt.disney.com";>
>    <soap:Header/>
>    <soap:Body>
>       <web:getUserDecisionFromDashboard>
>          <!--Optional:-->
>          
> <web:entityName>Servicing-Dashboard-TargetDirectoryRequired</web:entityName>
>          <!--Optional:-->
>          
> <web:parameterNames>toEmailList,additionalEmails,WMLSRequestNo,assetName,targetAgent,Notes,Comments,Contact</web:parameterNames>
>          <!--Optional:-->
>          <web:parameter1>SPT-Software</web:parameter1>
>          <!--Optional:-->
>          <web:parameter2></web:parameter2>
>          <!--Optional:-->
>          <web:parameter3>507</web:parameter3>
>          <!--Optional:-->
>          <web:parameter4>ARACHNOPHOBIA</web:parameter4>
>          <!--Optional:-->
>          <web:parameter5>mamtm02.studio.disney.com</web:parameter5>
>          <!--Optional:-->
>          <web:parameter6>Test7</web:parameter6>
>          <!--Optional:-->
>          <web:parameter7>Test7-TwoStep</web:parameter7>
>          <!--Optional:-->
>          <web:parameter8>Darth</web:parameter8>
>           <!--Optional:-->
>          <web:businessCorrID>Servicing-232-1</web:businessCorrID>
>          <!--Optional:-->
>          
> <web:replyToEndpoint>http://spt01.swna.wdpr.disney.com:28080/active-bpel/services/soap12/GetUserDecisionCallbackService</web:replyToEndpoint>
>          <!--Optional:-->
>          
> <web:replyToOperation>getUserDecisionCallbackRequest</web:replyToOperation>
>          <!--Optional:-->
>          
> <web:replyToNamespace>http://spt.studio.disney.com/schema/SPT-CommonResources/GetUserDecisionWrapper.xsd</web:replyToNamespace>
>       </web:getUserDecisionFromDashboard>
>    </soap:Body>
> </soap:Envelope>

-- 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to