When serialising XML you generally have to provide the CDATA elements as an array of element names. Without looking at the code I would assume that the serialiser on the servicemix-http component would not do this since there would be no deterministic way of knowing which elements should be CDATA (unless you wished a JBI property set indicating this). But as Guillaume says they are equivalent - the only issue is human readability.
-----Original Message----- From: Guillaume Nodet [mailto:[EMAIL PROTECTED] Sent: Friday, 8 December 2006 10:23 AM To: [email protected] Subject: Re: ServiceMix and cdata in SOAP message Nothing afaik. But the xml are equivalent. Is that a real problem ? On 12/5/06, bradtwurst <[EMAIL PROTECTED]> wrote: > > Hello all again, > > I am encountering an issue that I am not sure how to solve. > > I am creating the following SOAP XML as a string and I am setting to the > context of a message via the command "message.setContent(new > StringSource(xmlString));". > > -------------------------------------------------------- > <?xml version="1.0" encoding="UTF-8"?><Envelope > xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><msgResults><Msg Result> > <msgId>000041</msgId> > > <operatingData><![CDATA[BOARDCODE=8324816CGN&THRESHOLD.VALUE=10]]></oper atingData> > <success>true</success> > <errors/> > </MsgResult></msgResults></Body></Envelope> > -------------------------------------------------------- > > If I deliver the message to a fileWriter endpoint, the output is correct > with the CDATA intact. > > If I deliver the message to a external http endpoint (using the http > component) with the following endpoint > > -------------------------------------------------------- > <http:endpoint service="test:status-httpProvider-service" > endpoint="status-httpProvider-endpoint" role="provider" > locationURI="http://sw:8081/" /> > -------------------------------------------------------- > > The CDATA section is changed to: > > -------------------------------------------------------- > <?xml version="1.0" encoding="UTF-8"?><Envelope > xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><msgResults><Msg Result> > <msgId>000041</msgId> > <operatingData>BOARDCODE=8324816CGN&THRESHOLD.VALUE=10</operatingDat a> > <success>true</success> > <errors/> > </MsgResult></msgResults></Body></Envelope> > -------------------------------------------------------- > > > Any suggestions as to what I might be doing incorrectly. > > Thanks, > James > -- > View this message in context: http://www.nabble.com/ServiceMix-and-cdata-in-SOAP-message-tf2763414s120 49.html#a7705113 > Sent from the ServiceMix - User mailing list archive at Nabble.com. > > -- Cheers, Guillaume Nodet
