首页 > 其他 > 详细

Configure Dynamics 365 and Azure Service Bus Integration (using OneWay relay and listener)

时间:2017-04-03 14:40:06      阅读:558      评论:0      收藏:0      [点我收藏+]

Continuing our previous post

https://nishantrana.me/2017/03/22/configure-dynamics-365-and-azure-service-bus-integration-through-queue-and-queueclient/

Here we‘d add a new Shared Access Policy in the Azure Service Bus.

技术分享

技术分享

We can copy the connection string

技术分享

Paste it in Service Endpoint registration dialog box of Plugin Registration tool

技术分享

Change the designation type to OneWay, use https for the namespace address.

技术分享

Register a step for creation of lead

技术分享

Now we go and create a lead record, which triggers our plugin and creates a system job for it.

技术分享

The system job fails as we do not have any active listener at the end point.

Now let us create a simple windows application which will act as listener.

Basically, we need to implement IServiceEndPointPlugin Interface, create a Service Host, define a new transportclientendpointbehaviour with shared access signature token provider, use WS2007HttpRelayBinding in our service end point.

技术分享

Now run the listener application, and create a lead record in CRM.

We can see the break point hit in our listener application‘ Execute method. Execute method is invoked whenever a message is posted to the service bus by Microsoft Dynamics 365.

技术分享

技术分享

System Job also shows the status as succeeded as we had our listener registered to the endpoint and running.

技术分享

The helpful post

Configure Dynamics 365 and Azure Service Bus Integration (using OneWay relay and listener)

原文:http://www.cnblogs.com/tcli/p/6661851.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!