wcf-binding

WCF behind a public reverse proxy which is used for traffic encryption

北城余情 提交于 2021-02-07 06:47:14
问题 I have a Silverlight application that connects to a WCF service. Under the basic configuration I am used to, there's no problem connecting this application to its corresponding WCF service. However, recently, one of my clients started using an Apache reverse proxy. This proxy is the public server and it's only used to encrypt HTTP traffic via SSL (HTTPS) going between the client and it. This proxy passes all traffic from it to the actual web server that hosts my application. The traffic

WCF ContractFilter Mismatch when enabling Reliable Session

﹥>﹥吖頭↗ 提交于 2021-01-29 07:41:51
问题 I have a WCF service hosted in a Windows Service. I then have a GUI(client) that then communicates to this service. It has recently been reported that communication with the service stops after being idle for 10 minutes. I have done a bit of research and it looks like the service is discarding the connection due to inactivity. Therefore I want to increase the receive timeout and enable reliable sessions and set an inactivityTimeout to be longer. However when I do this in both the WCF service

Configuring WCF client binding to use X509 certificate in dotnet core 2.2

蹲街弑〆低调 提交于 2021-01-27 07:39:09
问题 I'm trying to convert an old WCF client to dotnet core. I successfully generated my proxies from the wsdl and have been trying to configure them so I can successfully call the endpoint. It appears, based on some googling, that under dotnet core I need to configure my WCF client from code. Here's the WCF configuration section from the web.config of the old application: <system.serviceModel> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> <behaviors> <endpointBehaviors>

Configuring WCF client binding to use X509 certificate in dotnet core 2.2

为君一笑 提交于 2021-01-27 07:34:43
问题 I'm trying to convert an old WCF client to dotnet core. I successfully generated my proxies from the wsdl and have been trying to configure them so I can successfully call the endpoint. It appears, based on some googling, that under dotnet core I need to configure my WCF client from code. Here's the WCF configuration section from the web.config of the old application: <system.serviceModel> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> <behaviors> <endpointBehaviors>

WCF Client: First call fails, second call succeeds

て烟熏妆下的殇ゞ 提交于 2020-12-06 06:41:23
问题 I have a REST webservice which calls an external SOAP webservice using a WCF client. This REST webservice is hosted in IIS on our test environment. When calling the REST webservice, which then calls the external webservice (using the WCF client), after the REST webservice has been restarted in IIS the first call by the WCF client throws a SecurityNegotiationException . The second call to the REST webservice, and indirectly and all subsequent calls succeed. To illustrate this, here's an image:

WCF Client: First call fails, second call succeeds

ぐ巨炮叔叔 提交于 2020-12-06 06:40:47
问题 I have a REST webservice which calls an external SOAP webservice using a WCF client. This REST webservice is hosted in IIS on our test environment. When calling the REST webservice, which then calls the external webservice (using the WCF client), after the REST webservice has been restarted in IIS the first call by the WCF client throws a SecurityNegotiationException . The second call to the REST webservice, and indirectly and all subsequent calls succeed. To illustrate this, here's an image:

WCF: How to get Binding object from configuration

拥有回忆 提交于 2020-12-01 09:17:13
问题 I would like to get Binding object from web.config or app.config. So, this code works: wcfTestClient = new TestServiceClient("my_endpoint", Url + "/TestService.svc"); but I would like to do the following: Binding binding = DoSomething(); wcfTestClient = new TestServiceClient(binding, Url + "/TestService.svc"); I am interested in DoSomething() method, of course. 回答1: You can instantiate a binding giving a binding configuration name from App.config/Web.config. http://msdn.microsoft.com/en-us

WCF: How to get Binding object from configuration

孤街醉人 提交于 2020-12-01 09:14:23
问题 I would like to get Binding object from web.config or app.config. So, this code works: wcfTestClient = new TestServiceClient("my_endpoint", Url + "/TestService.svc"); but I would like to do the following: Binding binding = DoSomething(); wcfTestClient = new TestServiceClient(binding, Url + "/TestService.svc"); I am interested in DoSomething() method, of course. 回答1: You can instantiate a binding giving a binding configuration name from App.config/Web.config. http://msdn.microsoft.com/en-us

WCF: How to get Binding object from configuration

余生长醉 提交于 2020-12-01 09:13:34
问题 I would like to get Binding object from web.config or app.config. So, this code works: wcfTestClient = new TestServiceClient("my_endpoint", Url + "/TestService.svc"); but I would like to do the following: Binding binding = DoSomething(); wcfTestClient = new TestServiceClient(binding, Url + "/TestService.svc"); I am interested in DoSomething() method, of course. 回答1: You can instantiate a binding giving a binding configuration name from App.config/Web.config. http://msdn.microsoft.com/en-us

How to set Visibility of Label which is bound to Textbox?

安稳与你 提交于 2020-11-29 19:15:16
问题 I have three TEXTBOX which are bound to LABEL. When I type something in TEXTBOX then TextBox text value is set to Label. Problem is i want to set Visiblity of LABEL to COLLAPSED when text box is blank and vice versa . how to do it using Visibility Convert in WPF? in .XAML file: <TextBox Name="txtEmail1" Grid.Column="1" Grid.Row="0" Text="Email" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Stretch"/> <TextBox Name="txtEmail2" Grid.Column="1" Grid.Row="0" Text="Email2" Visibility