Hi,
Sergey,
Thanks for updating the docs and there's no need to apologise for a delay
in responding (in reference to another mail you sent) - your rapid
feedback on responses is most welcome to those of us in a corporate world
trying to demonstrate that open source is often better than close (BEA
have a lot to learn!).
thanks :-)
So consider my example - I'd like to deserialise the value of parameter X,
instead of deserialising the body of the POST. How do I go about this? I
appreciate I need to write a message body reader bu what does the
deserializing?
Lets assume a request looks like this :
POST /service?param1=1¶m2=2
<someXML/>
When you say 'deserialise the value of parameter X', do you refer to query
parameters like 'param1' above ?
If yes then yiu just need to use @QueryParam :
Response post(@QueryParam("param1") String p1)
The query parameter param1 will be converted into a String or it can be converted into other type like Long or Integer which have a
constructor accepting a string and/or valueOf(String) method...
Or are you referring to deserializing some pieces from the <someXML/> body ? You were talking about dealing with multipart/form-data
earlier, is it still the problem we're discussing here ?
Cheers, Sergey
John Baker
--
Web SSO
IT Infrastructure
Deutsche Bank London
URL: http://websso.cto.gt.intranet.db.com
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland