WCF and Service-Oriented Architectures: Listing 1

Creating multiple endpoints in your service config file.

<system.serviceModel>
  <services>
    <service name="Customers.ManageCustomer">
      <endpoint address="" binding="wsHttpBinding" name="PubicHttpBinding"
        contract="Customers.IManageCustomer">
        <identity>
          <dns value="localhost" />
        </identity>
      </endpoint>
      <endpoint  address="" binding="netTcpBinding"
        bindingConfiguration="" contract="Customers.IManageCustomer"
        name="PublicTcpBinding" />
      <host>
        <baseAddresses>
          <add baseAddress="http://mysite.com/Customers/ManageCustomer/" />
          <add baseAddress="net.tcp://mysite.com/Customers/ManageCustomer/" />
        </baseAddresses>
      </host>
    </service>
  </services>
  <behaviors>
    <serviceBehaviors>
      <behavior>
        <serviceMetadata httpGetEnabled="True"/>
        <serviceDebug includeExceptionDetailInFaults="False" />
      </behavior>
    </serviceBehaviors>
  </behaviors>
</system.serviceModel>

About the Author

Peter Vogel is a system architect and principal in PH&V Information Services. PH&V provides full-stack consulting from UX design through object modeling to database design. Peter tweets about his VSM columns with the hashtag #vogelarticles. His blog posts on user experience design can be found at http://blog.learningtree.com/tag/ui/.

comments powered by Disqus

Featured

  • Copilot AI Enhanced in Flurry of Visual Studio v17.12 Previews

    Since announcing Visual Studio 2022 v17.11 in August, Microsoft's dev team has been busy shipping a series of AI-heavy previews for the next edition.

  • How Visual Studio IntelliCode Helped Shape GitHub Copilot and Modern AI

    Microsoft has baked advanced GitHub Copilot tech into the latest edition of Visual Studio, but the aging IntelliCode feature of the IDE actually helped shape the modern experience.

  • Winnow Classification Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the Winnow classification technique. Winnow classification is used for a very specific scenario where the target variable to predict is binary and all the predictor variables are also binary.

  • VS Code Is Latest Microsoft Dev Tooling Weaponized by Threat Actors

    Cybersecurity threat actors keep leveraging Microsoft development tooling as attack vectors, with the new one coming via malware phishing.

Subscribe on YouTube