Package org.somda.sdc.dpws.soap
Class MarshallingService
java.lang.Object
org.somda.sdc.dpws.soap.MarshallingService
Utility class to marshal/unmarshal SOAP messages.
-
Method Summary
Modifier and TypeMethodDescriptionvoidmarshal(SoapMessage msg, OutputStream os) Marshals a SOAP message.unmarshal(InputStream is) Unmarshals a SOAP message from an input stream.Unmarshals a SOAP message from a reader.
-
Method Details
-
marshal
Marshals a SOAP message.- Parameters:
msg- the message to marshal.os- the output stream where to write the XML message to.- Throws:
MarshallingException- if any exception occurs during marshalling.
-
unmarshal
Unmarshals a SOAP message from an input stream.- Parameters:
is- the input stream where to unmarshal from.- Returns:
- the unmarshalled object.
- Throws:
MarshallingException- if any exception occurs during unmarshalling.
-
unmarshal
Unmarshals a SOAP message from a reader.- Parameters:
reader- the input stream where to unmarshal from.- Returns:
- the unmarshalled object.
- Throws:
MarshallingException- if any exception occurs during unmarshalling.
-