IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.services
Class WSIFInvocation

java.lang.Object
  extended bycom.ibm.btt.base.Service
      extended bycom.ibm.btt.services.BTTServiceRequester
          extended bycom.ibm.btt.services.ServiceInvocation
              extended bycom.ibm.btt.services.WSIFInvocation
All Implemented Interfaces:
Externalizable, java.io.Externalizable, java.io.Serializable

public class WSIFInvocation
extends ServiceInvocation

WSIFInvocation is a kind of the service invocation via WSIF interface. The type of binding is depended on the wsdl definition.

See Also:
Serialized Form

Field Summary
protected static int INPUT_ONLY
          Internal variables
(package private) static java.lang.String PORTTYPE_NAME_KEY
           
(package private) static java.lang.String PORTTYPE_NAMESPACE_KEY
           
protected static int REQUEST_RESPONSE
           
(package private) static java.lang.String SERIVCE_NAME_KEY
           
(package private) static java.lang.String SERVICE_NAMESPACE_KEY
           
(package private) static java.lang.String WSDL_FILE_LOC_KEY
          Keys that used in resource bundle
 
Fields inherited from class com.ibm.btt.services.BTTServiceRequester
COMPID
 
Fields inherited from class com.ibm.btt.base.Service
externalizer, name
 
Constructor Summary
WSIFInvocation()
           
 
Method Summary
protected  org.apache.wsif.WSIFMessage execute(java.lang.String operationName, java.lang.String inputName, java.lang.String outputName, org.apache.wsif.WSIFMessage aMessage, int operationType)
          Exceute a WSIF operation
 java.lang.String getInvokeType()
          Method getInvokeType to get the invocation type.
 java.lang.String getLocOfTheWSDLFile()
          Get the location of WSDL file
 java.lang.String getPortTypeName()
          Get the Port Type Name
 java.lang.String getPortTypeNameSpace()
          Get the port type of the name space
 org.apache.wsif.WSIFService getService()
          Returns the WSIFService
 java.lang.String getServiceName()
          Get the service's name
 java.lang.String getServiceNameSpace()
          Get the service's name space
 void initialize(java.lang.String dseInit)
          Method initialize is to send the request with the file path of dse.ini to the service holder.
 void initializeFrom(java.util.ResourceBundle config)
          Work as initializeFrom(Tag).
 java.lang.Object initializeFrom(Tag aTag)
          Initializes the Service reading its attributes values from aTag.
 java.util.List processRequest(java.lang.String argServiceID, java.lang.String argOpName, java.util.Hashtable argParts)
          Method processRequest call to the WSIF interface to perform the process request.
 void setLocOfTheWSDLFile(java.lang.String location_WSDL)
          Set the location of WSDL file
 void setPortTypeName(java.lang.String aPortTypeName)
          Set the Port Type Name
 void setPortTypeNameSpace(java.lang.String aPortTypeNameSpace)
          Set the port type of the name space
 void setService(org.apache.wsif.WSIFService newService)
          Set the WSIFService
 void setServiceName(java.lang.String aServiceName)
          Set the service's name
 void setServiceNameSpace(java.lang.String svcNameSpace)
          Set the service's name space
 
Methods inherited from class com.ibm.btt.services.BTTServiceRequester
getCachingEnabled, getInactiveTimeout, getLastAccess, getServiceID, getServiceInvocation, getServiceType, grantServiceID, HashMapToHashtable, newInstance, processRequest, releaseServiceRequester, setCachingEnabled, setInactiveTimeout, setLastAccess, setServiceID, setServiceInvocation, setServiceType
 
Methods inherited from class com.ibm.btt.base.Service
externalizer, getExternalizer, getName, getTagName, readExternal, readExternal, readObject, removeExternal, setExternalizer, setName, terminate, toString, toStrings, toTags, writeExternal, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WSDL_FILE_LOC_KEY

static final java.lang.String WSDL_FILE_LOC_KEY
Keys that used in resource bundle

See Also:
Constant Field Values

SERVICE_NAMESPACE_KEY

static final java.lang.String SERVICE_NAMESPACE_KEY
See Also:
Constant Field Values

SERIVCE_NAME_KEY

static final java.lang.String SERIVCE_NAME_KEY
See Also:
Constant Field Values

PORTTYPE_NAMESPACE_KEY

static final java.lang.String PORTTYPE_NAMESPACE_KEY
See Also:
Constant Field Values

