wcf-security

WCF Error: The message with Action cannot be processed at the receiver

自古美人都是妖i 提交于 2020-01-01 07:24:30
问题 I get famous error in web application, which is WCF client: The message with Action cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None). Several

How to enable HTTPS in WCF service

喜夏-厌秋 提交于 2019-12-29 07:58:53
问题 I have hosted my service on IIS. Hosted service has applied SSL certificate and on browse of URL, it appears with HTTPS. But, when i do consume this URL into client application (ASP.NET WEB Application) then, it allows to add https//domain/service.svc but, on client configuration, it appears the URL as http and not https . when do manual change then, it gives error as follow: The provided URI scheme 'https' is invalid; expected 'http'. Below is the WCF service configuration (hosted on IIS):

How to enable HTTPS in WCF service

佐手、 提交于 2019-12-29 07:58:13
问题 I have hosted my service on IIS. Hosted service has applied SSL certificate and on browse of URL, it appears with HTTPS. But, when i do consume this URL into client application (ASP.NET WEB Application) then, it allows to add https//domain/service.svc but, on client configuration, it appears the URL as http and not https . when do manual change then, it gives error as follow: The provided URI scheme 'https' is invalid; expected 'http'. Below is the WCF service configuration (hosted on IIS):

Can I setup an IP filter for a WCF Service?

混江龙づ霸主 提交于 2019-12-29 01:15:43
问题 I'm modifying my WCF API to include a new service that should be exposed to internal IP addresses only. All of the services in my API are available in SOAP, POX and JSON. What I'm looking for is a behavior or something that allows me to implement a simple IP address filter, to process requests from internal IP's and deny everything else. I'd like it to work in configuration, because all the other services in the API should remain available to the Internet. I did some googling but can't find

Can I setup an IP filter for a WCF Service?

最后都变了- 提交于 2019-12-29 01:15:06
问题 I'm modifying my WCF API to include a new service that should be exposed to internal IP addresses only. All of the services in my API are available in SOAP, POX and JSON. What I'm looking for is a behavior or something that allows me to implement a simple IP address filter, to process requests from internal IP's and deny everything else. I'd like it to work in configuration, because all the other services in the API should remain available to the Internet. I did some googling but can't find

Configure wcf service programmatically

試著忘記壹切 提交于 2019-12-28 07:05:09
问题 I have a remote wcf service, I connect it by WSHttpBinding. If I use the empty service constructor which mean it will take all the configurations from the app.config , everything is ok, (I mean MyService s = new MyService()). Now I want to configure the wcf programmatically . it's simple till I arrive to the authentication issue , it was so hard to do that . Here is the app.config which I use , you can see there my security configurations . <system.serviceModel> <bindings> <wsHttpBinding>

How to connect to the web service?

时光毁灭记忆、已成空白 提交于 2019-12-25 18:45:09
问题 I want to connect to web service which is on this adress: https://webapp2.rzzo.rs/rzzo/RzzoService?wsdl I add service reference to it in my .net 4.0 C# app. And here is my code which I used to connect to this servis: ServiceReference1.RzzoServiceClient client = new ServiceReference1.RzzoServiceClient(); client.ClientCredentials.UserName.UserName = "------"; client.ClientCredentials.UserName.Password = "-------"; bool check = client.CheckConnection(); and here is message i must get (I got it

How to connect to the web service?

ε祈祈猫儿з 提交于 2019-12-25 18:45:03
问题 I want to connect to web service which is on this adress: https://webapp2.rzzo.rs/rzzo/RzzoService?wsdl I add service reference to it in my .net 4.0 C# app. And here is my code which I used to connect to this servis: ServiceReference1.RzzoServiceClient client = new ServiceReference1.RzzoServiceClient(); client.ClientCredentials.UserName.UserName = "------"; client.ClientCredentials.UserName.Password = "-------"; bool check = client.CheckConnection(); and here is message i must get (I got it

how to get current windows user in wcf

风流意气都作罢 提交于 2019-12-25 05:05:08
问题 I already tried link from stackoverflow I have a silverlight client and wcf service. The application has 3 authentication modes Active Directory Windows Pass Through Proprietary - I don't have a problem with this one obviously. (I really don't know what is the difference between active directory and Window Pass Through. I just use the same code for both, except for windows pass through I get the current user and for AD the app prompts for username password) . private string GetCurrentUser() {

Obtaining ClientCredentials from WCF operation

核能气质少年 提交于 2019-12-25 01:44:24
问题 My WCF Service uses a custom credentials validator for custom Message-based security, because I want to ensure each client calling an operation on my web service has a corresponding username and password in my database. Imports System.IdentityModel.Selectors Imports System.IdentityModel.Tokens Public Class CredentialsValidator Inherits UserNamePasswordValidator Public Overrides Sub Validate(ByVal userName As String, ByVal password As String) Dim authenticationApi As New AuthenticationGateway(