Hi
I am trying to hit a service using SoapOverJMS using CXF via Camel, though
my service is defined using 1.2 Soapversion, when sending the message via
Camel Route it is using Soap1.1 version and getting the below error
"org.apache.cxf.binding.soap.SoapFault: A SOAP 1.2 message is not valid when
sent to a SOAP 1.1 only endpoint."
Any help here please?
Code:
public void configure() throws Exception {
String SERVICE_ADDRESS = "jms:queue:xyz.dummy.soap";
CxfComponent cxfComponent = new CxfComponent(getContext());
CxfEndpoint serviceEndpoint = new CxfEndpoint(SERVICE_ADDRESS,
cxfComponent);
serviceEndpoint.setServiceClass(Transformation.class);
serviceEndpoint.setDataFormat(DataFormat.POJO);
JmsComponent jmsComponent = (JmsComponent)
getContext().getComponent("jms");
ConnectionFactory connectionFactory =
jmsComponent.getConfiguration().getConnectionFactory();
JMSConfiguration jmsConfiguration = new JMSConfiguration();
jmsConfiguration.setConnectionFactory(connectionFactory);
jmsConfiguration.setTargetDestination("tpm.tpml20totpml21.soap");
jmsConfiguration.setMessageType("text");
JMSConfigFeature feature = new JMSConfigFeature();
feature.setJmsConfig(jmsConfiguration);
serviceEndpoint.getFeatures().add(feature);
TibcoSoapActionInterceptor tibcoSoapActionInterceptor = new
TibcoSoapActionInterceptor();
serviceEndpoint.getOutInterceptors().add(tibcoSoapActionInterceptor);
serviceEndpoint.setTransportId("http://cxf.apache.org/transports/jms");
from("direct:invokeOperation")
.setHeader(CxfConstants.OPERATION_NAME,
constant("convertOperation"))
.to(serviceEndpoint);
}
Cheers
Sunesh
--
View this message in context:
http://cxf.547215.n5.nabble.com/using-CXF-via-Camel-couldnt-able-to-SOAP-Request-with-1-2-version-tp5770074.html
Sent from the cxf-user mailing list archive at Nabble.com.