zoukankan      html  css  js  c++  java
  • 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出品

  • 相关阅读:
    iframe的使用小贴士
    jquery M97-datepicker日历控件
    CSS z-index 属性的使用方法和层级树的概念
    常用的js代码
    图片水平垂直居中
    server端和前端的区别
    nodejs模块化标准
    nodejs介绍
    小程序缓存Storage的基本用法
    小程序数据绑定的拓展用法
  • 原文地址:https://www.cnblogs.com/Flamo/p/3966739.html
Copyright © 2011-2022 走看看