Hi everybody, 

I need to use camel as routing engine to something bigger, but now I wrote a
small example which
looks like:

Http concumer <--> Camel <--> Http provider

Route in camel:

from("jbi:service:http://pzu.pl/bsb/camelRoute";)
        .to("jbi:service:http://cbs.pzu.com/AdresyServiceImpl?mep=in-out";);
        
Everything seems to looks fine, but camel don't handle Fault messages!

Return from Http provider is ok and looks like this:

STATUS: 500
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
        <soap:Body>
                <soap:Fault>
                        <faultcode>soap:Client</faultcode>
                        <faultstring>Parameter {http://cbs.pzu.com}getKrajeWe 
does not
exist!</faultstring>
                </soap:Fault>
        </soap:Body>
</soap:Envelope>

But, Http consumer get message like this:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
   <soapenv:Body/>
</soapenv:Envelope>

In camel exchange fault body and out body is null, so I think that soap
envelope is
added by Http consumer by param soap="true". So, what's wrong with fault's
on camel ? 
where thay go ? anyone knows ? 

I would be very appreciate of any advice.
Thanks. 
-- 
View this message in context: 
http://www.nabble.com/Camel-Fault%27s-tf4961059s12049.html#a14209242
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to