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 "Kris (JIRA)" <ji...@apache.org> on 2006/09/22 01:57:22 UTC
[jira] Created: (AXIS2-1215) REST request not getting parsed
correctly if parameter input type is an array
REST request not getting parsed correctly if parameter input type is an array
-----------------------------------------------------------------------------
Key: AXIS2-1215
URL: http://issues.apache.org/jira/browse/AXIS2-1215
Project: Apache Axis 2.0 (Axis2)
Issue Type: Bug
Components: core
Affects Versions: 1.0
Environment: windows xp pro, IE, Axis 2 version 1.0
Reporter: Kris
I have a method that takes in array for strings:
public String sayHello(String [ ] to) {...}
The SOAP request for this works fine. The REST request however gets translated into a fixed length array of only one string. For example, in the request http://localhost:8080/axis2/rest/helloservice/sayHello?to=Andy&to=Mark&to=Jen
Mark and Jen are thrown away and only Andy is passed on into the array.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-1215) REST request not getting parsed
correctly if parameter input type is an array
Posted by "Manoj Khangaonkar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470369 ]
Manoj Khangaonkar commented on AXIS2-1215:
------------------------------------------
Deepal,
The patch was provide by Manoj ( not Kris).
In any case , I will extract the latest code from SVN and provide and updated patch
Manoj
> REST request not getting parsed correctly if parameter input type is an array
> -----------------------------------------------------------------------------
>
> Key: AXIS2-1215
> URL: https://issues.apache.org/jira/browse/AXIS2-1215
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.0
> Environment: windows xp pro, IE, Axis 2 version 1.0
> Reporter: Kris
> Assigned To: Deepal Jayasinghe
> Priority: Critical
> Attachments: patch-1215.txt, patch-1215v2.txt
>
>
> I have a method that takes in array for strings:
> public String sayHello(String [ ] to) {...}
> The SOAP request for this works fine. The REST request however gets translated into a fixed length array of only one string. For example, in the request http://localhost:8080/axis2/rest/helloservice/sayHello?to=Andy&to=Mark&to=Jen
> Mark and Jen are thrown away and only Andy is passed on into the array.
--
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-1215) REST request not getting parsed
correctly if parameter input type is an array
Posted by "Manoj Khangaonkar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Manoj Khangaonkar updated AXIS2-1215:
-------------------------------------
Attachment: patch-1215v2.txt
> REST request not getting parsed correctly if parameter input type is an array
> -----------------------------------------------------------------------------
>
> Key: AXIS2-1215
> URL: https://issues.apache.org/jira/browse/AXIS2-1215
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.0
> Environment: windows xp pro, IE, Axis 2 version 1.0
> Reporter: Kris
> Attachments: patch-1215.txt, patch-1215v2.txt
>
>
> I have a method that takes in array for strings:
> public String sayHello(String [ ] to) {...}
> The SOAP request for this works fine. The REST request however gets translated into a fixed length array of only one string. For example, in the request http://localhost:8080/axis2/rest/helloservice/sayHello?to=Andy&to=Mark&to=Jen
> Mark and Jen are thrown away and only Andy is passed on into the array.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-1215) REST request not getting parsed
correctly if parameter input type is an array
Posted by "Manoj Khangaonkar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Manoj Khangaonkar updated AXIS2-1215:
-------------------------------------
Attachment: patch-1215.txt
> REST request not getting parsed correctly if parameter input type is an array
> -----------------------------------------------------------------------------
>
> Key: AXIS2-1215
> URL: https://issues.apache.org/jira/browse/AXIS2-1215
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.0
> Environment: windows xp pro, IE, Axis 2 version 1.0
> Reporter: Kris
> Attachments: patch-1215.txt
>
>
> I have a method that takes in array for strings:
> public String sayHello(String [ ] to) {...}
> The SOAP request for this works fine. The REST request however gets translated into a fixed length array of only one string. For example, in the request http://localhost:8080/axis2/rest/helloservice/sayHello?to=Andy&to=Mark&to=Jen
> Mark and Jen are thrown away and only Andy is passed on into the array.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-1215) REST request not getting parsed
correctly if parameter input type is an array
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470187 ]
Deepal Jayasinghe commented on AXIS2-1215:
------------------------------------------
Hi Kris ;
I went thu your patch as well as the current code base and found that ScheamUtill does not have the code that you are trying to change . As I can see Keith has changed that a lot , so can you please a new patch .
Thanks
Deepal
> REST request not getting parsed correctly if parameter input type is an array
> -----------------------------------------------------------------------------
>
> Key: AXIS2-1215
> URL: https://issues.apache.org/jira/browse/AXIS2-1215
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.0
> Environment: windows xp pro, IE, Axis 2 version 1.0
> Reporter: Kris
> Assigned To: Deepal Jayasinghe
> Priority: Critical
> Attachments: patch-1215.txt, patch-1215v2.txt
>
>
> I have a method that takes in array for strings:
> public String sayHello(String [ ] to) {...}
> The SOAP request for this works fine. The REST request however gets translated into a fixed length array of only one string. For example, in the request http://localhost:8080/axis2/rest/helloservice/sayHello?to=Andy&to=Mark&to=Jen
> Mark and Jen are thrown away and only Andy is passed on into the array.
--
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-1215) REST request not getting parsed
correctly if parameter input type is an array
Posted by "Manoj Khangaonkar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Manoj Khangaonkar updated AXIS2-1215:
-------------------------------------
Priority: Critical (was: Major)
Can one of the committers review & commit this patch so this issue may be closed.
> REST request not getting parsed correctly if parameter input type is an array
> -----------------------------------------------------------------------------
>
> Key: AXIS2-1215
> URL: https://issues.apache.org/jira/browse/AXIS2-1215
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.0
> Environment: windows xp pro, IE, Axis 2 version 1.0
> Reporter: Kris
> Priority: Critical
> Attachments: patch-1215.txt, patch-1215v2.txt
>
>
> I have a method that takes in array for strings:
> public String sayHello(String [ ] to) {...}
> The SOAP request for this works fine. The REST request however gets translated into a fixed length array of only one string. For example, in the request http://localhost:8080/axis2/rest/helloservice/sayHello?to=Andy&to=Mark&to=Jen
> Mark and Jen are thrown away and only Andy is passed on into the array.
--
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-1215) REST request not getting parsed
correctly if parameter input type is an array
Posted by "Manoj Khangaonkar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465676 ]
Manoj Khangaonkar commented on AXIS2-1215:
------------------------------------------
Attached an updated patch - patch1215v2 - that fixes a minor bug in the previous patch.
> REST request not getting parsed correctly if parameter input type is an array
> -----------------------------------------------------------------------------
>
> Key: AXIS2-1215
> URL: https://issues.apache.org/jira/browse/AXIS2-1215
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.0
> Environment: windows xp pro, IE, Axis 2 version 1.0
> Reporter: Kris
> Attachments: patch-1215.txt, patch-1215v2.txt
>
>
> I have a method that takes in array for strings:
> public String sayHello(String [ ] to) {...}
> The SOAP request for this works fine. The REST request however gets translated into a fixed length array of only one string. For example, in the request http://localhost:8080/axis2/rest/helloservice/sayHello?to=Andy&to=Mark&to=Jen
> Mark and Jen are thrown away and only Andy is passed on into the array.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-1215) REST request not getting parsed
correctly if parameter input type is an array
Posted by "Manoj Khangaonkar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462920 ]
Manoj Khangaonkar commented on AXIS2-1215:
------------------------------------------
I am able to reproduce this issue. This happens because SchemaUtil.java is not correctly processing the request parameters.
I will provide a patch.
Mj
> REST request not getting parsed correctly if parameter input type is an array
> -----------------------------------------------------------------------------
>
> Key: AXIS2-1215
> URL: https://issues.apache.org/jira/browse/AXIS2-1215
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.0
> Environment: windows xp pro, IE, Axis 2 version 1.0
> Reporter: Kris
>
> I have a method that takes in array for strings:
> public String sayHello(String [ ] to) {...}
> The SOAP request for this works fine. The REST request however gets translated into a fixed length array of only one string. For example, in the request http://localhost:8080/axis2/rest/helloservice/sayHello?to=Andy&to=Mark&to=Jen
> Mark and Jen are thrown away and only Andy is passed on into the array.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-1215) REST request not getting parsed
correctly if parameter input type is an array
Posted by "Manoj Khangaonkar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465337 ]
Manoj Khangaonkar commented on AXIS2-1215:
------------------------------------------
Attached a patch that fixes this issue. Please review and commit.
To test this patch
1. add the following method to the StockQuoteService in quickstartsample
public String[] listStocks(String[] stock) {
for (int i=0 ; i < stock.length ; i++) {
System.out.println("mj:::+ received stock " + stock[i]) ;
}
return stock ;
}
2. Build and deploy as usual
3. invoke the method by pointing your browser to
http://localhost:8080/axis2/rest/StockQuoteService/listStocks?stock=IBM&stock=SUN&stock=FICO&stock=XYZ
4. You will ses the following response in the browser
<ns:listStocksResponse xmlns:ns="http://quickstart.samples/xsd">
<ns:return>IBM</ns:return>
<ns:return>SUN</ns:return>
<ns:return>FICO</ns:return>
<ns:return>XYZ</ns:return>
</ns:listStocksResponse>
regards
Mj
> REST request not getting parsed correctly if parameter input type is an array
> -----------------------------------------------------------------------------
>
> Key: AXIS2-1215
> URL: https://issues.apache.org/jira/browse/AXIS2-1215
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.0
> Environment: windows xp pro, IE, Axis 2 version 1.0
> Reporter: Kris
> Attachments: patch-1215.txt
>
>
> I have a method that takes in array for strings:
> public String sayHello(String [ ] to) {...}
> The SOAP request for this works fine. The REST request however gets translated into a fixed length array of only one string. For example, in the request http://localhost:8080/axis2/rest/helloservice/sayHello?to=Andy&to=Mark&to=Jen
> Mark and Jen are thrown away and only Andy is passed on into the array.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-1215) REST request not getting parsed
correctly if parameter input type is an array
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas updated AXIS2-1215:
------------------------------------
Assignee: Deepal Jayasinghe
> REST request not getting parsed correctly if parameter input type is an array
> -----------------------------------------------------------------------------
>
> Key: AXIS2-1215
> URL: https://issues.apache.org/jira/browse/AXIS2-1215
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.0
> Environment: windows xp pro, IE, Axis 2 version 1.0
> Reporter: Kris
> Assigned To: Deepal Jayasinghe
> Priority: Critical
> Attachments: patch-1215.txt, patch-1215v2.txt
>
>
> I have a method that takes in array for strings:
> public String sayHello(String [ ] to) {...}
> The SOAP request for this works fine. The REST request however gets translated into a fixed length array of only one string. For example, in the request http://localhost:8080/axis2/rest/helloservice/sayHello?to=Andy&to=Mark&to=Jen
> Mark and Jen are thrown away and only Andy is passed on into the array.
--
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Resolved: (AXIS2-1215) REST request not getting parsed
correctly if parameter input type is an array
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-1215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deepal Jayasinghe resolved AXIS2-1215.
--------------------------------------
Resolution: Fixed
fixed the issue in the current code base ,
I made the changes by looking at the patch.
> REST request not getting parsed correctly if parameter input type is an array
> -----------------------------------------------------------------------------
>
> Key: AXIS2-1215
> URL: https://issues.apache.org/jira/browse/AXIS2-1215
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.0
> Environment: windows xp pro, IE, Axis 2 version 1.0
> Reporter: Kris
> Assigned To: Deepal Jayasinghe
> Priority: Critical
> Attachments: patch-1215.txt, patch-1215v2.txt
>
>
> I have a method that takes in array for strings:
> public String sayHello(String [ ] to) {...}
> The SOAP request for this works fine. The REST request however gets translated into a fixed length array of only one string. For example, in the request http://localhost:8080/axis2/rest/helloservice/sayHello?to=Andy&to=Mark&to=Jen
> Mark and Jen are thrown away and only Andy is passed on into the array.
--
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org