Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

Access service functionality from the host itself

 
 
Thread Tools Display Modes
Old 10-20-2007   #1 (permalink)
Mike
Guest


 

Access service functionality from the host itself

I need to access functionality of a service hosted in a windows
application, from the same windows application(host).

Should I create a proxy (with Add Service Reference) as I will do in the
case of a regular client?





Thanks




Old 10-22-2007   #2 (permalink)
sloan
Guest


 

Re: Access service functionality from the host itself


Simple Answer:

Yes.



Long Answer:

No,but you gotta do some stuff.


http://sholliday.spaces.live.com/Blo...842A!158.entry

This sample shows using NetNamedPipes, but also "Interface" development.

So your outside clients could use the proxy generation, and perhaps your local people can use the interfaces? I'm not sure.

check idesign.net downloads, there is a named pipe demo there that does auto proxy creation I think as well.

...

Actually, I'd check the idesign solution BEFORE checking mine. I think its closer to what you want.
THe key is that there is a way to code up the proxies "on the fly" without goign thru the generation tools.

http://www.idesign.net/idesign/Deskt...dex=5&tabid=11

In-Proc Hosting Essentials WCF lets the service execute in the client's process. This hosting mode is called In-Proc hosting. You should use named pipe binding, and you can even have a single config file for both the client and the host. This simple demo demonstrates in-proc hosting.



This google search might help as well:
http://www.google.com/search?hl=en&q...tractClient%22


"Mike" <mike@xxxxxx> wrote in message news:124DA913812F4FD9A124B87CE1B7C2E7@xxxxxx
I need to access functionality of a service hosted in a windows application, from the same windows application(host).

Should I create a proxy (with Add Service Reference) as I will do in the case of a regular client?





Thanks



Old 12-01-2007   #3 (permalink)
Tiago Halm
Guest


 

Re: Access service functionality from the host itself

Mike,

Check the NullTransport sample posted here [1]
It may suit your needs.

[1]
http://weblogs.asp.net/cibrax/archiv...t-for-wcf.aspx

Tiago Halm

"Mike" <mike@xxxxxx> wrote in message
news:124DA913812F4FD9A124B87CE1B7C2E7@xxxxxx
Quote:

>I need to access functionality of a service hosted in a windows
> application, from the same windows application(host).
>
> Should I create a proxy (with Add Service Reference) as I will do in the
> case of a regular client?
>
>
>
>
>
> Thanks
>
>
>
>

 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disabling Internet Access Functionality only from a Router RaymondSBaxterIII Vista networking & sharing 1 03-04-2008 03:03 PM
How do I access the command prompt in reduced functionality mode? Dirkpitt Vista account administration 4 03-16-2007 07:38 PM
Host service??? Andrew Marin Vista General 3 02-25-2007 09:53 AM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50