Book Image

SOA Patterns with BizTalk Server 2013 and Microsoft Azure

By : Richard Seroter, Mark T Brimble, Coen J Dijkgraaf, Mahindra Morar, Mark Brimble, Colin Dijkgraaf, Johann Cooper
Book Image

SOA Patterns with BizTalk Server 2013 and Microsoft Azure

By: Richard Seroter, Mark T Brimble, Coen J Dijkgraaf, Mahindra Morar, Mark Brimble, Colin Dijkgraaf, Johann Cooper

Overview of this book

Table of Contents (21 chapters)
SOA Patterns with BizTalk Server 2013 and Microsoft Azure Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Consuming WCF services from orchestrations


For BizTalk Server to play a full role within the service bus, it must be able to not only expose service endpoints but also easily consume them. Let's take a look at how to create an orchestration that accepts messages through the WCF-NetTcp receive location created earlier and also calls a WCF service that reveals a single endpoint based on Named Pipes.

We start by adding a new orchestration file named LookupOrderContact.odx to our existing BizTalk project in Visual Studio. The orchestration starts up when a new order arrives. Therefore, we should create a new orchestration message of type BizTalkSOA.Chapter3.OrderManagement.BizTalk.NewOrder_XML, named NewOrder_Input. After the order is received, we call an existing WCF service, which provides us with more details about the customer placing the order. What do we need to know to call the WCF service from our orchestration? If you guessed the following, you'd be right:

  • Schema contract(s) used

  • Message...