如何在BAM门户中跟踪失败的请求 [英] How to Track failed request in BAM Portal

查看:86
本文介绍了如何在BAM门户中跟踪失败的请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将以下xml文件作为请求文件发送到biztalk服务器,并且正在监控。


< ns0:Request>

  ;< Header>

  < ReqID> 1003< / ReqID>

  < OrderDate> 2013-04-21< / OrderDate> ; $
  < GrandTotal> 10001< / GrandTotal>

  < UserRole> admin< / UserRole>

 < / Header>

  < Items>

   <说明> Microsoft无线桌面 - 键盘和鼠标7000

   < / Description>

   < Quantity> 10< / Quantity>

   < UnitPrice> 106.99< / UnitPrice>

  < / Items>

  

 

< / ns0:请求>


BAM显示聚合中的所有跟踪数据和请求计数。


但在这里我想跟踪失败ed request.for我已删除"< / Items>"标签。因此,XML变为。


< ns0:请求>

 < Header>

   < ReqID> 1003< / ReqID>

  < OrderDate> 2013-04-21< / OrderDate>

  < GrandTotal> 10001< / GrandTotal>

  < UserRole> admin< / UserRole>

 < / Header>

  ; < Items>

   <说明> Microsoft无线桌面 - 键盘和鼠标7000

   < /说明>&
   <数量> 10< /数量>

   < UnitPrice> 106.99< / UnitPrice>

  

 

< / ns0:请求>


你能不能请告诉我如何跟踪业务活动监控中的失败或抛出异常的请求?


先谢谢。

解决方案

<跨度风格="FONT-FAMILY:宋体; font-size:9pt">


如果您在接收位置级别使用了TPE,它将跟踪该接收位置收到的所有消息。您有一些选项可用于您的目的:


选项1:



  • 创建一个BAM活动和一个BAM视图,可用于查看BAM门户中的跟踪消息。
  • 创建跟踪配置文件以跟踪失败的消息。
  • 在接收和发送要跟踪失败消息的端口上启用失败的消息路由。
  • 为失败的消息创建订阅者。订阅者可以是发送端口或业务流程。

参考:
http://msdn.microsoft.com/en-us/library/ cc546584(v = bts.10).aspx


选项2:只是为了跟踪失败的消息,你必须实现一些自定义的异常处理过程,其中将收到失败的消息,你可以使用BAM API来跟踪你的异常处理消息
处理过程。




I am sending following xml file as request file to biztalk server and it is monitoring proper.

<ns0:Request>
 <Header>
  <ReqID>1003</ReqID>
  <OrderDate>2013-04-21</OrderDate>
  <GrandTotal>10001</GrandTotal>
  <UserRole>admin</UserRole>
 </Header>
  <Items>
   <Description>Microsoft Wireless Desktop- Keyboard and Mouse 7000
   </Description>
   <Quantity>10</Quantity>
   <UnitPrice>106.99</UnitPrice>
  </Items>
  
 
</ns0:Request>

BAM shows all the tracking data and count of the request in Aggregation.

But here I want to track the failed request.for that I have removed "</Items>" tag .So the XML Becomes.

<ns0:Request>
 <Header>
  <ReqID>1003</ReqID>
  <OrderDate>2013-04-21</OrderDate>
  <GrandTotal>10001</GrandTotal>
  <UserRole>admin</UserRole>
 </Header>
  <Items>
   <Description>Microsoft Wireless Desktop- Keyboard and Mouse 7000
   </Description>
   <Quantity>10</Quantity>
   <UnitPrice>106.99</UnitPrice>
  
 
</ns0:Request>

Can you please tell me that how do I track the requests in Business Activity Monitoring which is getting failed or throwing exception?

Thanks in advanced.

解决方案

Hi,

If you have used TPE on receive location level, it would track all the messages received by that receive location. you have some options for your purpose:

Option 1:

  • Create a BAM activity and a BAM view that can be used to view the tracked messages in the BAM portal.
  • Create a tracking profile to track failed messages.
  • Enable failed message routing at receive and send ports for which failed messages are to be tracked.
  • Create a subscriber for the failed messages. The subscriber can be a send port or an orchestration.

Reference: http://msdn.microsoft.com/en-us/library/cc546584(v=bts.10).aspx

Option2: Just to track the failed messages you have to implement some custom exception handling process where the failed messages would be received and you can use BAM APIs to track the message at your exception handling process.


这篇关于如何在BAM门户中跟踪失败的请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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