Re: Please Help me in Understanding REST implementation in AXIS2/C

2008-05-28 Thread Samisa Abeysinghe

vamsi krishna wrote:


Hi All,
I read Axis2c handles the REST request aswell by just
chaning the config file axis.xml or through the function
axis2_options_set_enable_rest(...).
 
1. Does this tool handles the REST requests?



Yes.


2. How to test the REST handling?



Have a look at echo_rest


3. How to compare the SOAP code flow and REST code flow?



What do you mean by compare the flow?

Samisa...


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Please Help me in Understanding REST implementation in AXIS2/C

2008-05-28 Thread vamsi krishna
  Hi All,
  I read Axis2c handles the REST request aswell by just chaning the 
config file axis.xml or through the function 
axis2_options_set_enable_rest(...). 
   
  1. Does this tool handles the REST requests? 
  2. How to test the REST handling? 
  3. How to compare the SOAP code flow and REST code flow? 
   
  I tried to figure out the difference in following ways:
  A. When I tried to see the backtrace (on GDB) of a soap request 
sample [of Calculator sample] and the rest request sample [echo_rest sample], I 
got exactly same dump for both
the flows. 
  B. When i tried to print out the request message constructed in 
echo_rest.c it printed me: 
  http://ws.apache.org/axis2/services/echo";>Hello 
World!
   
  Now I commented the axis2_options_set_enable_rest(...) statement 
and tried to print the same request message constructed and got the following 
message printed:
  http://www.w3.org/2003/05/soap-envelope";>http://ws.apache.org/axis2/services/echo";>Hello 
World!
  Is this what the difference is? Is this the REST request which 
got printed?
   
  FYI: I am using the Axis2/C 1.3.0 version.
   
  Eagerly waiting for your response.
   
  Thanks & Regards,
  Vamsi Krishna M


Vamsi, IIIT-Hyd.