PORTTYPE_NAME_KEY

static final java.lang.String PORTTYPE_NAME_KEY
See Also:
Constant Field Values

INPUT_ONLY

protected static final int INPUT_ONLY
Internal variables

See Also:
Constant Field Values

REQUEST_RESPONSE

protected static final int REQUEST_RESPONSE
See Also:
Constant Field Values
Constructor Detail

WSIFInvocation

public WSIFInvocation()
Method Detail

initializeFrom

public java.lang.Object initializeFrom(Tag aTag)
                                throws java.io.IOException,
                                       DSEException
Description copied from class: Service
Initializes the Service reading its attributes values from aTag.

Specified by:
initializeFrom in interface Externalizable
Overrides:
initializeFrom in class ServiceInvocation
Throws:
java.io.IOException
DSEException
See Also:
It is inherited from the supper class and get the related information for the WSIF invocation.

initializeFrom

public void initializeFrom(java.util.ResourceBundle config)
                    throws java.lang.Exception
Work as initializeFrom(Tag). It is inherited from the supper class and get the related information for the WSIF invocation.

Overrides:
initializeFrom in class ServiceInvocation
Throws:
java.lang.Exception

initialize

public void initialize(java.lang.String dseInit)
                throws org.apache.wsif.WSIFException,
                       java.lang.Exception
Method initialize is to send the request with the file path of dse.ini to the service holder. Once the service holder received the request, the service holder will initial BTT environment.

Parameters:
dseInit - File path of dse.ini
Throws:
BTTInitializeServiceHolderException
BTTCreateServiceException
RemoteException
org.apache.wsif.WSIFException
java.lang.Exception

processRequest

public java.util.List processRequest(java.lang.String argServiceID,
                                     java.lang.String argOpName,
                                     java.util.Hashtable argParts)
                              throws java.lang.Exception
Method processRequest call to the WSIF interface to perform the process request.

Parameters:
argServiceID - Service ID which is matched to the service object's definition
argOpName - Operation name
argParts - Operation parameters
Returns:
List Execution result. Using Vector is for the serialization reason.
Throws:
java.lang.Exception
RemoteException

execute

protected org.apache.wsif.WSIFMessage execute(java.lang.String operationName,
                                              java.lang.String inputName,
                                              java.lang.String outputName,
                                              org.apache.wsif.WSIFMessage aMessage,
                                              int operationType)
                                       throws org.apache.wsif.WSIFException,
                                              java.lang.Exception
Exceute a WSIF operation

Throws:
org.apache.wsif.WSIFException
java.lang.Exception

getService

public org.apache.wsif.WSIFService getService()
Returns the WSIFService

Returns:
WSIFService

setService

public void setService(org.apache.wsif.WSIFService newService)
Set the WSIFService

Parameters:
newService -

getPortTypeName

public java.lang.String getPortTypeName()
Get the Port Type Name

Returns:
String

setPortTypeName

public void setPortTypeName(java.lang.String aPortTypeName)
Set the Port Type Name

Parameters:
aPortTypeName -

getPortTypeNameSpace

public java.lang.String getPortTypeNameSpace()
Get the port type of the name space

Returns:
String

setPortTypeNameSpace

public void setPortTypeNameSpace(java.lang.String aPortTypeNameSpace)
Set the port type of the name space

Parameters:
aPortTypeNameSpace -

getServiceName

public java.lang.String getServiceName()
Get the service's name

Returns:
String

setServiceName

public void setServiceName(java.lang.String aServiceName)
Set the service's name

Parameters:
aServiceName -

getServiceNameSpace

public java.lang.String getServiceNameSpace()
Get the service's name space

Returns:
String

setServiceNameSpace

public void setServiceNameSpace(java.lang.String svcNameSpace)
Set the service's name space

Parameters:
svcNameSpace -

getLocOfTheWSDLFile

public java.lang.String getLocOfTheWSDLFile()
Get the location of WSDL file

Returns:
String

setLocOfTheWSDLFile

public void setLocOfTheWSDLFile(java.lang.String location_WSDL)
Set the location of WSDL file

Parameters:
location_WSDL -

getInvokeType

public java.lang.String getInvokeType()
Description copied from class: ServiceInvocation
Method getInvokeType to get the invocation type.

Overrides:
getInvokeType in class ServiceInvocation
Returns:
String
See Also:
ServiceInvocation.getInvokeType()

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005