![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| | #4 (permalink) |
| | 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 Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Contract of Friendship | Chillout Room | |||