You define the WSIF Access Action in the Struts configuration file. The definition of a WSIF Access Action usually has the following attributes:
Attribute | Description |
---|---|
path | The application context-relative path to the WSIF Access Action. |
className | The class name of configuration bean. |
name | The name of the <form-bean> element to use with the WSIF Access Action. |
type | The Java(TM) class name of the WSIF Access Action. The Branch Transformation Toolkit provides com.ibm.btt.struts.actions.WSIFAction as the WSIF Access Action class, and you can create your own if necessary. |
wsdlFile | The location and name of the WSDL file containing the Web service definition. |
mapFromFormat | The name of the formatter that maps data from the context to the request message. |
mapToFormat | The name of the formatter that maps data from the response message to the context. |
portType | The name of the port used by the service. This is an optional attribute and, if not defined, causes the service to use the default port. |
opName | The name of the operation that the service performs. |
service | The name of the service performing the operation. This is an optional attribute and, if not defined, causes the WSIFServiceFactory to create the default service. If the action definition includes the service attribute, the definition must also have the ns, pns, and pname attributes. |
ns | The namespace of the service. |
pns | The namespace of the port type. |
pname | The name of the port type. |
The following example definition explicitly identifies the service performing the operation. In this case, the ns, pns, and pname attributes become mandatory.
<action name="creditCardForm" path="/creditcardprocessed" className="com.ibm.btt.struts.config.BTTWSIFActionMapping" type="com.ibm.btt.struts.actions.WSIFAction" input="/creditCardProcessedPage.jsp" invokerId="creditcardprocessedinvoker"> <forward name="success" contextRelative="true" path="/btt/html/accountSummary/accountinquiry.jsp"/> </action>