camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "S. Ali Tokmen" <savas-ali.tok...@bull.net>
Subject CAMEL-CXF, PHP and the <?xml ...?> header
Date Mon, 21 Jun 2010 15:50:48 GMT
Hello

I have routes that use CAMEL-CXF. When I call these routes via SoapUI, 
JAX-WS, JAX-RPC or even Microsoft C# these work perfectly.

BUT, when I try with PHP (whether NuSOAP or the new SoapClient), I have 
a PHP error like:

    Error:sendSms: SoapFault exception: [Client] looks like we got no
    XML document in [...]

If I look at the HTTP response generated by CAMEL-CXF, its response 
looks like:

    HTTP/1.1 200 OK
    Server: Apache-Coyote/1.1
    Content-Type: multipart/related; type="application/xop+xml";
    boundary="uuid:7de96b4c-37f3-4835-9519-7adad8ce8114";
    start="<root.message@cxf.apache.org>"; start-info="text/xml"
    Content-Length: 1235
    Date: Mon, 21 Jun 2010 15:32:15 GMT


    --uuid:7de96b4c-37f3-4835-9519-7adad8ce8114
    Content-Type: application/xop+xml; charset=UTF-8; type="text/xml";
    Content-Transfer-Encoding: binary
    Content-ID: <root.message@cxf.apache.org>

    <soap:Envelope
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body>[...]</soap:Body></soap:Envelope>
    --uuid:7de96b4c-37f3-4835-9519-7adad8ce8114--

As a result, the SOAP content doesn't start with:

    <?xml version="1.0" encoding="utf-8"?>

... and I think that's what making PHP fail.

Any ideas on putting the XML header in front of the SOAP response?

Cheers

-- 

S. Ali Tokmen
savas-ali.tokmen@bull.net

Office: +33 4 76 29 76 19
GSM:    +33 66 43 00 555

Bull, Architect of an Open World TM
http://www.bull.com


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message