public final class WebServiceFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends WebService> |
createInstance(Session session,
StreamSource streamSource)
Creates a web service instance.
|
static <T extends WebService> |
createInstance(Session session,
WebServiceType webServiceType)
Create a web service instance
|
public static <T extends WebService> T createInstance(Session session, WebServiceType webServiceType) throws ResultException
T - WebService the webservice typesession - Session context for the Web servicewebServiceType - the WebServiceType entry(CONVERTER, TOOLBOX, ...)WebService child instanceResultException - a ResultExceptionpublic static <T extends WebService> T createInstance(Session session, StreamSource streamSource) throws ResultException
WebServiceType by loading the OperationData from the
StreamSource. The StreamSource is a XML or JSON content defined by DataFormat in the
Session object.T - WebService the webservice typesession - Session context for the web servicestreamSource - StreamSource to create the OperationData and to detect the WebServiceTypeWebService child instanceResultException - a ResultExceptionCopyright © 2017–2019 SoftVision Development GmbH, Fulda, Germany. All rights reserved.