Click here to Skip to main content
15,908,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created a wcf service(on local) which is successfully consume in web and console application but,

1. When I was trying to consume it in Windows Service by adding reference of wcf through URL I didnt get any access to DataContract in WCF.

2. Add reference to dll of WCF in Windows Service works fine, I dont want access WCF thorugh DLL.

In future service is hosted on IIS, this can access with any client through url

Please, Help me to consume WCF in Windows Service.
Posted
Comments
Andy411 14-May-12 1:50am    
What kind of error message did you get in point 1)?
At the moment I don't see any reason, why a Windows service should not be able to consume a WCF service.
I did something similar a few years ago and it worked. (Hope it still works, 'cause it was at my old company ;-))
pankaj88 15-May-12 12:02pm    
thanks for reply
I solved problem
Andy411 16-May-12 1:45am    
Maybe you can explain the solution to help others and also please mark your question as solved.
Member 11451730 22-Sep-15 18:33pm    
yes, it could help me to solve my problem.

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