Hi,
Thanks for the feedback, I was wondering if you can help me out in these as
well:
1) Does this resource.accept(MediaType.APPLICATION_XML) automatically
convert/transform our request to XML?
2) Does builder.entity(myObject) send my already generated JAXB object to a
remote JERSEY request handler?
3)As my Jersey Request handler is going to do some post action, and send me
an acknowledgment response (e.g., 200), can I get that acknowledgment
response by using String acknowledgment = builder.post(String.class)
(assuming my jersey request handler is returning a response)
thanks,
Amir
Lars Tackmann wrote:
>
>
> JAXBObject myObject = ...; // create JAXB bean
> Client c = Client.create();
> final String url = "http://localhost:9999/xml;
> WebResource resource = c.resource(url);
> Builder builder = resource.accept(MediaType.APPLICATION_XML);
> builder.entity(myObject);
> String response = builder.get(String.class);
> --
>
>
>
>
--
View this message in context: http://n2.nabble.com/Sending-xml-to-Jersey-tp2286744p2312268.html
Sent from the Jersey mailing list archive at Nabble.com.