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.ServiceJAXB SOAP marshalling service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidmarshal(Envelope envelope, OutputStream outputStream)Marshals a SOAP message.Envelopeunmarshal(InputStream inputStream)Unmarshals a SOAP message.Envelopeunmarshal(Reader reader)Unmarshals a SOAP message.
-
-
-
Method Detail
-
marshal
void marshal(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
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
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.
-
-