This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

JAX-WS - avoid type mapping  RSS feed

 
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
 
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!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!