Click here to Skip to main content
Sign Up to vote bad
good
See more: C#3.0
hi all..,
 
i'm new in WPF &Wcf.
 
I'm create Wpf1 Application.next i add one Wcf Service.
 
then again create one Wpf2 Application .this(Wpf2) application call to that Wcf service.
 
how to do ?
Posted 3 Oct '12 - 19:16


1 solution

First of all, why would you entangle WPF and WCF in this question? These things are unrelated, don't mix all things together. Ever heard of separation of concerns? Please see:
http://en.wikipedia.org/wiki/Separation_of_concerns[^].
 
Besides, even though you can host a WCF service in a windowed or other interactive application (again, it does not matter if it is WPF or not), this is not an adequate form of application user as a service (but it's a good idea to have such interactive version of the same application, as debugging is a whole lot easier). The adequate form of application hosting any kind of services is the Windows Service:
http://en.wikipedia.org/wiki/Windows_services[^],
http://msdn.microsoft.com/en-us/library/ms685141.aspx[^],
http://msdn.microsoft.com/en-us/library/d56de412%28v=vs.110%29.aspx[^].
 
Now, how to use WCF? I would advise to use WCF self-hosted in the service application. Please see:
http://msdn.microsoft.com/en-us/library/ee939340.aspx[^].
 
To understand how can it look along with the clients, please see this article on WCF hosting and consuming:
http://msdn.microsoft.com/en-us/library/bb332338.aspx[^].
 
This should be enough to get started. For some good code sample, you can also perform the CodeProject article search. But not mix it with WPF. Smile | :)
 
—SA
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 318
1 Sergey Alexandrovich Kryukov 143
2 Mohammed Hameed 123
3 Santhosh G_ 108
4 Lohith Korupolu 85
0 Sergey Alexandrovich Kryukov 8,266
1 OriginalGriff 6,306
2 CPallini 3,528
3 Rohan Leuva 2,703
4 Maciej Los 2,234


Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 4 Oct 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid