I have a very basic question about rest.
we are designing a rest web service which is supposed to output two values in a single call.How can we do that?I was under impression that by using rest we can only send java.lang.String objects to the client(entity that consumes web service) and get only java.lang.String from clients.I know that all objects will have to be serializable to be transferred over the wire and that is how
SOAP works.
Can we do something like this in rest ,wherein we construct a
java custom object ,specify a serializer and deserializer and send the java custom object across to the client (and reverse)?
If yes,can I get a sample code?