Win a copy of AWS Security this week in the Cloud/Virtualization 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:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

How to set properties in JAXB Marshaller in JAX-WS Web service client

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers,

I have to set property "com.sun.xml.bind.characterEscapeHandler" in marshller object of JAXB runtime in my JAX-WS web service cleint.

I am using IBM Websphere 8.5.5 provided JAX-WS runtime.

I know it can be done for a simple JAXB client like :



Quick answer will help.

Thanks.
 
Ranch Hand
Posts: 729
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is a vendor property. It is meant to work with jaxb RI for sure and incorporated into the release. Other than RI, no guarantee is made for its support. It has to be looked into on a case-by-case basis.

To study how it works, you can check out the sample bundled with jaxb RI under the directory of "samples". In particular, the sample application is under the sub-directory "character-escape".
 
Sujeeth Pakala
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I managed to use character escaped handler using JAXB. But, I am trying to find out how to hook this to JAXB in JAX-WS runtime..
 
Sujeeth Pakala
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have confirmation from IBM that it is not possible to set properties on JAXB marshaller of JAX-WS/RS runtimes of IBM.

 
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even I tried to find the solution.
Thanks for posting your finding here.
 
My pie came with a little toothpic holding up this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic