Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring WS JAXB CDATA issue

 
Mat Anthony
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • 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: 261
  • Mark post as helpful
  • send pies
  • 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: 261
  • Mark post as helpful
  • send pies
  • 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: 261
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic