Package org.apache.camel.dataformat.soap
Class Soap11DataFormatAdapter
java.lang.Object
org.apache.camel.dataformat.soap.Soap11DataFormatAdapter
- All Implemented Interfaces:
SoapDataFormatAdapter
Marshaling from Objects to SOAP 1.1 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
-
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 theSoapDataFormat
SOAP data format.Gets the JAXB package names where the JAXB generated sources is for either SOAP 1.1 or 1.2 implementations.
-
Constructor Details
-
Soap11DataFormatAdapter
-
-
Method Details
-
getDataFormat
Description copied from interface:SoapDataFormatAdapter
Gets theSoapDataFormat
SOAP data format.- Specified by:
getDataFormat
in interfaceSoapDataFormatAdapter
-
doMarshal
public Object doMarshal(org.apache.camel.Exchange exchange, Object inputObject, OutputStream stream, String soapAction) throws IOException Description copied from interface:SoapDataFormatAdapter
Executes the marshal- Specified by:
doMarshal
in 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:SoapDataFormatAdapter
Executes the unmarshal- Specified by:
doUnmarshal
in interfaceSoapDataFormatAdapter
- Returns:
- the payload
- Throws:
IOException
-
getSoapPackageName
Description copied from interface:SoapDataFormatAdapter
Gets the JAXB package names where the JAXB generated sources is for either SOAP 1.1 or 1.2 implementations.- Specified by:
getSoapPackageName
in interfaceSoapDataFormatAdapter
-