Click here to Skip to main content
Click here to Skip to main content

Tagged as

Convert Existing BizTalk WCF Service from “http” Binding to “netTCP” Binding

, 7 Jul 2014 CPOL
Rate this:
Please Sign up or sign in to vote.
It gives step by step approach.

Introduction

Need to convert existing BizTalk WCF services with “http” bindings to “netTCP” bindings.

Background

After the introduction of WAS (Windows Process Activation Service) with IIS 7.0 (and later versions) it is possible to for IIS  to provides support for other protocols besides HTTP, such as TCP,MSMQ and Named Pipes etc. So by making use of this feature we can host netTCP WCF services also on IIS.

If the BizTalk receive location already configured with WCF-Service (with http bindings) and if we need to convert it to netTCP bindings . Then after following below steps we can do so.

Solution

We assume that existing webserives are WCF services with BasicHttpBindings. Now we need to concert then to netTCPBindings. Following are the steps to carry out this.

  1. Following two services should be running.
    1. Net.Tcp Listener Adapter
    2. Net.Tcp Port Sharing Service

  1. Modify Web.config files of services.

    Configuration --> system.serviceModel--> bindings

    <netTcpBinding>
            <binding name="NetTcpBinding_MyTestService" closeTimeout="00:01:00"
                openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
                transactionFlow="false" transferMode="Streamed" transactionProtocol="OleTransactions"
                hostNameComparisonMode="StrongWildcard" listenBacklog="10"
                maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxConnections="100"
                maxReceivedMessageSize="2147483647">
              <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
                   maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />  
              <reliableSession ordered="true" inactivityTimeout="00:10:00"
                  enabled="false" />
              <security mode="None">
                <transport clientCredentialType="Windows" protectionLevel="None" />
                <message clientCredentialType="Windows" />
              </security>
            </binding>
    </netTcpBinding>

    Configuration --> system.serviceModel--> client

    <endpoint address="net.tcp://localhost/TestServices/MyTestService.svc"
                    binding="netTcpBinding" bindingConfiguration="NetTcpBinding_MyTestService"
                    contract="TestServiceProxy.MyTestService" 
    name="NetTcpBinding_MyTestService ">
            
    </endpoint>
    1. Open web.config file of service (which is currently on http binding).
    2. Add following lines under
    3. Add following lines under
    4. Save web.config file.
  2. Enable net.tcp protocol on service by doing following steps.
    1. Navigate to Service and open Advance Settings.
    2. On field "Enabled Protocals" write "http,net.tcp" as shown below.

  1. BizTalk Server change with netTCP serice.
    1. Add host instance to WCF-netTCP adapter handler (Send and Receive both). If not exists.

    2. Update BizTalk receive location.

      Update Configuration from http://localhost/TestServices/MyTestService.svc to net.tcp://localhost/TestServices/MyTestService.svc as shown below

  2. Enable BizTalk Receive location
  3. Now try to browse the service, it should be running.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

KundanKarma
Architect iGATE Global technology solutions
India India
I am BizTalk Server Technology Specialist.I have more than 8+ years of experience on BizTalk Server.I have worked on almost all the versions of BizTalk server 2004/2006/2006R2/2009/2010/2013.
 
I played multiple roles (Developer/Tech.Lead/Integration Architect) on Several BizTalk Projects.
 
I have keen interest in developing BizTalk-Integration solutions using SOA,WCF,ESB,EDI, Host Integration Server,Windows Azure BizTalk Services.
Follow on   Google+   LinkedIn

Comments and Discussions

 
GeneralMy vote of 5 PinmemberLydia Gabriella16-Jul-14 10:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web02 | 2.8.141015.1 | Last Updated 7 Jul 2014
Article Copyright 2014 by KundanKarma
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid