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出品

  • 相关阅读:
    如何阅读一个Web项目 【转载】
    线程的状态与基本操作
    java多线程通信方式之一:wait/notify
    synchronized的简单理解
    每月IT摘录201807
    springmvc 请求无法到达controller,出现404
    android开发 java与c# 兼容AES加密
    android 开发不能创建目录
    mysql存储过程出现OUT or INOUT argument 10 for routine
    android退出登陆后,清空之前所有的activity,进入登陆主界面
  • 原文地址:https://www.cnblogs.com/Flamo/p/3966739.html
Copyright © 2011-2022 走看看