使用ESB路由服务更新BRE中的XML元素 [英] Updating XML element in BRE using ESB routing service

查看:66
本文介绍了使用ESB路由服务更新BRE中的XML元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


根据以下链接,我正在尝试更新从路由服务调用的BRE中的xml元素。  我有以下代码似乎运行没有错误,当调试似乎没问题时,但它是
更新输出xml中的值。  有什么想法吗?  我正在使用以下代码:

 public void UpdateDestination(TypedXmlDocument resultMessage,string NewDestination)
{
XNamespace ns =" http://order/0.1" ;;
XDocument doc = XDocument.Parse(resultMessage.Document.InnerXml);
XElement root = doc.Element(ns +" Order")。Element(" ROUTE");
root.Element(" Destination")。Value = NewDestination;
}

使用以下作为参考


ESB - 更新消息数据的选项


我在BRE中使用以下方式调用它通过 
行程路由服务。



提前致谢




GilesB

解决方案

Hi Giles


帮助方法在ESB之外是否正常工作?还要通过Business Rules Composer中的测试策略进行检查。


此外,配置为在接收管道上运行的路由服务在哪里?


Hi all,

As per the below link i'm trying to update an xml element in the BRE called from a routing service.  I have the following code the seems to run error free and when debugging seems alright, however it's updating the values in the output xml.  Any ideas?  I'm using the following code:

       public void UpdateDestination(TypedXmlDocument resultMessage, string NewDestination)
        {
            XNamespace ns = "http://order/0.1";
            XDocument doc = XDocument.Parse(resultMessage.Document.InnerXml);
            XElement root = doc.Element(ns + "Order").Element("ROUTE");
            root.Element("Destination").Value = NewDestination;
        }

Using the below as referance

ESB - Options to update message data

And am calling it using the below in the BRE wihch is called via  an itinerary routing service.

Thanks in advance


GilesB

解决方案

Hi Giles

Is the helper method working fine in isolation outside ESB? Also check via Test Policy in Business Rules Composer.

Also where is the routing service configured to run - on the Receive pipeline?


这篇关于使用ESB路由服务更新BRE中的XML元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