Sometimes when we orchestrate our services, we need invoke or consume our services whether it is WCF or web service. Before a service can be used, it must be generated into schema file from service metadata so it can use for configure port object in BizTalk. Ok, I'll show you how to generate wcf service into BizTalk orchestration project. I assume that you have create a biztalk orchestration project before. In this tutorial, I use Microsoft Biz Talk Server 2010 and Visual Studio 2010 as IDE.
First, right click from your BizTalk orchestration and select Add -> Add Generated Items
And then select Consume WCF Service. It uses for generate schema from wsdl address if you use WCF or web service. If you have another format input, you can choose other menus.
After that, It will open WCF Service Consuming wizard. Choose Metadata Exchange (MEX) end point as metadata source for get wsdl address schema from running service or if you have wsdl file schema you can choose metadata files.
Input your wsdl service address and click get button. It will get the wsdl schema from your service and then click next button.
Input the namespace of your generated schema and then click import button. It will generate automatically your schema file for orchestration port type usage.
Thanks for reading.. :)
Related Blog Post : Orchestration of Service in Service Oriented Architecture