public abstract class WsFactory
extends java.lang.Object
setInstance method. Your instance should extend Soap_BaseHandler.| Constructor and Description |
|---|
WsFactory() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
addPrefix(java.lang.String prefix,
java.lang.String value)
Return the String value with the namespace prefix removed.
|
abstract WsMethodInfo |
createSoapCall(java.lang.String operationName,
boolean setRtn,
boolean paramValues,
LicasWsdlModel lWsdlModel)
Create and return a method info object for invoking a web service using the SOAP protocol.
|
abstract WsMethodInfo |
createSoapCall(java.lang.String webService,
java.lang.String operation,
java.lang.String endpointAddress,
java.lang.String soapActionUri,
java.lang.String namespace,
java.util.ArrayList<WsdlParamInfo> parameters,
boolean setRtn)
Create and return a method info object for invoking a web service using the SOAP protocol.
|
abstract Soap_BaseHandler |
createSoapMethodHandler()
Create the client soap method handler.
|
static WsFactory |
getInstance()
Get the web service factory instance.
|
static boolean |
hasInstance()
Return true if an instance of the factory has been set.
|
static java.lang.String |
removePrefix(java.lang.String value)
Return the String value with the namespace prefix removed.
|
static void |
setInstance(WsFactory thisInstance)
Set the web service factory instance if null.
|
static WsMethodInfo |
toMethodInfo(MethodInfo methodInfo)
Convert the method info into a Web-Service type equivalent.
|
abstract WsMethodInfo |
toMethodInfo(java.lang.String method,
java.lang.String descr)
Required by some string-based requests, to convert them back into the method
info object.
|
public static boolean hasInstance()
public static void setInstance(WsFactory thisInstance)
thisInstance - the factory instance.public static WsFactory getInstance()
public abstract WsMethodInfo createSoapCall(java.lang.String operationName, boolean setRtn, boolean paramValues, LicasWsdlModel lWsdlModel) throws java.lang.Exception
operationName - the name of the operation to call.setRtn - true if set the return Object type.paramValues - if true add the parameter values as WsdlParamInfo objects.lWsdlModel - the wsdl model that stores the description.java.lang.Exception - any error.public abstract WsMethodInfo createSoapCall(java.lang.String webService, java.lang.String operation, java.lang.String endpointAddress, java.lang.String soapActionUri, java.lang.String namespace, java.util.ArrayList<WsdlParamInfo> parameters, boolean setRtn) throws java.lang.Exception
webService - the service name.operation - the name of the operation to call.endpointAddress - the server endpoint address.soapActionUri - soap action uri type.namespace - ontology namespace.parameters - list of WsdlParamInfo objects that store parameter types and values.setRtn - true if set the return Object type.java.lang.Exception - any error.public abstract Soap_BaseHandler createSoapMethodHandler()
Soap_BaseHandler.public abstract WsMethodInfo toMethodInfo(java.lang.String method, java.lang.String descr) throws java.lang.Exception
method - the method name.descr - the method call description.java.lang.Exception - any error.public static WsMethodInfo toMethodInfo(MethodInfo methodInfo) throws java.lang.Exception
methodInfo - the method info to convert.java.lang.Exception - any error.public static java.lang.String addPrefix(java.lang.String prefix,
java.lang.String value)
prefix - the namespace prefix.value - the value for which the prefix should be removedpublic static java.lang.String removePrefix(java.lang.String value)
value - the value for which the prefix should be removed