Convert svc URL to REST API URL

When we publish BizTalk as REST Service, then it’s generate as below by default.


when we apply REST verb with this URL, then it’s become as below for Business User.

For GET Method:

For POST Method:


We can change the Service1 name with some other name but can’t change the .svc.

So, for outer world (Consumer), it’s look like they are consuming the WCF Service instead of REST Service.

So, making feel like as REST Service we need to do some small thing as below:

  • Install Microsoft Rewrite URL module 2.0 (it’s freeware) for IIS to accept the rewrite tags in service configuration files.

  • Add below rewrite module entries in service web.config file to enable us to use api name in service URL.




<rule name=”TestService1”>

<match url=”/Service1(.*)” />

<action type=”Rewrite” url=”Service1.svc/{R:0}” />


<add input=”{REQUEST_METHOD}” pattern=”GET” />



                     <rule name=”TestService2”>

<match url=”/Service2(.*)” />

<action type=”Rewrite” url=”Service2.svc/{R:0}” />


<add input=”{REQUEST_METHOD}” pattern=”POST” />





  • URL will refer as below instead of Service1.svc at postfix.

GET Method:

For POST Method:


BizTalk Server Monitoring

One comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s