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 "Dobri Kitipov (JIRA)" <ji...@apache.org> on 2009/07/31 12:26:14 UTC
[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
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.
[jira] Updated: (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
Posted by "Dobri Kitipov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dobri Kitipov updated AXIS2-4456:
---------------------------------
Attachment: ArrayServiceSimple.aar
Attaching ArrayServiceSimple.aar as a sample AAR that can reproduce the problem. It has useOriginalwsdl set to "true"
> 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, 1.5
> Reporter: Dobri Kitipov
> 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.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (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
Posted by "Dobri Kitipov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12737488#action_12737488 ]
Dobri Kitipov commented on AXIS2-4456:
--------------------------------------
Patches created are for the one-dimensional array. The Axis2 1.5. build and tests pass with them.
I should test more extensively with n-dimensional arrays, too.
> 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, 1.5
> Reporter: Dobri Kitipov
> 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.
-
You can reply to this email to add a comment to the issue online.