Capture the result in CDATA format in OSB

My requirement is to capture the error data in CDATA format.

In my case when ever there is some error occurs i have to send the complete details of  that error in Description field.


In general we will send the $fault as the error to consumer, To do this we need to use serialize function , this function will convert the xml data in to string format.

EX:-  <ns9:Description>{fn-bea:serialize($fault/ctx:details)}</ns9:Description>
Result :- 
<ns9:Description><![CDATA[<ctx:details xmlns:ctx=””><ns0:ValidationFailureDetail xmlns:ns0=””><ns0:message>Expected element ‘EmpNumber@’ </ns0:ValidationFailureDetail></ctx:details>]]></ns9:Description>

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s