org.apache.camel.dataformat.soap
Class Soap11DataFormatAdapter

java.lang.Object
  extended by 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
Soap11DataFormatAdapter(SoapJaxbDataFormat dataFormat)
           
 
Method Summary
 Object doMarshal(org.apache.camel.Exchange exchange, Object inputObject, OutputStream stream, String soapAction)
          Executes the marshal
 Object doUnmarshal(org.apache.camel.Exchange exchange, InputStream stream, Object rootObject)
          Executes the unmarshal
 SoapJaxbDataFormat getDataFormat()
          Gets the SoapJaxbDataFormat 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Soap11DataFormatAdapter

public Soap11DataFormatAdapter(SoapJaxbDataFormat dataFormat)
Method Detail

getDataFormat

public SoapJaxbDataFormat getDataFormat()
Description copied from interface: SoapDataFormatAdapter
Gets the SoapJaxbDataFormat SOAP data format.

Specified by:
getDataFormat in interface SoapDataFormatAdapter

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 interface SoapDataFormatAdapter
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 interface SoapDataFormatAdapter
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 interface SoapDataFormatAdapter


Apache Camel