I have a rest resource with a post method and need to both support json and xml. Everything works fine when the ‘Content-Type’-header is ‘application/json’ or ‘text/xml’ but I need to support ‘application/xml’ too. When the header is set to ‘application/xml’ I can’t access the content(body) of the request.
To get the content when the Content-Type header is set to ‘text/xml’ I need to add a object called ‘node’ and convert that to a document. I think I need to a similar trick to get ‘application/xml’ working, I just don’t know what.
This doesn’t seem to work, when I restorePipeline after saving it there is only one variable named “contentStream” and it’s content is: “com.wm.net.HttpInputStream”.
Do you know what I can do to get this working?