Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JAX-WS - avoid type mapping  RSS feed

 
Simon Jensen
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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,
Simon
 
Simon Jensen
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I came across the javax.xml.ws.Provider interface, which seems to be what I'm looking for. Any thoughts on this?

Kind regards,
Simon
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
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!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!