Package org.somda.sdc.dpws.soap
Interface SoapMarshalling
- All Superinterfaces:
com.google.common.util.concurrent.Service
- All Known Implementing Classes:
JaxbSoapMarshalling
public interface SoapMarshalling
extends com.google.common.util.concurrent.Service
JAXB SOAP marshalling service.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service
com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State -
Method Summary
Modifier and TypeMethodDescriptionvoidmarshal(Envelope envelope, OutputStream outputStream) Marshals a SOAP message.unmarshal(InputStream inputStream) Unmarshals a SOAP message.Unmarshals a SOAP message.Methods inherited from interface com.google.common.util.concurrent.Service
addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync
-
Method Details
-
marshal
Marshals a SOAP message.- Parameters:
envelope- The envelope of the SOAP message.outputStream- The output stream where to write marshalled data to.- Throws:
javax.xml.bind.JAXBException- if marshalling to output stream failed
-
unmarshal
Unmarshals a SOAP message.- Parameters:
inputStream- the input message to unmarshal a SOAP message from.- Returns:
- the unmarshalled SOAP envelope.
- Throws:
javax.xml.bind.JAXBException- if unmarshalling fails.ClassCastException- if the cast toEnvelopefails.
-
unmarshal
Unmarshals a SOAP message.- Parameters:
reader- the input message to unmarshal a SOAP message from.- Returns:
- the unmarshalled SOAP envelope.
- Throws:
javax.xml.bind.JAXBException- if unmarshalling fails.ClassCastException- if the cast toEnvelopefails.
-