ws-savan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Barker (JIRA)" <>
Subject [jira] Created: (AXIS2-4851) Pojo with optional fields in WSDL - parameters are mapped by order rather than name
Date Thu, 14 Oct 2010 18:52:32 GMT
Pojo with optional fields in WSDL - parameters are mapped by order rather than name

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

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,,
parameter6=Test7, parameter7=Test7-TwoStep, parameter8=Darth, parameter9=Servicing-232-1,
replyToOperation=null, replyToNamespace=null

Soap message:

<soap:Envelope xmlns:soap="" xmlns:web="">

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:
For additional commands, e-mail:

View raw message