http://www.innoq.com/blog/st/2006/06/30/rest_vs_soap_oh_no_not_again.html
Anne
On 6/29/06, Anne Thomas Manes <
[EMAIL PROTECTED]> wrote:
AnneOn 6/27/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:If you have two methods, then you must have two endpoints. Otherwise, it isn't RESTful.
AnneOn 6/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:Hi Anne
I am sorry - I probably didnt get the answer.
I have a service class that has 2 methods -
public OMElement dothis(OMElement om1)
public OMElement dothat(OMElement om2)
Now for this service there will be one REST endpoint address - right?
then my question is given my payload xml - how does axis decide which
method to invoke in my service?
I didnt quite get what u meant by
"You have only one function associated with POST to a specific URL"
Are u saying that my service can have only one method for it to be rest
enabled?
thanks
Anamitra
"Anne Thomas
Manes"
< [EMAIL PROTECTED] To
m> axis-user@ws.apache.org
cc
06/27/2006 01:17
PM Subject
Re: [Axis2] rest question
Please respond to
[EMAIL PROTECTED]
he.org
When using a RESTful service, *POST* is your method. You have only one
function associated with POST to a specific URL. If you have a service that
exposes methods other than GET, POST, PUT, or DELETE, then it isn't
RESTful.
Anne
On 6/27/06, [EMAIL PROTECTED] < [EMAIL PROTECTED]
> wrote:
Hi
As per the axis2 doc it seems that if I want to do a POST rest service -
the only way axis runtime would detect which method to delegate the call
to
is from the name of the top level element in the http message body XML -
right?
I have a service whose method definition is like
public OMElement dothis(OMElelemt payload)
When I do the SOAP client invoke I send the soap action as urn:dothis
and
my payload top element does not match the method name - This works fine
with axis2.
But now if I have to do REST call and not have the root element as method
name - how can I acheive that using rest? [I presume soap action is not
going to work here or is it?]
thanks
Anamitra
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]