Results 1 to 3 of 3

Thread: WCF Custome Proxy

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2007
    Location
    Mumbai
    Posts
    94

    WCF Custome Proxy

    Hi Friends
    How to Invoke WCF Methods through Cutome Proxy class.
    (In My Project I had developed Web services and I had used svcutil.exe to generate Proxy class So that I can Access methods without setting Web reference from vs 2008, Now I want to replace these web services with WCF Methods and I want to invoke these WCF Methods Conditionally) so Please Provide help for the same
    thanks in advance
    - @jay S
    Last edited by Ajx123; Feb 11th, 2010 at 01:34 AM.

  2. #2
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: WCF Custome Proxy

    you can still use svcutil.exe (or Add Service Reference in Visual Studio) to generate proxy classes for WCF services in the same way
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: WCF Custome Proxy

    OK first, that's a false assumption. By creating a proxy class, you're effectively creating a web reference. A web reference, when added in Visual Studio, uses svcutil/wsdl.exe for you behind the scenes.

    The web methods are available for you to use. All you have to do is instantiate the class and use the methods available.

    Code:
    MyProxyClass client = new MyProxyClass("MYBasicHttpEndpoint", "http://machinename/service1.svc");
    client.SayHelloWorld();

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width