Win a copy of React Cookbook: Recipes for Mastering the React Framework this week in the HTML Pages with CSS and JavaScript 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

JAX-WS - avoid type mapping

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic