• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Sujeeth Pakala
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.
 
g tsuji
Ranch Hand
Posts: 689
3
  • 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.

 
Abhay Agarwal
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