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(org.somda.sdc.dpws.soap.model.Envelope envelope, OutputStream outputStream) Marshals a SOAP message.org.somda.sdc.dpws.soap.model.Envelopeunmarshal(InputStream inputStream) Unmarshals a SOAP message.org.somda.sdc.dpws.soap.model.EnvelopeUnmarshals 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
void marshal(org.somda.sdc.dpws.soap.model.Envelope envelope, OutputStream outputStream) throws javax.xml.bind.JAXBException 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
org.somda.sdc.dpws.soap.model.Envelope unmarshal(InputStream inputStream) throws javax.xml.bind.JAXBException, ClassCastException 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
org.somda.sdc.dpws.soap.model.Envelope unmarshal(Reader reader) throws javax.xml.bind.JAXBException, ClassCastException 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.
-