Migrate presentation layer

After you finished the steps in Migrating your applications to version 5.2, you may still need to do some extra work:
  • Struts configuration file – wsifAction: Since the BPEL architecture and implementation are changed totally. WSIF is not supported any more. The wsifAction in struts configuration file should be replaced by JSR109 enabled struts action. The following is the wsifAction sample:
    <action path="/StateA" 
      className="com.ibm.btt.struts.config.BTTActionConfig" 
      name="stateAForm"
      type="com.ibm.btt.struts.wsif.WSIFAccessAction" 
      context="branchServer"
      wsdlFile="com/ibm/btt/struts/sample/service/EchoJavaService.wsdl"
      ns="http://service.sample.struts.btt.ibm.com/EchoJavaService/"
      service="EchoService"
      pns="http://service.sample.struts.btt.ibm.com/Echo/"
      pname="Echo"
      mapToFormat="toEchoFormat"
      mapFromFormat="fromEchoFormat"
      opName="echo"
      inName="echoRequest"
      outName="echoResponse">
                  .
                  .
    </action>   
    The new BPEL struts action should be the normal BTTBaseAction extensions within BPEL JSR109 facade invocation code. The following is the sample:
    <action path="/StateA" 
      className="com.ibm.btt.struts.config.BTTActionConfig" 
      name="stateAForm"
      type="com.customer.jsr109.StateAAction" 
      context="branchServer">
    </action>
    Note: The new BPEL action is not generic. It's tightly-coupled with BPEL service name and interface. In each BPEL action, you must put the invocation code to each BPEL service. The following is the sample code in BPEL action:
    TransferServiceProxy transferProxy = new TransferServiceProxy();
    transferProxy.transfer(param1, param2?);
    The class name TransferServiceProxy is generated by BPEL engine automatically when developing the BPEL service.
  • Struts Configuration file – WSIFMessage Mapping: The WSIF (BPEL 1.0) is leveraged on WSIFMessage Mapping file to transfer parameter from presentation layer to BPEL. In BTT version 5.2, all WSIFMessage mapping should be removed. The following is BTT Struts WSIFMessage Mapping definition sample:
    <formats>
          <format id="toEchoFormat" className="">
                  <wsif-map dataElement="userName" partKey="message"/>
          </format>
          <format id="fromEchoFormat" className="">
                  <wsif-map dataElement="txCode" partKey="result"/>
                  <wsif-map dataElement="txMessage" partKey="result"/>
          </format>
            .
            .
    <formats>