axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian McQueen" <mcqueenor...@gmail.com>
Subject Re: Strange REST Parsing
Date Wed, 16 Jan 2008 17:19:56 GMT
Great - this will be a perfect example  I do this one:

 curl http://localhost:9090/axis2/services/echo/echoString?qid=qid1\&hostname=hostname1\&repl_id=d6ge5gyrgj4

I get:

<ns1:echoString
xmlns:ns1="http://ws.apache.org/axis2/c/samples"><text>qid1</text></ns1:echoString>

It echoed the first parameter.

When I change the last parameter to be alphabetically first:

curl http://localhost:9090/axis2/services/echo/echoString?qid=qid1\&hostname=hostname1\&bbbbbbbbb=d6ge5gyrgj4

Now the last parameter is echoed:

<ns1:echoString
xmlns:ns1="http://ws.apache.org/axis2/c/samples"><text>d6ge5gyrgj4</text></ns1:echoString>

Its apparently not a simple an alphabetical sort, but its something
odd.  Why would the name of the parameter effect the ordering of the
nodes as constructed within the server?  I think the server is
converting the REST input into a sequence of nodes somehow, and it is
imposing and order of its own on the nodes.

Brian

On Jan 16, 2008 12:56 AM, Dinesh Premalal <xydinesh@gmail.com> wrote:
> Hi Brain,
>
> "Brian McQueen" <mcqueenorama@gmail.com> writes:
> > <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> >   <soapenv:Header/>
> >   <soapenv:Body>
> >     <ns1:replicate xmlns:ns1="http://ws.apache.org/axis2/services/replicate">
> >       <qid>qid1</qid>
> >       <hostname>hostname1</hostname>
> >       <repl_id>d6ge5gyrgj4</repl_id>
> >     </ns1:replicate>
> >   </soapenv:Body>
> > </soapenv:Envelope>
>
> I modified echo sample to echo back the node it receives. I used
> following commands
>
> curl
> http://localhost:9090/axis2/services/echo/echoString?qid=qid1\&hostname=hostname1\&repl_id=d6ge5gyrgj4
>
> I got this as the response
>
> <echoString><qid>qid1</qid><hostname>hostname1</hostname><repl_id>d6ge5gyrgj4</repl_id></echoString>
>
>
> then I used following command
>
>  curl http://localhost:9090/axis2/services/echo/echoString?qid=qid1\&repl_id=d6ge5gyrgj4\&hostname=hostname1
>
> and response is
>
> <echoString><qid>qid1</qid><repl_id>d6ge5gyrgj4</repl_id><hostname>hostname1</hostname></echoString>
>
> as far as I can see , there is a no such an alphabetical ordering in
> REST parsing or did I miss something here?
>
> thanks,
> Dinesh
>
> --
> http://nethu.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Mime
View raw message