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 "Colin Ruthven (JIRA)" <ax...@ws.apache.org> on 2005/09/27 21:28:48 UTC

[jira] Commented: (AXIS-1069) Parameter ordering problem & param names being ignored problem

    [ http://issues.apache.org/jira/browse/AXIS-1069?page=comments#action_12330624 ] 

Colin Ruthven commented on AXIS-1069:
-------------------------------------

I'm using Tomcat 5.0.28 on Fedora Core 4 JDK5 and Axis 1.2.1 Final

I get the same error. It appears as though the names of the parameters is ignored and some randomisation is occurring. Depending on the parameter names used (which don't have to match the WSDL it appears) the Impl method gets the parameters in differing orders.

> Parameter ordering problem & param names being ignored problem
> --------------------------------------------------------------
>
>          Key: AXIS-1069
>          URL: http://issues.apache.org/jira/browse/AXIS-1069
>      Project: Apache Axis
>         Type: Bug
>   Components: Basic Architecture
>     Versions: 1.1
>  Environment: Operating System: Windows NT/2K
> Platform: PC
>     Reporter: Ken Kress
>     Assignee: Axis Developers Mailing List

>
> 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>

-- 
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