axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sagara Gunathunga (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AXIS2-4456) Cannot process a POJO-based Web Service (i.e. uses RPCMessageReceiver). If any of its operations take Array of NON-OMelement parameters when requested with Wrapped-Array
Date Tue, 05 Jun 2012 10:12:23 GMT

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

Sagara Gunathunga  resolved AXIS2-4456.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.7.0

Work without any issue on 1.7.0 SNAPSHOTS
                
> Cannot process a POJO-based Web Service (i.e. uses RPCMessageReceiver). If any of its
operations take Array of NON-OMelement parameters when requested with Wrapped-Array
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4456
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4456
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.5, 1.5.1
>            Reporter: Dobri Kitipov
>             Fix For: 1.7.0
>
>         Attachments: ArrayServiceSimple.aar
>
>
> The Axis2 1.5 official release/trunk cannot process a POJO-based Web Service (i.e. one
that uses RPCMessageReceiver) that takes as parameter to any of its operations Array of NON-OMelement
parameters when request contains Wrapped-Array. I have tested the case when I have a WS with
the following simple implementation:
> public class ArrayServiceSimple {
>     public int[] getInts (int[] intArr) {
>         return intArr;
>     }
> }
> When we deploy and invoke the WS operation a request send is:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservice.lab">
>    <soapenv:Header/>
>    <soapenv:Body>
>       <web:getInts xsi:schemaLocation="http://webservice.lab note3.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>          <!--Zero or more repetitions:-->
>          <web:intArr>1</web:intArr>
>          <web:intArr>2</web:intArr>
>       </web:getInts>
>    </soapenv:Body>
> </soapenv:Envelope>
> The Array send is wrapped-array. That causes a NumberFormatException to be thrown when
processed in org.apache.axis2.databinding.utils.BeanUtil#deserialize(OMElement response,Object
[] javaTypes,ObjectSupplier objectSupplier).
> I have patches for the issue, but cannot attach them right now. I need to synchronize
this with my company and will post them within 3 days.
> Regards,
> Dobri

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message