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 bu...@apache.org on 2003/09/21 19:51:56 UTC
DO NOT REPLY [Bug 23306] New: -
Parameter ordering problem & param names being ignored problem
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23306>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23306
Parameter ordering problem & param names being ignored problem
Summary: Parameter ordering problem & param names being ignored
problem
Product: Axis
Version: 1.1
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: Basic Architecture
AssignedTo: axis-dev@ws.apache.org
ReportedBy: kkress@bankofny.com
I created a simple web service that concatenates Strings together:
public String concatenateString
(
String first, String second, String third, String fourth
)
{
return first + "." + second + "." + third + "." + fourth;
}
when I call this using:
http://localhost:7001/axis/services/OrderTest?
method=concatenateString&first=one&second=two&third=three&fourth=four
I get:
<concatenateStringReturn
xsi:type="xsd:string">four.three.two.one</concatenateStringReturn>
This reveals a problem:
1) ordering is being reversed
Originally, I thought there was an additional problem that the param names
were being ignored totally. But the following (using ints instead of strings)
illustrates the reversal is consistent regardless of the order of incoming
parameters.
http://localhost:7001/axis/services/OrderTest?
method=concatenateInt&second=2&first=1&fourth=4&third=3
produces:
<concatenateIntReturn xsi:type="xsd:string">4.3.2.1</concatenateIntReturn>