Forgot to mention that yourXML should be enclosed in the SOAP envelope:

String envOpen = "<env:Envelope
xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\"\n " +
                                                                 
"xmlns:xs=\"http://www.w3.org/2001/XMLSchema\"\n"; +
                                                                 
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"; +
                                                                  "xmlns=\"your 
service
URL\">\n" +
                                                  "<env:Body>\n";
String envClose = "</env:Body>\n</env:Envelope>";

so, you'd have: 

String xmlPayload = envOpen + <yourXML>...</yourXML> + envClose;
-- 
View this message in context: 
http://www.nabble.com/Sending-XML-payload-without-encoding-it-tp21925398p22438596.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to