Package org.apache.camel.dataformat.soap
Class Soap12DataFormatAdapter
java.lang.Object
org.apache.camel.dataformat.soap.Soap12DataFormatAdapter
- All Implemented Interfaces:
SoapDataFormatAdapter
Marshaling from Objects to SOAP 1.2 and back by using JAXB. The classes to be processed need to have JAXB
annotations. For marshaling a ElementNameStrategy is used to determine how the top level elements in SOAP are named
as this can not be extracted from JAXB.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoMarshal(org.apache.camel.Exchange exchange, Object inputObject, OutputStream stream, String soapAction) Executes the marshaldoUnmarshal(org.apache.camel.Exchange exchange, InputStream stream, Object rootObject) Executes the unmarshalGets theSoapDataFormatSOAP data format.Gets the JAXB package names where the JAXB generated sources is for either SOAP 1.1 or 1.2 implementations.
-
Constructor Details
-
Soap12DataFormatAdapter
-
-
Method Details
-
getDataFormat
Description copied from interface:SoapDataFormatAdapterGets theSoapDataFormatSOAP data format.- Specified by:
getDataFormatin interfaceSoapDataFormatAdapter
-
doMarshal
public Object doMarshal(org.apache.camel.Exchange exchange, Object inputObject, OutputStream stream, String soapAction) throws IOException Description copied from interface:SoapDataFormatAdapterExecutes the marshal- Specified by:
doMarshalin interfaceSoapDataFormatAdapter- Returns:
- soap envelope
- Throws:
IOException
-
doUnmarshal
public Object doUnmarshal(org.apache.camel.Exchange exchange, InputStream stream, Object rootObject) throws IOException Description copied from interface:SoapDataFormatAdapterExecutes the unmarshal- Specified by:
doUnmarshalin interfaceSoapDataFormatAdapter- Returns:
- the payload
- Throws:
IOException
-
getSoapPackageName
Description copied from interface:SoapDataFormatAdapterGets the JAXB package names where the JAXB generated sources is for either SOAP 1.1 or 1.2 implementations.- Specified by:
getSoapPackageNamein interfaceSoapDataFormatAdapter
-