• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Spring WS JAXB CDATA issue

 
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I'm trying to write some code that will handle CDATA issues wen Marshalling data (i.e. org.sport.vo.GetTennisDetailsResponse)
I currently have the following configuration:-


I have searched the internet and found the following example that uses class CdataJaxb2Marshaller that extends Jaxb2Marshaller
The example uses String[] cdataElements, that is spring injected in, but I need to use GetTennisDetailsResponse

Here is the example



Can anybody help.

Mat

 
Mat Anthony
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I think all I have to do to this is


I think that this then searches the the response object (i.e. GetTennisDetailsResponse) that has been converted into xml via jaxb for
a tag named specification. I think that this then uses the specification tag to be handled as CDATA.
Please can somebody confirm that if this is correct.

Mat
 
Mat Anthony
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I'm currently getting the following error:-
java.lang.ClassCastException: org.springframework.ws.soap.axiom.AxiomResult
on calling:-


It looks like you cannot cast the result (i.e. javax.xml.transform.Result) to OutputStream


Can anybody help?
Mat

 
Mat Anthony
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I have still got a problem with trying to marshall data using CDATA with spring ws and jaxb.
I have tried the above approach, but I cant get it to work?

Mat
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic