Siebel -- EAI Siebel Adapter
WebService调用EAI Siebel Adapter Upsert方法,传进来的不是siebel message 而是XML
var bsEAI = TheApplication().GetService("EAI Siebel Adapter"); var psInSet = TheApplication().NewPropertySet(); var psOutSet = TheApplication().NewPropertySet(); var iomsg = TheApplication().NewPropertySet(); var sblmsg = TheApplication().NewPropertySet(); iomsg = Inputs.GetChild(0).GetChild(0); sblmsg.SetType("SiebelMessage"); sblmsg.SetProperty("MessageType","Integration Object"); sblmsg.SetProperty("IntObjectName","Quota Management EAI"); sblmsg.SetProperty("IntObjectFormat","Siebel Hierarchical"); sblmsg.SetProperty("IntegrationObject","Quota Management EAI"); sblmsg.AddChild(iomsg); psInSet.AddChild(sblmsg); bsEAI.InvokeMethod("Upsert",psInSet,psOutSet);
WebService调用EAI Siebel Adapter Query方法,传进来的不是siebel message 而是XML
function QuotaQuery(Inputs, Outputs) { try{ var objId = Inputs.GetProperty("Object Id"); var intObjectName = Inputs.GetProperty("IntObjectName"); var searchExpr = Inputs.GetProperty("SearchExpr"); var bs = TheApplication().GetService("EAI Siebel Adapter"); var psInputs = TheApplication().NewPropertySet(); var psOutputs = TheApplication().NewPropertySet(); if(objId != "") { psInputs.SetProperty("PrimaryRowId",objId); } psInputs.SetProperty("OutputIntObjectName",intObjectName); if(searchExpr != "") { psInputs.SetProperty("SearchSpec",searchExpr); } psInputs.SetProperty("ExecutionMode", "ForwardOnly"); bs.InvokeMethod("Query", psInputs, psOutputs); Outputs.InsertChildAt(psOutputs.GetChild(0),0); } catch(e){ throw(e.message); } finally{ psOutputs = null; psInputs = null; bs = null; } }
DW出品
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步