wcf-binding

How can I prevent VS2010 to create a new binding each time I update a service reference?

北慕城南 提交于 2019-12-06 23:07:08
问题 I'm developing a Winforms Client application with a WCF Service in C # 3.5 and Visual Studio 2010. Every time I use " Update Service Reference " in the IDE, considering I have already a working binding in app.config , an additional binding entry is generated with the same name and a trailing "1". My app.config on the client side is : <bindings> <wsHttpBinding> <binding name="WSHttpBinding_IIssueTracker" closeTimeout="00:01:00"... After a "Update Service Reference", I have : <bindings>

Get metadata out of a webHttpBinding endpoint

岁酱吖の 提交于 2019-12-06 21:44:56
问题 With a reference to my previous question, I would like to know how would I extract information of a WCF service from a client application to know what methods/types are exposed if the service exposes only one endpoint that uses webHttpBinding? Just to summarize, in my previous question, I came to know that an endpoint using webHttpBinding does not get exposed in the generated WSDL because it would be a JSON endpoint and is just not compatible. 回答1: WebHttpBinding is a REST-based binding -

How to use HTTPS with WCF SessionMode.Required - simplest possible example

核能气质少年 提交于 2019-12-06 14:08:22
问题 UPDATE (8/7/2014) - The solution to this problem was that I needed to add a class that derived from "UserNamePasswordValidator" and register it in Web.Config. I have created a simple test WCF service and test console client application (see below for code). I am using .NET 4.5.1. I have already searched for duplicates on StackOverflow (found similar posts here and here) - however I feel that the referenced posts are potentially outdated, and also feel that my post is more limited in scope. OK

wcf server authentication without certificates

£可爱£侵袭症+ 提交于 2019-12-06 13:23:46
I have a self-hosted WCF service with netTcpBinding bindings. Both my servers and clients will all be in the same domain, so I'd like to use windows authentication, but I'd also like the clients to verify server credentials (to avoid an internal man-in-the-middle/dns tampering attack). I've read that the way to do this is to use an SPN, but I can't seem to get that to work; no matter what the spn is set to the client works (i.e. the server and client don't match, but the client connects anyway). Obviously I've got some kind of configuration error, but I'm not sure where. Here is the service

How do you configure WCF to support FaultContracts where both the host and client are in the same process using a net.pipe?

天涯浪子 提交于 2019-12-06 06:33:52
问题 I'm trying to create an in-process unit test for my service to client interactions using net.pipe binding. Like a good WCF service it uses FaultContractAttribute on service operations to expose possible faults (wrapped exceptions) to metadata. I would like to have the client and service endpoints configured thru XML (App.config). However, whenever a fault is thrown, it's just a CommunicationException "pipe has closed", and not the typed Fault I was expecting. System.ServiceModel

WCF custom binding that will support HTTPS, a signed certificate and a signed username token

扶醉桌前 提交于 2019-12-06 06:07:29
问题 I've tried asking this question about WCF but I've got no answers so I'm trying again with a more focused question. Can anyone tell me how to create a custom binding for a WCF client that will: include a signed username token include a signed message be sent over HTTPS UPDATE Not sure if it makes a difference but I'm using .NET 4 ANOTHER UPDATE If anyone has any specific examples that would be awesome 回答1: I think i can give some pointers. You will have to use WIF to get this working. The

How secure is WCF wsHttpBinding's Windows authentication?

时光总嘲笑我的痴心妄想 提交于 2019-12-06 05:14:42
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 mentioned in config file, it is entered at runtime. It works correctly becausing entering wrong

WCF binding configuration apply only as default but as named it fails

ε祈祈猫儿з 提交于 2019-12-06 04:50:35
问题 We have an interesting problem with WCF binding and streaming transfer mode that we cannot solve: We have an WCF endpoint configured to the streaming transfer mode. The endpoint receives message much larger then the default size (~65 KB). Therefore we have specified larger message size in the maxReceivedMessageSize attribute on the binding tag. The problem is when we pair up the endpoint and the binding by the bindingConfiguration attribute on the endpoint tag and the name attribute on the

WCF netTCPBinding

只愿长相守 提交于 2019-12-06 04:04:39
问题 WCF's netTCPBinding is "secured by default". As I understand it this means that.. Callers are authenticated using their windows credentials. Messages are signed Messages are encrypted. However, I can set up a very basic WCF client service set up on my localhost. The authentication will work as its on the same machine, but how does the signing and encryption work? WCF needs a certificate to sign and encrypt messages. If I dont have a certificate then how does my service manage to work? How

Change WCF Service binding to https at runtime

泄露秘密 提交于 2019-12-06 03:49:05
We have an application that is deployed to many clients, some of which use http others https. When setting up our application the web.config is automatically populated with the WCF endpoints, bindings, etc. We would like to change over the binding to https upon application startup - without modifying the .config file. Is this possible? For example our .config file looks like (this is a snippet): <service behaviorConfiguration="Figment.Services.Business.ObjectInfo.ObjectInfoServiceBehavior" name="Figment.Services.Business.ObjectInfo.ObjectInfoService"> <endpoint address="" binding=