SOAPPage edited by Christian SchneiderSOAP (Available in Camel >= 2.3.0)SOAP is a Data Format which uses JAXB2 and JAX-WS to marshal and unmarshal SOAP payloads. It provides the basic features of Apache CXF without need for the CXF Stack. ElementNameStrategyAn element name strategy is used for two purposes. The first is to find a xml element name for a given object and soap action when marshalling the object into a SOAP message. The second is to find an Exception class for a given soap fault name.
If you have generated the web service stub code with cxf-codegen or a similar tool then you probably will want to use the ServiceInterfaceStrategy. In the case you have no annotated service interface you should use QNameStrategy or TypeNameStrategy. Using the Java DSLFor example the following uses a named DataFormat of soap which is configured with the package com.example.customerservice to initialize the JAXBContext. The second parameter is the ElementNameStrategy. The route is able to marshal normal objects as well as exceptions. SoapJaxbDataFormat soap = new SoapJaxbDataFormat("com.example.customerservice", new ServiceNameStrategy(CustomerService.class)); from("direct:start") .marshal(soap) .to("jms:myQueue");
Change Notification Preferences
View Online
|
View Change
|
Add Comment
|
- [CONF] Apache Camel > SOAP confluence
- [CONF] Apache Camel > SOAP confluence
- [CONF] Apache Camel > SOAP confluence
- [CONF] Apache Camel > SOAP confluence
- [CONF] Apache Camel > SOAP confluence
- [CONF] Apache Camel > SOAP confluence
- [CONF] Apache Camel > SOAP confluence
- [CONF] Apache Camel > SOAP confluence
- [CONF] Apache Camel > SOAP confluence
- [CONF] Apache Camel > SOAP confluence
- [CONF] Apache Camel > SOAP confluence
- [CONF] Apache Camel > SOAP confluence
- [CONF] Apache Camel > SOAP confluence