Click here to Skip to main content
15,879,474 members
Articles / Programming Languages / XML

WCF Proxy Generation Options

Rate me:
Please Sign up or sign in to vote.
3.57/5 (5 votes)
11 Feb 2009CPOL7 min read 129.4K   3.6K   23  
An overview of a number of different ways of generating proxies for using WCF Services.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.serviceModel>
    <services>
      <service name="ProxyGeneration.ProxyServ" behaviorConfiguration="ProxyGeneration.Service1Behavior">
        <endpoint address ="" binding="wsHttpBinding" contract="ProxyGeneration.IProxyServ"/>
        <endpoint address="mex" binding="mexHttpBinding" contract="ProxyGeneration.IProxyServ"/>
        <host>
          <baseAddresses>
            <add baseAddress="http://localhost:8080/ProxyServ"/>
          </baseAddresses>
        </host>
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="ProxyGeneration.Service1Behavior">
          <serviceMetadata httpGetEnabled="True"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>
</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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


Written By
Software Developer (Senior)
United Kingdom United Kingdom
Chris is a full time software developer in London, UK.
He has a BSc in computer science and is busy taking courses in the MCTS stream.

Comments and Discussions