2. Difference between CXF proxy and CXF JaxWS
Based on the following configuration:
<flowname="Proxy">
<http:inbound-
endpointaddress="http://localhost:9000/proxy"exchange-
pattern="request-response"/>
<cxf:proxy-service/>
<processor-chain>
<cxf:proxy-client/>
<http:outbound-
endpointaddress="http://localhost:63081/hello"exchange-
pattern="request-response"/>
<object-to-string-transformer/>
<loggerlevel="WARN"message="After proxy: #[payload]"/>
</processor-chain>
</flow>
5. 1. Check the logs and you will see the below line. As you can see you have the whole
SOAP message after the CXF call:
11458[connector.http.mule.default.receiver.03]WARN (LoggerMessageProcessor.ja
va:98) -After proxy:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body><ns2:helloStringResponse xmlns:ns2="http://example.org/">
<return>the payload</return></ns2:helloStringResponse>
</soap:Body></soap:Envelope>
2. Now hit the endpoint http://localhost:9000/jaxws with the same SOAP message as in
step 2.
3. Check the logs and now you will see the payload of the response:
8803[connector.http.mule.default.receiver.03]WARN (LoggerMessageProcessor.jav
a:98) -After jaxws: the payload
As you can observe from the logs, when you are using Proxy you are getting the
full SOAP message while when using JaxWs you get the object part of response.