Try it with a Post instead of a Put. Put isn't supposed to return anything but the request status.
- Brill Pappin On Dec 2, 5:08 pm, biokys <[email protected]> wrote: > So I make another step, > I can succesfully call this method from client: > > User user = resource.getUser("Test"); > > On the server side it looks like: > > @Put > public User getUser(String msg) { > return new User("John" + msg, "Locke" + msg); > > } > > So I can pass String param to method getUser and receive object User. > BUT I need to pass to method object User as well. So it should look > like this: > @Put > public User getUser(User oldUser) > { > ... > > } > > BUT this is not working :-( > > Anyone can help me? I spent 2 evenings when i was trying to solve this > issue. > > PS: Is possible in one method to pass nonprimitive object and receive > another nonprimitive object? > Thx Honza > On 2 pro, 05:24, creativepragmatic <[email protected]> > wrote: > > > > > I have been working with Restlet for a couple of months. To me, while > > it is a REST web service, it seems to work more like a remote > > procedure call in code. If I am not mistaken, custom data types > > should be serialized before being sent. I hope that helps. I will > > watch this thread for any further questions. > > > On Dec 1, 4:53 pm, biokys <[email protected]> wrote: > > > > Hi, I am little bit confused about using of restlet framework. Can > > > someone explain me, if restlet api works similarly as a classic web > > > services (JAX-WS)? I cant figure out, how to transfer to server my > > > custom data type and in the same call to return any value or another > > > custom data type like > > > > long id = resource.createUser(User); > > > > Maybe i m doing anything wrong, but what is working until now for me > > > is just simple call > > > > String s = getString(); > > > > where method getString() is implemented on server side like this: > > > @Get > > > public String getString() { return "Hello world";} -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

