Hello all, I have a jsr181 service that currently returns an Ack object that consists of two properties, a timestamp and a string value.
I would like to extend this object to return an additional property that is an xml fragment. This fragment is going to vary across subsequent calls to the jsr181 component. How should I do this? I've tried to put the fragment inside a property of type string, but, as I expected, that returned the fragment inside a CDATA section, which is not what I really wanted. example of what I got... <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <methodResponse xmlns="urn:ic:km"> <acknowledge> <ackDate xmlns="http://domain.ic.s.com">2007-04-26T07:39:56.007-04:00</ackDate> <msgId xmlns="http://domain.ic.s.com">1</msgId> <response xmlns="http://domain.ic.s.com"><![CDATA[<com.s.ic.km.sm.service.Result> <statusCode>0</statusCode> <msg>updated: yada</msg> <payload class="com.s.ic.km.sm.domain.BC"> <bc>BOARD001</bc> </payload> </com.s.ic.km.sm.service.Result>]]></response> </acknowledge> </methodResponse> </soapenv:Body> </soapenv:Envelope> what I was looking to get... <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <methodResponse xmlns="urn:ic:km"> <acknowledge> <ackDate xmlns="http://domain.ic.s.com">2007-04-26T07:39:56.007-04:00</ackDate> <msgId xmlns="http://domain.ic.s.com">1</msgId> <response xmlns="http://domain.ic.s.com"> <com.s.ic.km.sm.service.Result> <statusCode>0</statusCode> <msg>updated: yada</msg> <payload class="com.s.ic.km.sm.domain.BC"> <bc>001</bc> </payload> </com.s.ic.km.sm.service.Result> </response> </acknowledge> </methodResponse> </soapenv:Body> </soapenv:Envelope> Thanks, James -- View this message in context: http://www.nabble.com/using-an-xml-fragement-with-JSR181--tf3651225s12049.html#a10199139 Sent from the ServiceMix - User mailing list archive at Nabble.com.
