Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - using local implimentation of contract

 
 
Old 03-04-2006   #1 (permalink)
using local binding


 
 

using local implimentation of contract

is there an option like using "http binding" local binding witch run on the
local machine without need to do any cange in the clint side, only in the
config file.

My System SpecsSystem Spec
Old 03-04-2006   #2 (permalink)
Clemens Vasters [MSFT]


 
 

Re: using local implimentation of contract

I am not sure I understand what you mean. Bindings are separate from
addresses and hence there isn't really something like a local binding. Could
you explain a bit more what you mean?

(Look at this first
http://msdn.microsoft.com/library/en...introtowcf.asp

Regards
Clemens


"using local binding" <using local binding@discussions.microsoft.com> wrote
in message news:3FC5F036-CA02-4F7F-A197-A96E0D7E45DE@microsoft.com...
> is there an option like using "http binding" local binding witch run on
> the
> local machine without need to do any cange in the clint side, only in the
> config file.



My System SpecsSystem Spec
Old 03-04-2006   #3 (permalink)
using local binding


 
 

Re: using local implimentation of contract

Hi Clemens,
I want to call onew time to webServer over the net using indigo and the
secound time to you the same code (with Indigo) but to call local dll with
out the need to open any port on the local machine.
i wish i will have only to chnage the config file of the application the do
so.


"Clemens Vasters [MSFT]" wrote:

> I am not sure I understand what you mean. Bindings are separate from
> addresses and hence there isn't really something like a local binding. Could
> you explain a bit more what you mean?
>
> (Look at this first
> http://msdn.microsoft.com/library/en...introtowcf.asp
>
> Regards
> Clemens
>
>
> "using local binding" <using local binding@discussions.microsoft.com> wrote
> in message news:3FC5F036-CA02-4F7F-A197-A96E0D7E45DE@microsoft.com...
> > is there an option like using "http binding" local binding witch run on
> > the
> > local machine without need to do any cange in the clint side, only in the
> > config file.

>
>
>

My System SpecsSystem Spec
Old 03-04-2006   #4 (permalink)
Roman Kiss [MVP]


 
 

Re: using local implimentation of contract

- that's a simple example having a NULL custom binding to avoid a message
serialization/desialization in the same appDomain contract.
It will be usefull for worflow activiies also.

Roman





"Clemens Vasters [MSFT]" <clemensv@microsoft.com> wrote in message
news:OirJ0jYKGHA.3912@TK2MSFTNGP10.phx.gbl...
> Ok, that makes more sense. You cannot have WCF call straight into a DLL.
> You still have to create and host a ServiceHost for that local service,
> even if that code is within the same process, however, that is not
> terribly difficult to do, especially if you have a service configuration
> section as shown further below. Simplest form for hosting a single service
> (requiring config) in a Console/WinForms app, in C#:
>
> static void Main(string[] args)
> {
> using(ServiceHost host = new ServiceHost(typeof(MyService)))
> {
> host.Open();
> // whatever you'd usually have in Main(), such as running a
> WinForms app
> host.Close();
> }
> }
>
> The best binding for any such in-process or on-machine case is likely
> NetNamedPipeBinding.
>
> You can construct any proxy or the ChannelFactory passing a configuration
> name, which references the "name" attribute of a
> configuration/system.servideModel/client/endpoint node as shown below.
>
> <client>
> <endpoint address="net.pipe://localhost/myep" name="myConfig"
> binding="netNamedPipeBinding"
> contract="MyAssembly.IMyContract, MyAssembly"/>
> </client>
>
> If the service you are talking to sits elsewhere, you only need to change
> the config to use a different address and binding, such as:
>
> <client>
> <endpoint address="http://example.com/someep" name="myConfig"
> binding="wsHttpBinding"
> contract="MyAssembly.IMyContract, MyAssembly"/>
> </client>
>
> So for the ChannelFactory<MyAssembly.IMyContract> case, you'd construct
> the factory simply like this: new
> ChannelFactory<MyAssembly.IMyContract>("myConfig") and whatever your
> config says is what WCF uses.
>
>
> For the server (or service) side, the configuration is keyed by the
> service class name. You can add two endpoints for the very same contract
> and support the local access and the remote access scenario at the same
> time, if you like, or just select one.
>
> <services>
> <service type="MyService.MyService,MyServer">
> <endpoint address="net.pipe://localhost/myep"
> binding="netNamedPipeBinding"
> contract="MyAssembly.IMyContract, MyAssembly"/>
> <endpoint address="http://example.com/someep"
> binding="wsHttpBinding"
> contract="MyAssembly.IMyContract, MyAssembly"/>
> </service>
> </services>
>
> Did that help?
> Clemens
>
>
> "using local binding" <usinglocalbinding@discussions.microsoft.com> wrote
> in message news:9819A8D9-3A4B-40D0-9BC7-4D2663D1D7EB@microsoft.com...
>> Hi Clemens,
>> I want to call onew time to webServer over the net using indigo and the
>> secound time to you the same code (with Indigo) but to call local dll
>> with
>> out the need to open any port on the local machine.
>> i wish i will have only to chnage the config file of the application the
>> do
>> so.
>>
>>
>> "Clemens Vasters [MSFT]" wrote:
>>
>>> I am not sure I understand what you mean. Bindings are separate from
>>> addresses and hence there isn't really something like a local binding.
>>> Could
>>> you explain a bit more what you mean?
>>>
>>> (Look at this first
>>> http://msdn.microsoft.com/library/en...introtowcf.asp
>>>
>>> Regards
>>> Clemens
>>>
>>>
>>> "using local binding" <using local binding@discussions.microsoft.com>
>>> wrote
>>> in message news:3FC5F036-CA02-4F7F-A197-A96E0D7E45DE@microsoft.com...
>>> > is there an option like using "http binding" local binding witch run
>>> > on
>>> > the
>>> > local machine without need to do any cange in the clint side, only in
>>> > the
>>> > config file.
>>>
>>>
>>>

>
>



My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Contract of Friendship Chillout Room


Vista Forums 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 Ltd

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