Click here to Skip to main content
11,577,258 members (58,276 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C#3.0
hi all..,

i'm new in WPF &Wcf.

I'm create Wpf1 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:16pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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:[^].

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:[^],[^],[^].

Now, how to use WCF? I would advise to use WCF self-hosted in the service application. Please see:[^].

To understand how can it look along with the clients, please see this article on WCF hosting and consuming:[^].

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 | :)


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

  Print Answers RSS
0 DamithSL 155
1 Afzaal Ahmad Zeeshan 125
2 OriginalGriff 115
3 Richard MacCutchan 100
4 Abhinav S 90
0 OriginalGriff 820
1 Sergey Alexandrovich Kryukov 631
2 Abhinav S 528
3 F-ES Sitecore 420
4 Suvendu Shekhar Giri 365

Advertise | Privacy | Mobile
Web04 | 2.8.150603.1 | Last Updated 4 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100