camel-users mailing list archives

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

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";
    start="<>"; start-info="text/xml"
    Content-Length: 1235
    Date: Mon, 21 Jun 2010 15:32:15 GMT

    Content-Type: application/xop+xml; charset=UTF-8; type="text/xml";
    Content-Transfer-Encoding: binary
    Content-ID: <>


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?



S. Ali Tokmen

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

Bull, Architect of an Open World TM

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