Consuming WCF Service in BizTalk 2010 Orchestration


In this article I will show how to consume WCF Services in BizTalk 2010 Orchestration in a Step by Step manner, Before consuming WCF in BizTalk, you should be aware of how to create and host WCF services.

Consuming WCF Service in BizTalk 2010 Orchestration
First create the WCF service , this service takes a simple string as parameter and gives the response , as shown below, the below screen shots shows how to create a WCF application service and how to host it into IIS
Refer How to create and host WCF service for more detail

Below snapshots show basic idea of creating WCF and hosting it.

image1

image2

Copy the below code by opening the project in windows explorer, create a virtual directory under inetpub/wwwroot/WCFHelloWorld and paste it .

image3





1. Create an empty BizTalk 2010 project

image4

2. Right click the project

image5

image6

3. Create new Orchestration

image7


3. Add Consume WCF Service

image8

4. Click Next

image9

5. Select Metadata Exchange (MEX) endpoint

image10


6. Paste the metadata address and click Get and Next

image11

7. Import the WCF service metadata summary

image12



8. Click Finish

image13


9. These files are created

image14
10. The port type gets created


image15



11. Create new configured port near the port surface


image16



12. Click Next to create Port

image17


13. Select 'Use an existing Port type'


image18


14. Click next and Click Finish


image19


15. Create input schema message


image20



16. Create a Receive Port - which keeps listening to the input file message
17. Create a Receive Shape - to receive the input message
18. Create transform message to transform the input message to request message


image21

19. Create a Send shape to send the Request message to WCF port
20. Create a Receive shape to get the Response message from WCF port
21. Create a Send shape to send the Response message to output File port

image22


22. Before performing the above steps create these messages:

image23

23. Build your project and deploy it
24. Configure your application in BizTalk Administrator console
25. Create folders: IN and OUT
26. Place this input file in IN folder (RecievePort1 in Orchestration)

image24

27. You get this output response file in OUT folder

image25


Comments

Author: Kamesh Naidu04 Jan 2016 Member Level: Bronze   Points : 2

Hi devin,
Consuming WCF Service in BizTalk 2010 Orchestration In this article
I have confused on last stage of orchestration i.e., when the last stage of send shape which message i will give here. I am confused here please help me thanks



  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: