Handling POST and PUT methods with Lullaby
Posted by: <Rolog>,
on 22 Sep 2008 |
View original | Bookmarked: 0 time(s)
When a POST or PUT method is sent to Lullaby, the request stream is deserialized to the type of the REST class that is currently being invoked and the REST method is invoked with the deserialized object. The REST method for a POST or PUT method needs to have one argument that is of the type of the enclosing REST class. Below is an example of a XML request stream and a simple Lullaby REST class and REST POST method.
<Address>
<AddressLine1>123 My Street</AddressLine1>
...