码迷,mamicode.com
首页 > 其他好文 > 详细

Siebel -- EAI Siebel Adapter

时间:2014-09-11 17:09:42      阅读:202      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   io   ar   for   div   sp   cti   

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

Siebel -- EAI Siebel Adapter

标签:style   blog   color   io   ar   for   div   sp   cti   

原文地址:http://www.cnblogs.com/Flamo/p/3966739.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!