- Consuming XML in restful post
- @POST
- @Consumes(MediaType.APPLICATION_XML)
- public void consumeXML (/*something here- duno what*/){
- //something here as well
- }
- @POST
- @Consumes(MediaType.APPLICATION_XML)
- public void consumeXML ( InputStream xml ){
- //do something with the XML string
- }
- public void consumeXML ( String xml ){
- //do something with the XML string
- }