com.ibm.btt.services.ws.jaxrpc
Class BTTJaxRpcConnector
java.lang.Object
com.ibm.btt.base.DSENotifier
com.ibm.btt.base.Service
com.ibm.btt.services.ws.jaxrpc.JaxRpcConnectorInfrastructure
com.ibm.btt.services.ws.jaxrpc.JaxRpcClientMediator
com.ibm.btt.services.ws.jaxrpc.BTTJaxRpcConnector
- All Implemented Interfaces:
- Notifier, WSConnector, java.io.Externalizable, java.io.Serializable, java.lang.reflect.InvocationHandler
public class BTTJaxRpcConnector
- extends JaxRpcClientMediator
This class provides a service used to connect to a WebService and execute a
WebService operation by way of JAX-RPC. It will expose a proxy for the
JAX-RPC port, which is referenced to the remote bean.
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
execute(java.lang.String wsOperationName,
java.lang.Class[] parameterClasses,
java.lang.Object[] parameters)
Performs the actual execution of the WebService operation. |
Context |
getContext()
Returns the value of the context property. |
protected java.lang.String |
getMethodSignature(java.lang.String wsOperationName,
java.lang.Class[] parameterClasses)
|
java.lang.Object |
getProxy()
Returns the dynamic proxy for the remote JAX-RPC object. |
java.lang.Object |
initializeFrom(Tag aTag)
Initializes an BTTJaxRpcConnector object with the aTag attributes. |
void |
reset()
Creates web service invocation object, after setting all the WebService properties. |
void |
setContext(Context aContext)
Sets the value of the context property. |
Methods inherited from class com.ibm.btt.services.ws.jaxrpc.JaxRpcClientMediator |
doInvoke, doInvoke, getJaxRpcService, getPortQName, getPortStub, getServiceEndpointInterface, invoke, isPrepared, prepare, preparePortStub, processPortStub, setJaxRpcService, setLookupServiceOnStartup, setServiceEndpointInterface |
Methods inherited from class com.ibm.btt.services.ws.jaxrpc.JaxRpcConnectorInfrastructure |
createJaxRpcService, createService, createServiceFactory, getEndpointAddress, getJaxRpcServiceInterface, getJaxRpcServiceProcessors, getJaxRpcServiceProperties, getNamespaceUri, getPassword, getPortName, getQName, getServiceFactory, getServiceFactoryClass, getServiceName, getUsername, getWsdlUrl, isMaintainSession, processJaxRpcService, setEndpointAddress, setJaxRpcServiceInterface, setJaxRpcServiceProcessors, setJaxRpcServiceProperties, setMaintainSession, setNamespaceUri, setPassword, setPortName, setServiceFactory, setServiceFactoryClass, setServiceName, setUsername, setWsdlUrl |
Methods inherited from class com.ibm.btt.base.Service |
externalizer, getExternalizer, getTagName, readExternal, readExternal, readObject, removeExternal, setExternalizer, terminate, toString, toStrings, toTags, writeExternal, writeExternal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BTTJaxRpcConnector
public BTTJaxRpcConnector()
reset
public void reset()
throws BTTWsFaultException
- Description copied from class:
JaxRpcClientMediator
- Creates web service invocation object, after setting all the WebService properties.
- Specified by:
reset
in interface WSConnector
- Overrides:
reset
in class JaxRpcClientMediator
- Throws:
BTTWsFaultException
- when initiate Web services error occurs
getProxy
public java.lang.Object getProxy()
- Returns the dynamic proxy for the remote JAX-RPC object.
- Returns:
- java.lang.Object
initializeFrom
public java.lang.Object initializeFrom(Tag aTag)
throws java.io.IOException,
DSEException
- Initializes an BTTJaxRpcConnector object with the aTag attributes.
- Overrides:
initializeFrom
in class Service
- Parameters:
aTag
- A Tag that contains the name and attributes of the object to
be created
- Returns:
- Object - An instance of BTTJaxRpcConnector
- Throws:
java.io.IOException
DSEException
execute
public java.lang.Object execute(java.lang.String wsOperationName,
java.lang.Class[] parameterClasses,
java.lang.Object[] parameters)
throws BTTWsFaultException,
BTTWsBusinessException
- Description copied from interface:
WSConnector
- Performs the actual execution of the WebService operation.
- Parameters:
wsOperationName
- Web services operation nameparameterClasses
- collection for the parameter types
The order of the array represent the WebService operation parameter order.parameters
- collection for the parameter values
- Throws:
BTTWsFaultException
- when web services related technical Exception thrown by the runtime, it can
be divided into JaxWsSoapFaultException or JaxRpcSoapFaultException, ConnectWebServiceFailureException,
WebServiceAccesException and RemoteProxyFailureException
BTTWsBusinessException
- when business logic Exception thrown by the service, e.g.
getAccount(String accountNo) throws NoSuchAccountException
- See Also:
JaxWsSoapFaultException
,
JaxRpcSoapFaultException
,
ConnectWebServiceFailureException
,
WebServiceAccesException
,
RemoteProxyFailureException
getMethodSignature
protected java.lang.String getMethodSignature(java.lang.String wsOperationName,
java.lang.Class[] parameterClasses)
setContext
public void setContext(Context aContext)
- Description copied from interface:
WSConnector
- Sets the value of the context property.
- Specified by:
setContext
in interface WSConnector
- Specified by:
setContext
in class JaxRpcConnectorInfrastructure
- Parameters:
aContext
- com.ibm.btt.base.Context
getContext
public Context getContext()
- Description copied from interface:
WSConnector
- Returns the value of the context property.
- Specified by:
getContext
in interface WSConnector
- Specified by:
getContext
in class JaxRpcConnectorInfrastructure
- Returns:
- java.lang.String
(c) Copyright IBM Corporation 1998, 2011