Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Server

Integrating BizTalk Server 2010 and Microsoft Dynamics CRM : Communicating from BizTalk Server to Dynamics CRM (part 6)

- How To Install Windows Server 2012 On VirtualBox
- How To Bypass Torrent Connection Blocking By Your ISP
- How To Install Actual Facebook App On Kindle Fire
3/29/2013 4:42:09 PM
Building the BizTalk components

In this set of steps, we consume the proxy service from our BizTalk project and create the map necessary for translating our canonical schema to the format expected by the service:

  1. Back in Visual Studio 2010, navigate to the existing BizTalk Server project. We will add a reference to this new WCF service and configure the BizTalk component needed to call the proxy service. Right-click the BizTalk project and choose to Add and then Add Generated Items.

  2. Walk through the BizTalk WCF Service Consuming wizard and select the metadata source to be a MEX endpoint. On the following page, set the address to the web address of our WCF service:

  3. Complete the wizard and observe the new artifacts included in our solution. This includes binding files, schemas, and an orchestration:

  4. Right-click the BizTalk project and add a new item of type Map and name the map Customer_To_CrmContactProxy.btm.

  5. Set the source of the map to the Customer_XML and the destination to Chapter3-DynamicsCRM.AccountInt.CrmCustomerProxy_chapter3_service and choose the AddCustomer root node.

  6. Connect the applicable source nodes to the corresponding destination field.

  7. We are consuming this service directly from BizTalk messaging and therefore we do not need to build an orchestration to call the proxy service. Build and deploy the BizTalk project to the BizTalk Server.

This set of steps produced the BizTalk artifacts we needed to call the façade service sitting in front of Dynamics CRM. As opposed to the previous exercises where we had to creatively transform untyped schemas, this set of service schemas are strongly typed and easy to work with.

Configuring the BizTalk endpoints

Up next, we are going to configure the BizTalk messaging components that call the service and route the response:

  1. Open the BizTalk Administration console and ensure that the new proxy service schemas are part of the Chapter3 application.

  2. When we created a service reference to the proxy service, the BizTalk WCF Service Consuming wizard generated a binding file that defines a send port capable of calling the proxy service. Right-click the Chapter3 application and choose to import a binding and select the CrmCustomerProxy_Custom.BindingInfo.xml file included in our BizTalk project.

  3. Open the generated send port. There are no changes needed to the port's configuration, but we will add our new map, and a filter, to this send port. On the Outbound Maps tab of the port configuration, select the Contact_To_CrmContactProxy map.

  4. Switch to the Filters tab and add a subscription for the message type of the Customer_XML type.

  5. Our last configuration item is the send port, which listens for the response from this service call and sends a message to the file system. Create a new one-way, static send port. Set the adapter to FILE and set the location where the send port will send the response message. Go to the Filters tab of the port configuration. Here, we will add a subscription to the response message type.

  6. Un-enlist all the previously defined send ports and orchestrations in order to eliminate any side effects from using the same Customer_XML message type as input.

  7. Send a file containing a customer definition into BizTalk Server:

  8. As a result, we should see our new record in Dynamics CRM and a file on disk that holds that record's identifier.

In this exercise, we showed a straightforward way to build a façade, or proxy, service that sits in front of Dynamics CRM 2011 and exposes an easy to use, typed interface. The underlying proxy service takes advantage of the Dynamics CRM SDK so that at no point did we need to work with the base Entity object.
Other -----------------
- Extending Dynamics AX 2009 (part 3) - Creating Labels, Adding Content to the Wizard
- Extending Dynamics AX 2009 (part 2) - Creating a New Wizard
- Extending Dynamics AX 2009 (part 1)
- System Center Configuration Manager 2007 : Operating System Deployment - Native Mode
- System Center Configuration Manager 2007 : Operating System Deployment - Post Deployment Tasks, Troubleshooting
- System Center Configuration Manager 2007 : Operating System Deployment - Drivers
- System Center Configuration Manager 2007 : Operating System Deployment - Tips and Techniques
- Understanding Network Services and Active Directory Domain Controller Placement for Exchange Server 2007 : Global Catalog and Domain Controller Placement
- Understanding Network Services and Active Directory Domain Controller Placement for Exchange Server 2007 : Configuring DNS to Support Exchange Servers, Troubleshooting DNS Problems
- Understanding Network Services and Active Directory Domain Controller Placement for Exchange Server 2007 : Understanding DNS Requirements for Exchange Server 2007
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
- First look: Apple Watch

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
programming4us programming4us
Popular tags
Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 windows Phone 7 windows Phone 8
programming4us programming4us
 
programming4us
Natural Miscarriage
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Game Trailer