public final class WebServiceFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends WebService<?,?,?>> |
createInstance(@Nullable Session session,
@Nullable StreamSource streamSource)
Creates a web service instance.
|
static <T extends WebService<?,?,?>> |
createInstance(@NotNull Session session,
@NotNull WebServiceType webServiceType)
Create a web service instance
|
@NotNull public static <T extends WebService<?,?,?>> T createInstance(@NotNull @NotNull Session session, @NotNull @NotNull WebServiceType webServiceType) throws ResultException
T - WebService the webservice typesession - Session context for the Web servicewebServiceType - the WebServiceType entry(CONVERTER, TOOLBOX, ...)WebService child instanceResultException - a ResultException@NotNull public static <T extends WebService<?,?,?>> T createInstance(@Nullable @Nullable Session session, @Nullable @Nullable 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–2020 SoftVision Development GmbH, Fulda, Germany. All rights reserved.