wcf-binding

Does setting Security Mode = Transport automatically make it secure in a HTTPS web service?

╄→гoц情女王★ 提交于 2019-12-10 15:05:25
问题 I have a web service and we're currently hosting it in a HTTPS site. My binding is this. <wsHttpBinding> <binding maxReceivedMessageSize="2000000" > <readerQuotas maxStringContentLength="2147483647" /> <security mode="Transport"> </security> </binding> </wsHttpBinding> And it seems to work well. But my main aim is to make sure the web service requests and responses are encrypted. I don't know much about web services but is that all there is to it? Just use HTTPS and put this line in your

unable to setup net.tcp bindings for wcf application running on IIS

倾然丶 夕夏残阳落幕 提交于 2019-12-10 11:46:32
问题 I am trying to set up NET.TCP bindings for a WCF application deployed on IIS . I have already added net.tcp to Enabled Protocols of application, but when I am trying to add net.tcp binding, its throwing the error shown below: I have also activated the Windows Communication Foundation Non-HTTP Activation . NET.TCP services are also running. Thanks in advance 回答1: You need to add net.tcp to the enabled protocols of your site. Go to IIS Manager, right-click on your website, go to 'Manage Web

How secure is WCF wsHttpBinding's Windows authentication?

若如初见. 提交于 2019-12-10 11:03:24
问题 I have created WCF and I have used wsHttpBinding and MTOM as message transport with authentcation as "Windows". Now my service is not current SECURE, its plain HTTP, running on custom port. Is Windows Authentication of WCF's wsHttpBinding secure? can anyone see the password or guess through network trace? Environment Information: Hosted on Internet No Active Directory, its single server Connecting from my office with server's admin username and password On the client side, Password is not

Create XML representation of WCF binding instance

吃可爱长大的小学妹 提交于 2019-12-09 03:31:26
I'm trying to write code to convert a WCF wsHttpBinding to customBinding, using the method described on WSHttpBinding.CreateBindingElements Method . Binding wsHttpBinding = ... BindingElementCollection beCollection = originalBinding.CreateBindingElements(); foreach (var element in beCollection) { customBinding.Elements.Add(element); } Once I have generated the custom binding, I want to generate an XML representation for that new custom binding. (The same XML representation that's found in an application's .config file). Is there a way to do that? (I'm aware of the tool referenced in this

Error 400 (bad request): maxReceivedMessageSize not taken into account for my WCF service

こ雲淡風輕ζ 提交于 2019-12-09 01:21:45
问题 There are multiple related questions on SO (almost same title), none of them helped me to fix my problem. Please do not close my question as duplicate before reading it. Thanks. I'm currently using WCF to expose a webservice (SOAP, HTTP). It is deployed in IIS Express for now. My problem is, I can't manage to consume my service from my client. My client receives a HTTP Error 400 Bad request exception. I've then activated tracing on server side to see what's actually happening, here's what I

(401) Unauthorized error : WCF security/binding

拜拜、爱过 提交于 2019-12-08 19:28:41
问题 I have a WCF web service, and a client both on the same machine. Accessing the WCF web service directly using the browser works, but the client can't connect; error message below. Any ideas? Integrated Windows Auth in IIS is used for both client and server. The remote server returned an error: (401) Unauthorized. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it

How to get the IP address of a WCF remote endpoint?

╄→尐↘猪︶ㄣ 提交于 2019-12-08 14:28:31
问题 Is there a way to get the remote IP Address of a WCF connection? I guess the reason why it's not built-in into the WCF framework is that WCF can work with non TCP/IP bindings, so the IP Address is not always meaningful. However, the information would make sense for all the widely used bindings (As far as I know : BasicHttp, DualHttp, WSHttp and NetTcp). The IP address is probably accessible using reflection, but I'd rather find a documented way to get it rather than hacking into the framework

How Can I access WCF services using a Web Reference?

孤街浪徒 提交于 2019-12-08 14:14:19
What WCF configuration settings makes WCF service, so that I can access as old ASMX web services? How can I authenticate using Authentication header what I used in Old ASMX web services? Just use basicHttpBinding Here is an example of the configuration: http://msdn.microsoft.com/en-us/library/ms731347.aspx Check this out : ASMX to WCF migration 来源: https://stackoverflow.com/questions/1661340/how-can-i-access-wcf-services-using-a-web-reference

Supported bindings for WCF streaming transfers

本秂侑毒 提交于 2019-12-08 11:17:34
问题 I was using basicHttpBinding for streaming transfer, When I change binding to netTcpBinding , Service start to throw exception... Please help me to understand the fastest binding to transfer streams... Thanks a lot! 回答1: Some good links for file transferring, might help you get to the bottom of what's going on: Streaming: MSDN ...you can use only transport-level security options for streaming and you cannot turn on reliable sessions. Streaming is only available with the following system

Which security mode to use in WCF client with SSL and HTTP Authentication?

筅森魡賤 提交于 2019-12-08 09:21:31
问题 I need to use SSL and HTTP authentication in my WCF client to connect to a web service. I have wcf client binding configuration as shown below and code to load certificate and pass the user name and password for http authorization. When I tried this, I am receiving an error "The http request is unauthorized with client authentication scheme 'Anonymous'. The authentication from the server was 'Basic realm="ws.dataway.com:443'". The remote server returned an error: (401) Unauthorized. Can