I have actually followed Keith Chapman's article on webmonkey, which is
here:

http://www.webmonkey.com/tutorial/RESTful_Web_Services_with_Apache_Axis2

If I go with instrumenting REST using WSDL 2.0 , then my basic question
referring to the above article is how can we actually make a POST (add new
student) on /services/studentService/students or rather POST any basic or
Complex Type. From the wsdl, addStudent(Student student) is the service
method that will get called and it needs an argument which should be an
object of class Student.

In truly RESTful way, this should be a form POST and the data is url encoded
or rather sent in application/x-www-form-urlencoded content type. If I have
to say use this service with REST client in Python, I will have to know
about the Student object ,is it? I am missing something here, can you
explain?
On the other hand I could do POST, may not be ComplexType but of simple type
if  I have my service class returning an AXIOM OMElement object as well as
taking OMElement object as an argument to the action methods but WSDL 2.0
way seems cleaner to me.

Appreciate your feedback

Thanks
Manish

Reply via email to