Package org.somda.sdc.dpws.soap
Class MarshallingService
- java.lang.Object
-
- org.somda.sdc.dpws.soap.MarshallingService
-
public class MarshallingService extends Object
Utility class to marshal/unmarshal SOAP messages.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmarshal(SoapMessage msg, OutputStream os)Marshals a SOAP message.SoapMessageunmarshal(InputStream is)Unmarshals a SOAP message from an input stream.SoapMessageunmarshal(Reader reader)Unmarshals a SOAP message from a reader.
-
-
-
Method Detail
-
marshal
public void marshal(SoapMessage msg, OutputStream os) throws MarshallingException
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
public SoapMessage unmarshal(InputStream is) throws MarshallingException
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
public SoapMessage unmarshal(Reader reader) throws MarshallingException
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.
-
-