public interface WebService
| Modifier and Type | Field and Description |
|---|---|
static int |
ERR_BINDING_NOT_IN_WSDL_DOCUMENT
Error code.
|
static int |
ERR_BINDING_NOT_SUPPORTED
Error code.
|
static int |
ERR_INVALID_PARAMS_IN_CONNECTION_STRING
Error code.
|
static int |
ERR_LOADING_WSDL_DOCUMENT
Error code.
|
static int |
ERR_NO_SERVICE_ERROR
Error code.
|
static int |
ERR_NO_SERVICE_SPECIFIED
Error code.
|
static int |
ERR_PORT_NOT_IN_WSDL_DOCUMENT
Error code.
|
static int |
ERR_SERVICE_AND_PORT_NOT_FOUND
Error code.
|
static int |
ERR_SERVICE_NOT_IN_WSDL_DOCUMENT
Error code.
|
static int |
ERR_TARGETNAMESPACE_NOT_MATCH_WDSL
Error code.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupInvocation(int id)
Clears the temporary state of an invocation.
|
int |
connect(WebServiceConnectOptions options)
Validate parameters and establish a new connection using the given options.
|
boolean |
disconnect(int id)
Disconnect the web service.
|
java.lang.String[] |
getHeaderEntries(int id)
Get the header entries of an already open and prepared connection.
|
java.lang.String |
getNamespace(int id)
Get the wsdl namespace of this connection.
|
java.lang.Object[] |
getOutputValues(int id)
Obtain the values of output parameters after a successful Web Service invocation.
|
java.lang.String |
getPortTypeName(int id)
Get the name of the PortType of the specified connection.
|
boolean |
invoke(int id,
java.lang.String operationName,
java.lang.String portTypeName,
java.lang.String requestHeader)
Do the actual Web Service invocation.
|
boolean |
prepareInvoke(int id,
java.lang.String portTypeName,
java.lang.String operationName,
java.lang.String modes,
java.lang.Object... args)
Prepare the connection for an invocation of an operation on the Web Service.
|
static final int ERR_LOADING_WSDL_DOCUMENT
static final int ERR_INVALID_PARAMS_IN_CONNECTION_STRING
static final int ERR_SERVICE_NOT_IN_WSDL_DOCUMENT
static final int ERR_NO_SERVICE_ERROR
static final int ERR_PORT_NOT_IN_WSDL_DOCUMENT
static final int ERR_BINDING_NOT_SUPPORTED
static final int ERR_BINDING_NOT_IN_WSDL_DOCUMENT
static final int ERR_SERVICE_AND_PORT_NOT_FOUND
static final int ERR_NO_SERVICE_SPECIFIED
static final int ERR_TARGETNAMESPACE_NOT_MATCH_WDSL
int connect(WebServiceConnectOptions options)
options - A collection of all parameters used for this connection.java.lang.String getPortTypeName(int id)
id - The id of the connection.boolean disconnect(int id)
id - The ID of the associated web service on P2J Client side.true if no errors were encountered during disconnect.void cleanupInvocation(int id)
id is invalid nothing happens.id - The id of an open connection.boolean prepareInvoke(int id,
java.lang.String portTypeName,
java.lang.String operationName,
java.lang.String modes,
java.lang.Object... args)
id - The id of an open connection.portTypeName - The name of the port type to be invoked.operationName - The name of the operation to be invoked on the Web Service.modes - A string representation of the modes of each parameter. May not be null.args - The operation's arguments.true if validation was successful and false if some errors occurred
and invocation is not available.boolean invoke(int id,
java.lang.String operationName,
java.lang.String portTypeName,
java.lang.String requestHeader)
id.id - The id of an open connection.operationName - The name of the operation to be invoked on the Web Service.portTypeName - The name of the port type to be invoked.requestHeader - The request header if any was obtained form a call to a configured header callback.true if the service operation was successful and false if
id does not represent a valid connection or other error occurred.java.lang.Object[] getOutputValues(int id)
id - The id of an open connection.java.lang.String getNamespace(int id)
id - The id of an open connection.null if id does not
represent the identifier of a valid open connection.java.lang.String[] getHeaderEntries(int id)
id - The id of an open connection.null if the id is
not the identifier of an open and prepared connection.