Package org.apache.camel.dataformat.soap
Class Soap11DataFormatAdapter
- java.lang.Object
-
- org.apache.camel.dataformat.soap.Soap11DataFormatAdapter
-
- All Implemented Interfaces:
SoapDataFormatAdapter
public class Soap11DataFormatAdapter extends Object implements 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
Constructors Constructor Description Soap11DataFormatAdapter(SoapDataFormat dataFormat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
doMarshal(org.apache.camel.Exchange exchange, Object inputObject, OutputStream stream, String soapAction)
Executes the marshalObject
doUnmarshal(org.apache.camel.Exchange exchange, InputStream stream, Object rootObject)
Executes the unmarshalSoapDataFormat
getDataFormat()
Gets theSoapDataFormat
SOAP data format.String
getSoapPackageName()
Gets the JAXB package names where the JAXB generated sources is for either SOAP 1.1 or 1.2 implementations.
-
-
-
Constructor Detail
-
Soap11DataFormatAdapter
public Soap11DataFormatAdapter(SoapDataFormat dataFormat)
-
-
Method Detail
-
getDataFormat
public SoapDataFormat 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
public String 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
-
-