Forums Register Login
JAX-WS - avoid type mapping

I was wondering whether it's possible to create a JAX-WS web service which doesn't do type mapping? That is, I would like to do the type mapping myself using XPath for instance.
The question is, if the JAX-WS web service can be created in such a way, that it simply provides either a SOAPMessage object, or for instance a bytestream representation of the message, which can then be parsed manually.
I know it's possible to get the SOAPMessage from the MessageContext, but I would still like to avoid the web service to spend any time on doing automatic type mapping.

Kind regards,
I came across the javax.xml.ws.Provider interface, which seems to be what I'm looking for. Any thoughts on this?

Kind regards,
Yes, the Provider interface is what you want to use to implement a web service that can process the raw XML request data.
For an example, see for instance page 316 in this document: http://faq.javaranch.com/content/Exam-Objectives-5.pdf
Best wishes!
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards

This thread has been viewed 836 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jun 23, 2018 15:17:50.