Last post Sep 03, 2013 11:12 PM by Amy Peng - MSFT
Aug 28, 2013 07:59 AM|p.priyank|LINK
Hi i have an WCF .svc servicefile hosted in an web application project and a class library project which contains service and operation contract. I also have an silverlight application, when i reference the .svc file it create the properties in the reference
file, i dont want that to happen, i dont know how this is happening suddenly.
Aug 28, 2013 08:07 AM|webcodeexpert|LINK
Read the below mentioned article to have an idea: Hope it help u.
How to create and consume WCF Services in asp.net ?
WCF Service to bind,insert,edit,update,delete from sql server database in asp.net C#
Aug 30, 2013 04:34 AM|Illeris|LINK
What do you mean by "reference file"? What is your problem, and what do you want to realize?
Sep 03, 2013 11:12 PM|Amy Peng - MSFT|LINK
When we add the service reference, it will generate a client proxy for your service.
If you do not want that happen, then you can call wcf service without adding services reference.
Here is an example, please try to refer to:
ChannelFactory<MyServiceContract> factory = null;
BasicHttpBinding binding = new BasicHttpBinding();
EndpointAddress address = new EndpointAddress("http://localhost:4684/Service1.svc");
factory = new ChannelFactory<MyServiceContract>(binding, address);
MyServiceContract channel = factory.CreateChannel();