If you use the PAYLOAD data format, you have to return a java / jaxb object instead of an XML/string.
Sent from a mobile device Am 24.04.2013 15:25 schrieb "pradeepbill" <pradeep.b...@gmail.com>: > Hello Camel Riders, I have soap ui sending soap requests to my cxf endpoint > and from there to an other endpoint via Routes, the request response works > fine if I use MESSAGE format, but fails with the below error message when I > use PAYLOAD format.I have checked the soap response and its a valid one, I > am posting that as well. > > I need to use PAYLOAD format to mess with the headers, I can not use > MESSAGE because MESSAGE format do not support headers. > > The response is coming from SOAPUI as well, through a mock server.Please > advice.Thanks, Pradeep > > *error message* > > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> > <soap:Body> > <soapenv:Envelope > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> > <soapenv:Body> > <soapenv:Fault> > <faultcode>Server</faultcode> > <faultstring>org.apache.xmlbeans.XmlException: > Missing/Invalid SOAP Envelope, expecting > [{http://schemas.xmlsoap.org/soap/envelope/}Envelope]</faultstring> > </soapenv:Fault> > </soapenv:Body> > </soapenv:Envelope> > </soap:Body> > </soap:Envelope> > > > *soap response* > > > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/ > " > xmlns:aca="http://xyz.com/viers/schemas/vrm/0.1/vrm/aca" > xmlns:ns="http://123.com/structures/2.0" xmlns:ns1="http://123.com/2.0"> > <soapenv:Header/> > <soapenv:Body> > <aca:acaVerificationResponse> > <aca:TransactionId> > > <ns1:IdentificationID></ns1:IdentificationID> > </aca:TransactionId> > <aca:PersonSSNIdentification> > > <ns1:IdentificationID></ns1:IdentificationID> > </aca:PersonSSNIdentification> > <aca:ResponseCode>APPLICANT NOT FOUND</aca:ResponseCode> > </aca:acaVerificationResponse> > </soapenv:Body> > </soapenv:Envelope> > > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/MESSAGE-vs-PAYLOAD-data-format-tp5731439.html > Sent from the Camel - Users mailing list archive at Nabble.com. >