<div dir="ltr"><div><div><div><div>Hello,<br><br></div>I was testing SOAP requests with the drools-camel-server-example and I have trouble with it.<br></div>Everything is fine when I run org.drools.server.CxfSoapClientServerTest but I noted that the SOAP request is sent to a spring reference of the cxf endpoint and when I want to change it to cxfrs://<a href="http://localhost:9002/soap">http://localhost:9002/soap</a> to be more realistic, it raises this exception :<br>
<br>Caused by: org.apache.cxf.interceptor.Fault: .No message body writer has been found for class : class com.sun.xml.internal.messaging.saaj.soap.ver1_1.Message1_1Impl, ContentType : text/plain.<br> at org.apache.cxf.jaxrs.client.WebClient$BodyWriter.handleMessage(WebClient.java:938) ~[cxf-rt-frontend-jaxrs-2.6.8.jar:2.6.8]<br>
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262) ~[cxf-api-2.6.8.jar:2.6.8]<br> at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:839) ~[cxf-rt-frontend-jaxrs-2.6.8.jar:2.6.8]<br>
... 90 common frames omitted<br>Caused by: org.apache.cxf.jaxrs.client.ClientWebApplicationException: .No message body writer has been found for class : class com.sun.xml.internal.messaging.saaj.soap.ver1_1.Message1_1Impl, ContentType : text/plain.<br>
at org.apache.cxf.jaxrs.client.AbstractClient.reportMessageHandlerProblem(AbstractClient.java:635) ~[cxf-rt-frontend-jaxrs-2.6.8.jar:2.6.8]<br> at org.apache.cxf.jaxrs.client.AbstractClient.writeBody(AbstractClient.java:401) ~[cxf-rt-frontend-jaxrs-2.6.8.jar:2.6.8]<br>
at org.apache.cxf.jaxrs.client.WebClient$BodyWriter.handleMessage(WebClient.java:930) ~[cxf-rt-frontend-jaxrs-2.6.8.jar:2.6.8]<br> ... 92 common frames omitted<br><br></div>I don't know how to correct this issue.<br>
<br></div>To be more precise, I edited the camel-client-test.xml and changed in the soap route <to uri="cxf://bean://soapServer"/> to <to uri="cxfrs://<a href="http://localhost:9002/soap">http://localhost:9002/soap</a>"/>.<br>
<div><br>Thanks for your help.<br clear="all"><div><div><div><div><div><div><br>-- <br>Maxime FALAIZE
</div></div></div></div></div></div></div></div>