Package org.somda.sdc.dpws.wsdl
Interface WsdlMarshalling
- All Superinterfaces:
com.google.common.util.concurrent.Service
- All Known Implementing Classes:
JaxbWsdlMarshalling
public interface WsdlMarshalling
extends com.google.common.util.concurrent.Service
JAXB WSDL 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(TDefinitions wsdlDefinitions, OutputStream outputStream) Marshals a WSDL document.unmarshal(InputStream inputStream) Unmarshals a WSDL document.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(TDefinitions wsdlDefinitions, OutputStream outputStream) throws javax.xml.bind.JAXBException Marshals a WSDL document.- Parameters:
wsdlDefinitions- the WSDL definition to marshal.outputStream- the output stream where to write marshalled data to.- Throws:
javax.xml.bind.JAXBException- if marshalling to output stream failed
-
unmarshal
TDefinitions unmarshal(InputStream inputStream) throws javax.xml.bind.JAXBException, ClassCastException Unmarshals a WSDL document.- Parameters:
inputStream- the input WSDL definition to unmarshal.- Returns:
- the unmarshalled WSDL definition.
- Throws:
javax.xml.bind.JAXBException- if unmarshalling fails.ClassCastException- if the cast toTDefinitionsfails.
-