Bookshelf Home | Contents | Index | PDF |
Siebel Financial Services Enterprise Application Integration Guide > Industry XML Connector Factory APIs > Siebel Connector for Credit Card Application XMLThe following example shows the extension connector that implements the Industry XML classes through the sets of APIs. It shows how each of the steps is carried out to achieve supporting the credit card application services. Sample Result<LoginUserId>UserId</LoginUserId> <LoginCurPassword>PASSWD</LoginCurPassword> <DivisionCd>1-109</DivisionCd> <BranchCode>1-16UU</BranchCode> <ApplicantId>AAA CreditCard Join</ApplicantId> <WorklistModeFlag>03 - Qualification</WorklistModeFlag> <ApplicationClass>Credit Card Application</ApplicationClass> To implement the industry XML classes through the sets of APIs
NOTE: The common usage of MethodName in standard scripting is a publicly available business service method such as PropSetToXMLPropSet. However, in this example, the MethodName does not correspond to the business service method when implementing the factory classes. Instead, it refers to the methods in the Industry XML APIs. function Service_PreInvokeMethod (MethodName, Inputs, Outputs) if (MethodName == "GenerateHeader") { Func_GenerateHeader(Inputs, Outputs); else if (MethodName == "PreProcessBody") { Func_PreProcessBody(Inputs, Outputs); // Overwrite GenerateHeader method to handle SignonRq message function Func_GenerateHeader (Inputs, Outputs) // Enumerate the first layer header definition for (var i = 0; i < Outputs.GetChildCount(); i++) if ( child.GetType() == "SignonRq") else if (child.GetType() != "xxxSvcRq") // Remove other header definitions // Overwrite PreProcessBody method to add service aggregate function Func_PreProcessBody (Inputs, Outputs) if (Inputs.PropertyExists("SiebelFINSObjType")) Func_CopyPropSet(Inputs, Outputs); else if (Inputs.PropertyExists("IFX Service Name")) serviceName = Inputs.GetProperty("IFX Service Name"); // add CreditCardSvcRq aggregate // copy CardAppAddRq aggregate Outputs.AddChild(Inputs.Copy()); Func_CopyPropSet(Inputs, Outputs); // Sign on utility to access user name and password function Func_CreateSignOn(Inputs) // Enumerate the first layer header definition for (var i=0; i < Inputs.GetChildCount(); i++) if ( child.GetType() == "UsrLoginSegment") for (var j=0; j < child.GetChildCount(); j++) if (grdChild.GetType() == "LoginUserId") if (grdChild.GetType() == "LoginCurPassword") // Remove other header definitions // Generic copy property set utility function Func_CopyPropSet( Inputs, Outputs) Outputs.SetType(Inputs.GetType()); Outputs.SetValue(Inputs.GetValue()); propName = Inputs.GetFirstProperty(); propVal = Inputs.GetProperty(propName); Outputs.SetProperty(propName, propVal); propName = Inputs.GetNextProperty(); for (var i = 0; i < Inputs.GetChildCount(); i++) Outputs.AddChild(child.Copy());
|
Siebel Financial Services Enterprise Application Integration Guide | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |