|
-
Feb 11th, 2010, 01:27 AM
#1
Thread Starter
Lively Member
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.
-
Feb 11th, 2010, 10:06 AM
#2
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
-
Feb 17th, 2010, 06:14 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|