• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!