2.3.2 Get FCUBSHeader Values

This topic provides information on Get FCUBSHeader Values. Each and every FCUBS soap request requires header object of class FCUBSHeaderType.

The class com.ofss.digx.ubs.adapter.impl.RequestHeader, provides all properties to set in FCUBS SOAP request header object.

A RequestHeader object should be instantiated by invoking AbstractAdapterHelper.getRequestHeader method and set all the required properties in FCUBS soap request header object.

com.ofss.digx.FCUBS.adapter.impl.AbstractAdapterHelper.getRequestHeader(String, String, String)

Create the Adapter helper instance and retrieve Request Header Object.

AbstractAdapterHelper helper =
        AbstractAdapterHelper.getInstance();RequestHeader
        header = helper.getRequestHeader("IA", "FCUBSAccService",                   
"ModifyIATDCustAcc");

Instantiate the request header and fill the essential details:

MODIFYTDCUSTACCFSFSREQ createTDRequest = new MODIFYTDCUSTACCFSFSREQ(); FCUBSHEADERType fcUBSHeaderType =
new FCUBSHEADERType();fcUBSHeaderType.setUSERID(header.getUserid());fcUBSHeaderType.setCORRELID(header.getCorrelid());
fcUBSHeaderType.setMSGID(header.getMsgid());fcUBSHeaderType.setDESTINATION(header.getDestination());
fcUBSHeaderType.setMSGSTAT(MsgStatType.fromValue(header.getMsgstat()));
fcUBSHeaderType.setSOURCE(header.getSource());fcUBSHeaderType.setBRANCH(helper.getHostBranchId(termDeposit.getTermDepositAccountId().getValue()));
fcUBSHeaderType.setUBSCOMP(UBSCOMPType.fromValue(header.getUbscomp()));fcUBSHeaderType.setMODULEID(header.getModuleid());
fcUBSHeaderType.setSERVICE(header.getService());fcUBSHeaderType.setOPERATION(header.getOperation());
fcUBSHeaderType.setSOURCEOPERATION(header.getSourceoperation());createTDRequest.setFCUBSHEADER(fcUBSHeaderType);

Invoke the FCUBS SOAP service

FCUBSAccServiceSEI clientProcess =
        (FCUBSAccServiceSEI) JAXWSFactory.createServiceStub(WebserviceConstants.FCUBS_ACCOUNT_SERVICE_SPI, 
WebserviceConstants.CREATE_TD_ACCOUNT);MODIFYTDCUSTACCFSFSRESresponse =
        clientProcess.modifyTDCustAccFS(createTDRequest);