Hi, I'm talking about deserialising to an object - I've been looking at JAXBElementProvider which I assume is the default provider for:
public Response post(MyObject o); and I want to submit the XML with the parameter 'X' and deserialise to MyObject. John Baker -- Web SSO IT Infrastructure Deutsche Bank London URL: http://websso.cto.gt.intranet.db.com "Sergey Beryozkin" <[EMAIL PROTECTED]> 12/05/2008 11:34 Please respond to [email protected] To <[email protected]> cc <[email protected]> Subject Re: HTTP multipart/form-data and REST 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 --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures.
