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 "Prabhath Suminda (JIRA)" <ji...@apache.org> on 2012/09/21 08:37:07 UTC
[jira] [Created] (AXIS2-5427) POJO services with Parameters/return
types like List not working
Prabhath Suminda created AXIS2-5427:
---------------------------------------
Summary: POJO services with Parameters/return types like List<Integer> not working
Key: AXIS2-5427
URL: https://issues.apache.org/jira/browse/AXIS2-5427
Project: Axis2
Issue Type: Bug
Affects Versions: 1.7.0
Reporter: Prabhath Suminda
Priority: Blocker
I developed a simple service which has following service class,
package Test;
import java.util.*;
public class SimpleService {
public List<Integer> helloService(List<Integer> s){
return s;
}
}
When I deployed this as a AAR file and send following request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:test="http://Test">
<soapenv:Header/>
<soapenv:Body>
<test:helloService>
<!--1 or more repetitions:-->
<test:s>6</test:s>
<test:s>6</test:s>
<test:s>6</test:s>
</test:helloService>
</soapenv:Body>
</soapenv:Envelope>
It gives me following response which is wrong,
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:helloServiceResponse xmlns:ns="http://Test">
<ns:return xsi:type="axis2ns1:int" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
<ns:return xsi:type="axis2ns2:int" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
<ns:return xsi:type="axis2ns3:int" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
</ns:helloServiceResponse>
</soapenv:Body>
</soapenv:Envelope>
But this works when type is List<String>. I attached the aar file.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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
[jira] [Updated] (AXIS2-5427) POJO services with Parameters/return
types like List not working
Posted by "Prabhath Suminda (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Prabhath Suminda updated AXIS2-5427:
------------------------------------
Attachment: List_Integer.zip
This service takes a List<Integer> and returns a List<Integer>.
> POJO services with Parameters/return types like List<Integer> not working
> -------------------------------------------------------------------------
>
> Key: AXIS2-5427
> URL: https://issues.apache.org/jira/browse/AXIS2-5427
> Project: Axis2
> Issue Type: Bug
> Affects Versions: 1.7.0
> Reporter: Prabhath Suminda
> Priority: Blocker
> Attachments: List_Integer.zip, Test-1.aar
>
>
> I developed a simple service which has following service class,
> package Test;
> import java.util.*;
> public class SimpleService {
>
> public List<Integer> helloService(List<Integer> s){
> return s;
> }
> }
> When I deployed this as a AAR file and send following request
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:test="http://Test">
> <soapenv:Header/>
> <soapenv:Body>
> <test:helloService>
> <!--1 or more repetitions:-->
> <test:s>6</test:s>
> <test:s>6</test:s>
> <test:s>6</test:s>
> </test:helloService>
> </soapenv:Body>
> </soapenv:Envelope>
> It gives me following response which is wrong,
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Body>
> <ns:helloServiceResponse xmlns:ns="http://Test">
> <ns:return xsi:type="axis2ns1:int" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
> <ns:return xsi:type="axis2ns2:int" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
> <ns:return xsi:type="axis2ns3:int" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
> </ns:helloServiceResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> But this works when type is List<String>. I attached the aar file.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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
[jira] [Commented] (AXIS2-5427) POJO services with
Parameters/return types like List not working
Posted by "Prabhath Suminda (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13461586#comment-13461586 ]
Prabhath Suminda commented on AXIS2-5427:
-----------------------------------------
Yes, List<String> does not work in 1.6.2, and 1.6.1. But it works in the current trunk.
> POJO services with Parameters/return types like List<Integer> not working
> -------------------------------------------------------------------------
>
> Key: AXIS2-5427
> URL: https://issues.apache.org/jira/browse/AXIS2-5427
> Project: Axis2
> Issue Type: Bug
> Affects Versions: 1.7.0
> Reporter: Prabhath Suminda
> Priority: Blocker
> Attachments: List_Integer.zip, Test-1.aar
>
>
> I developed a simple service which has following service class,
> package Test;
> import java.util.*;
> public class SimpleService {
>
> public List<Integer> helloService(List<Integer> s){
> return s;
> }
> }
> When I deployed this as a AAR file and send following request
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:test="http://Test">
> <soapenv:Header/>
> <soapenv:Body>
> <test:helloService>
> <!--1 or more repetitions:-->
> <test:s>6</test:s>
> <test:s>6</test:s>
> <test:s>6</test:s>
> </test:helloService>
> </soapenv:Body>
> </soapenv:Envelope>
> It gives me following response which is wrong,
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Body>
> <ns:helloServiceResponse xmlns:ns="http://Test">
> <ns:return xsi:type="axis2ns1:int" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
> <ns:return xsi:type="axis2ns2:int" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
> <ns:return xsi:type="axis2ns3:int" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
> </ns:helloServiceResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> But this works when type is List<String>. I attached the aar file.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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
[jira] [Updated] (AXIS2-5427) POJO services with Parameters/return
types like List not working
Posted by "Shameera Rathnayaka (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shameera Rathnayaka updated AXIS2-5427:
---------------------------------------
Attachment: WrappedGenericListTest.patch
I have added a new patch which has test cases to cover generic wrapper type list. Please review and commit
> POJO services with Parameters/return types like List<Integer> not working
> -------------------------------------------------------------------------
>
> Key: AXIS2-5427
> URL: https://issues.apache.org/jira/browse/AXIS2-5427
> Project: Axis2
> Issue Type: Bug
> Affects Versions: 1.7.0
> Reporter: Prabhath Suminda
> Assignee: Shameera Rathnayaka
> Priority: Blocker
> Attachments: List_Integer.zip, Test-1.aar, WrappedGenericList.patch, WrappedGenericListTest.patch
>
>
> I developed a simple service which has following service class,
> package Test;
> import java.util.*;
> public class SimpleService {
>
> public List<Integer> helloService(List<Integer> s){
> return s;
> }
> }
> When I deployed this as a AAR file and send following request
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:test="http://Test">
> <soapenv:Header/>
> <soapenv:Body>
> <test:helloService>
> <!--1 or more repetitions:-->
> <test:s>6</test:s>
> <test:s>6</test:s>
> <test:s>6</test:s>
> </test:helloService>
> </soapenv:Body>
> </soapenv:Envelope>
> It gives me following response which is wrong,
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Body>
> <ns:helloServiceResponse xmlns:ns="http://Test">
> <ns:return xsi:type="axis2ns1:int" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
> <ns:return xsi:type="axis2ns2:int" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
> <ns:return xsi:type="axis2ns3:int" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
> </ns:helloServiceResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> But this works when type is List<String>. I attached the aar file.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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
[jira] [Commented] (AXIS2-5427) POJO services with
Parameters/return types like List not working
Posted by "Kishanthan Thangarajah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13461173#comment-13461173 ]
Kishanthan Thangarajah commented on AXIS2-5427:
-----------------------------------------------
Can you also attach the aar which takes List<Integer>?. I tried the same service in 1.6.2. Looks like return type List<String> does not work in 1.6.2, but works in trunk. In 1.6.2, i'm getting an empty response as
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:helloServiceResponse xmlns:ns="http://Test"/>
</soapenv:Body>
</soapenv:Envelope>
> POJO services with Parameters/return types like List<Integer> not working
> -------------------------------------------------------------------------
>
> Key: AXIS2-5427
> URL: https://issues.apache.org/jira/browse/AXIS2-5427
> Project: Axis2
> Issue Type: Bug
> Affects Versions: 1.7.0
> Reporter: Prabhath Suminda
> Priority: Blocker
> Attachments: Test-1.aar
>
>
> I developed a simple service which has following service class,
> package Test;
> import java.util.*;
> public class SimpleService {
>
> public List<Integer> helloService(List<Integer> s){
> return s;
> }
> }
> When I deployed this as a AAR file and send following request
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:test="http://Test">
> <soapenv:Header/>
> <soapenv:Body>
> <test:helloService>
> <!--1 or more repetitions:-->
> <test:s>6</test:s>
> <test:s>6</test:s>
> <test:s>6</test:s>
> </test:helloService>
> </soapenv:Body>
> </soapenv:Envelope>
> It gives me following response which is wrong,
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Body>
> <ns:helloServiceResponse xmlns:ns="http://Test">
> <ns:return xsi:type="axis2ns1:int" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
> <ns:return xsi:type="axis2ns2:int" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
> <ns:return xsi:type="axis2ns3:int" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
> </ns:helloServiceResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> But this works when type is List<String>. I attached the aar file.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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
[jira] [Assigned] (AXIS2-5427) POJO services with Parameters/return
types like List not working
Posted by "Shameera Rathnayaka (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shameera Rathnayaka reassigned AXIS2-5427:
------------------------------------------
Assignee: Shameera Rathnayaka
> POJO services with Parameters/return types like List<Integer> not working
> -------------------------------------------------------------------------
>
> Key: AXIS2-5427
> URL: https://issues.apache.org/jira/browse/AXIS2-5427
> Project: Axis2
> Issue Type: Bug
> Affects Versions: 1.7.0
> Reporter: Prabhath Suminda
> Assignee: Shameera Rathnayaka
> Priority: Blocker
> Attachments: List_Integer.zip, Test-1.aar, WrappedGenericList.patch
>
>
> I developed a simple service which has following service class,
> package Test;
> import java.util.*;
> public class SimpleService {
>
> public List<Integer> helloService(List<Integer> s){
> return s;
> }
> }
> When I deployed this as a AAR file and send following request
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:test="http://Test">
> <soapenv:Header/>
> <soapenv:Body>
> <test:helloService>
> <!--1 or more repetitions:-->
> <test:s>6</test:s>
> <test:s>6</test:s>
> <test:s>6</test:s>
> </test:helloService>
> </soapenv:Body>
> </soapenv:Envelope>
> It gives me following response which is wrong,
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Body>
> <ns:helloServiceResponse xmlns:ns="http://Test">
> <ns:return xsi:type="axis2ns1:int" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
> <ns:return xsi:type="axis2ns2:int" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
> <ns:return xsi:type="axis2ns3:int" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
> </ns:helloServiceResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> But this works when type is List<String>. I attached the aar file.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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
[jira] [Updated] (AXIS2-5427) POJO services with Parameters/return
types like List not working
Posted by "Prabhath Suminda (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Prabhath Suminda updated AXIS2-5427:
------------------------------------
Attachment: Test-1.aar
> POJO services with Parameters/return types like List<Integer> not working
> -------------------------------------------------------------------------
>
> Key: AXIS2-5427
> URL: https://issues.apache.org/jira/browse/AXIS2-5427
> Project: Axis2
> Issue Type: Bug
> Affects Versions: 1.7.0
> Reporter: Prabhath Suminda
> Priority: Blocker
> Attachments: Test-1.aar
>
>
> I developed a simple service which has following service class,
> package Test;
> import java.util.*;
> public class SimpleService {
>
> public List<Integer> helloService(List<Integer> s){
> return s;
> }
> }
> When I deployed this as a AAR file and send following request
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:test="http://Test">
> <soapenv:Header/>
> <soapenv:Body>
> <test:helloService>
> <!--1 or more repetitions:-->
> <test:s>6</test:s>
> <test:s>6</test:s>
> <test:s>6</test:s>
> </test:helloService>
> </soapenv:Body>
> </soapenv:Envelope>
> It gives me following response which is wrong,
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Body>
> <ns:helloServiceResponse xmlns:ns="http://Test">
> <ns:return xsi:type="axis2ns1:int" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
> <ns:return xsi:type="axis2ns2:int" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
> <ns:return xsi:type="axis2ns3:int" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
> </ns:helloServiceResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> But this works when type is List<String>. I attached the aar file.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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
[jira] [Updated] (AXIS2-5427) POJO services with Parameters/return
types like List not working
Posted by "Shameera Rathnayaka (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shameera Rathnayaka updated AXIS2-5427:
---------------------------------------
Attachment: WrappedGenericList.patch
Not only the List<Integer>, all LIst<X> where X is Long, Double ,Short, Character or Float are not working with current trunk. I have attached a patch to fix all of this cases.
Thanks, Shameera.
> POJO services with Parameters/return types like List<Integer> not working
> -------------------------------------------------------------------------
>
> Key: AXIS2-5427
> URL: https://issues.apache.org/jira/browse/AXIS2-5427
> Project: Axis2
> Issue Type: Bug
> Affects Versions: 1.7.0
> Reporter: Prabhath Suminda
> Priority: Blocker
> Attachments: List_Integer.zip, Test-1.aar, WrappedGenericList.patch
>
>
> I developed a simple service which has following service class,
> package Test;
> import java.util.*;
> public class SimpleService {
>
> public List<Integer> helloService(List<Integer> s){
> return s;
> }
> }
> When I deployed this as a AAR file and send following request
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:test="http://Test">
> <soapenv:Header/>
> <soapenv:Body>
> <test:helloService>
> <!--1 or more repetitions:-->
> <test:s>6</test:s>
> <test:s>6</test:s>
> <test:s>6</test:s>
> </test:helloService>
> </soapenv:Body>
> </soapenv:Envelope>
> It gives me following response which is wrong,
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Body>
> <ns:helloServiceResponse xmlns:ns="http://Test">
> <ns:return xsi:type="axis2ns1:int" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
> <ns:return xsi:type="axis2ns2:int" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
> <ns:return xsi:type="axis2ns3:int" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
> </ns:helloServiceResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> But this works when type is List<String>. I attached the aar file.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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