axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dobri Kitipov (JIRA)" <j...@apache.org>
Subject [jira] Created: (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 Fri, 31 Jul 2009 10:26:14 GMT
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: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: adb
    Affects Versions: 1.5, 1.5.1
            Reporter: Dobri Kitipov


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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message