Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello sir ,I create a wcf service i want to use these service method and classes in ouer asp.net page . Sir Give me the Procedure for calling wcf service in button click event.
Thanks Sir
Arvind kumar Singh
Posted
Updated 21-Aug-17 0:25am

There are plenty of links that can help you out.
This[^] is the first one.
 
Share this answer
 
Comments
Member 13233111 21-Aug-17 5:06am    
Please check solution 2
First of all add a reference to your WCF service in your website like this

How to: Add a Reference to a Web Service[^]

this will generate proxy code with the name you've chosen so say you'd chosen to call your reference 'Acme' and it support a method called 'RegisterReferrer' with one string parameter, you can then use it like tis

C#
using(var proxy = new Acme()){
   proxy.RegisterReferrer(Request.ServerVariables["HTTP_REFERER"]);
}


Of cause you don't need the Request.ServerVariables["HTTP_REFERER"] bit i was just putting anyting in the string variable for the sake of the example
 
Share this answer
 
v2
Comments
CHill60 21-Aug-17 6:55am    
You've fallen foul of an old question being resurrected by someone who really wanted to ask a question
Thomas Nielsen - getCore 21-Aug-17 7:45am    
thx
CHill60 21-Aug-17 15:03pm    
By the way, that's not a down vote from me, I only posted the comment

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900