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

Hiding the SVC filename extension


With IIS7 and higher versions, you can download the URL Rewrite Module from http://www.iis.net/learn/extensions/url-rewrite-module/using-the-url-rewrite-module. Note that there are two versions available, one for 32 bit systems and the other for 64 bit systems.

Next, you will need to create an inbound rule to make the existing URL (http://localhost/sales/service1.svc/customer/122/salesorder/3243) look like http://localhost/sales/customer/122/salesorder/3243.

Here is the rule definition used to rewrite the URL using the URL Rewrite task under the default website:

 <rewrite>
    <rules>
        <rule name="Remove Service1.svc">
           <match url="^sales/(.*)$" />
           <action type="Rewrite" url="sales/service1.svc/{R:1}" />
        </rule>
    </rules>
</rewrite>

Once the rules have been applied, you should be able type the following URL resource location http://localhost/sales/customer/122/salesorder/3243...