Yes .. I think there is a problem in CXF.
I added an issue for it:
https://issues.apache.org/jira/browse/CXF-3920
Christian
Am 17.11.2011 10:41, schrieb XiLai Dai:
Hello,
When I added a interceptor try to get something from Message based on the
samples/jms_spring_config, I got wrong transport type from SoapBindingInfo.
The implementation of the interceptor like this:
public void handleMessage(Message message) throws Fault {
if (message.getExchange().getBinding() instanceof SoapBinding) {
SoapBinding soapBinding =
(SoapBinding)message.getExchange().getBinding();
if (soapBinding.getBindingInfo() instanceof SoapBindingInfo) {
SoapBindingInfo soapBindingInfo =
(SoapBindingInfo)soapBinding.getBindingInfo();
System.out.println("Transport Type is: " +
soapBindingInfo.getTransportURI());
}
}
}
The expected string should be: http://schemas.xmlsoap.org/soap/jms
But the output is : http://schemas.xmlsoap.org/soap/http
Is there a problem or I missed something? Thanks! (CXF version used is
2.5.0)
Regards
Xilai
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
Talend Application Integration Division http://www.talend.com