Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Applied Architecture Patterns on the Microsoft Platform

You're reading from   Applied Architecture Patterns on the Microsoft Platform An in-depth scenario-driven approach to architecting systems using Microsoft technologies

Arrow left icon
Product type Paperback
Published in Sep 2010
Publisher Packt
ISBN-13 9781849680547
Length 544 pages
Edition 1st Edition
Arrow right icon
Toc

Table of Contents (26) Chapters Close

Applied Architecture Patterns on the Microsoft Platform
Credits
Foreword
About the Authors
About the Reviewer
1. Preface
1. Solution Decision Framework FREE CHAPTER 2. Windows Communication Foundation and Windows Workflow 4.0 Primer 3. Windows Server AppFabric Primer 4. BizTalk Server Primer 5. SQL Server and Data Integration Tools Primer 6. Windows Azure Platform Primer 7. Simple Workflow 8. Content-based Routing 9. Publish-Subscribe 10. Repair/Resubmit with Human Workflow 11. Remote Message Broadcasting 12. Debatching Bulk Data 13. Complex Event Processing 14. Cross-Organizational Supply Chain 15. Multiple Master Synchronization 16. Rapid Flexible Scalability 17. Low-Latency Request-Reply 18. Handling Large Session and Reference Data 19. Website Load Burst and Failover 20. Wrap Up

Example solution


To get you up and running with workflow services, let's set up a simple example. This will be a Windows Workflow that is exposed as a WCF service. This example will use Visual Studio to host the workflow and expose WCF endpoints. The service will accept a simple string and return an updated string.

  1. 1. Create the new project inside Visual Studio 2010.

    • Go to File | New Project.

    • Select Workflow on the tab on the right under Visual C#.

    • Select the WCF Workflow Service Application project type.

    • Name it to IntroToWFService.

    • Click on OK.

  1. 2. Create local variables to store the inbound text and set the outbound text of the service.

    • Click on the Sequence shape to ensure it is the active window.

    • Click on the Variables tab on the bottom left.

    • Add a variable named InternalInputText of type String to store the original inbound text.

    • Add a variable named InternalOutputText of type String to create the response string to be returned from the service.

  1. 3. Define the Request and Response Contract because...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime