Tuesday 29 January 2013

Customize Biztalk Service URL when Orchestration expose as webservice

Customize Biztalk Service URL when Orchestration expose as webservice

Step 1: Change Svc filename to new serviceName.











Step 2: Change URL in ReceiveLocation Properties at Biztalk Admin  Console.



Step 3 : Changes in ServiceDescription.xml , available at
C:\inetpub\wwwroot\WebsiteFolder\App_Data

ServiceName and PortType Name

Example :

<?xml version="1.0" encoding="utf-16"?>
<BtsServiceDescription xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Name="Company.Demo.Schemas" TargetNamespace="http://tempuri.org/" xmlns="http://schemas.microsoft.com/BizTalk/2006/01/Adapters/WCF/Publishing">
  <Description />
  <MessageType Name="Company.Demo.Schemas.Schema1#Schema1" FileName=".\Company.Demo.Schemas.Schema1.xsd" AssemblyLocation="C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Company.Demo.Schemas\v4.0_1.0.0.0__3b0fe90ef71d5ac4\Company.Demo.Schemas.dll" AssemblyName="Company.Demo.Schemas, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3b0fe90ef71d5ac4" TypeName="Company.Demo.Schemas.Schema1" TargetNamespace="http://Company.Demo.Schemas.Schema1" RootName="Schema1">
    <Description>Company.Demo.Schemas.Schema1, Company.Demo.Schemas, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3b0fe90ef71d5ac4</Description>
  </MessageType>
  <Service Name="Company">
    <Description>service "Company.Demo.Schemas.BizTalk_Orchestration4" port "Port_1"</Description>
    <PortType Name="Company">
      <Description>service "Company.Demo.Schemas.BizTalk_Orchestration4" port "Port_1"</Description>
      <Operation Name="Operation_1" MethodName="Operation_1">
        <Description>operation "Operation_1"</Description>
        <Input Name="__messagetype_Company_Demo_Schemas_Schema1" MessageType="Company.Demo.Schemas.Schema1#Schema1" />
        <Output Name="__messagetype_Company_Demo_Schemas_Schema1" MessageType="Company.Demo.Schemas.Schema1#Schema1" />
      </Operation>
    </PortType>
  </Service>
</BtsServiceDescription>

2 comments: