Click here to Skip to main content
15,886,518 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.6K   3.6K   23  
An overview of a number of different ways of generating proxies for using WCF Services.
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:2.0.50727.3082
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace ProxyGenerationClient.ProxyServiceReference {
    
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.ServiceModel.ServiceContractAttribute(ConfigurationName="ProxyServiceReference.IProxyServ")]
    public interface IProxyServ {
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IProxyServ/HelloWorld", ReplyAction="http://tempuri.org/IProxyServ/HelloWorldResponse")]
        void HelloWorld();
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    public interface IProxyServChannel : ProxyGenerationClient.ProxyServiceReference.IProxyServ, System.ServiceModel.IClientChannel {
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    public partial class ProxyServClient : System.ServiceModel.ClientBase<ProxyGenerationClient.ProxyServiceReference.IProxyServ>, ProxyGenerationClient.ProxyServiceReference.IProxyServ {
        
        public ProxyServClient() {
        }
        
        public ProxyServClient(string endpointConfigurationName) : 
                base(endpointConfigurationName) {
        }
        
        public ProxyServClient(string endpointConfigurationName, string remoteAddress) : 
                base(endpointConfigurationName, remoteAddress) {
        }
        
        public ProxyServClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(endpointConfigurationName, remoteAddress) {
        }
        
        public ProxyServClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(binding, remoteAddress) {
        }
        
        public void HelloWorld() {
            base.Channel.HelloWorld();
        }
    }
}

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