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 ObjectdoMarshal(org.apache.camel.Exchange exchange, Object inputObject, OutputStream stream, String soapAction)Executes the marshalObjectdoUnmarshal(org.apache.camel.Exchange exchange, InputStream stream, Object rootObject)Executes the unmarshalSoapDataFormatgetDataFormat()Gets theSoapDataFormatSOAP data format.StringgetSoapPackageName()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: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
public String 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
-
-