wcf-binding

How to host net named pipe binding enabled wcf application in iis?

喜你入骨 提交于 2019-12-23 10:12:04
问题 I have a following configuration in my wcf service <endpoint address="" binding="netNamedPipeBinding" contract="WcfWithNamedPipe.IService1" bindingConfiguration="WcfWithNamedPipe.netNamedPipeBinding"> </endpoint> can any one suggest me how to host this wcf service in iis using netNamedPipe binding? 回答1: To get Named pipes to work on IIS you must enable Windows Process Activation Service (WAS) on IIS and configure the site that you are using to allow named pipes. For details see: http://msdn

Passing Python List to WCF Service

老子叫甜甜 提交于 2019-12-23 09:37:04
问题 I am trying to pass a list (or array, collection) of strings from python to a WCF service endpoint The WCF interface: [OperationContract] string[] TestList(IEnumerable<string> vals); Binding in Web.config: <endpoint address="http://localhost:13952/Service/Endpoint.svc" binding="basicHttpBinding" contract="Service.IEndpoint"> Python code calling the service: from suds.client import Client url = 'http://localhost:13952/Service/Endpoint.svc?wsdl' client = Client(url) result = client.service

WCF client talking to Java WS, exception: The content type application/xop+xml; type=“application/soap+xml” of the response message

心已入冬 提交于 2019-12-23 09:33:45
问题 I'm having problems talking to Java WS. I'm using "wsHttpBinding" binding with client certificates for authentication, message encoding is set "Text", .net framework is 4.0. Server side is Java and I have no control over it. Connection is being proxied through Fiddler (this is how I see requests on the wire, much more user friendly than tracing "System.Net"). Exception I get is following: The content type application/xop+xml; type="application/soap+xml" of the response message does not match

AddressAlreadyInUseException when using customBinding but not when using netTcpBinding

橙三吉。 提交于 2019-12-23 05:04:47
问题 I know that the leasTimeout settings are part of the connectionPoolSettings element. I know that connectionPoolSettings is a child of tcpTransport. It looks like this can be configured only as a customBinding and not a netTcpBinding When I switch from netTcpBinding to customBinding, I get error messages about "There is already a listener on IP endpoint 0.0.0.0:8091. Make sure that you are not trying to use this endpoint multiple times in your application and that there are no other

Expose WCF Web service on the internet configuration

眉间皱痕 提交于 2019-12-23 02:37:05
问题 I am trying to expose a webservice written in WCF, to the open internet but i am having trouble configuring it to be consumed from the external url. The web service is hosted internally at https://ourportal.internaldomain.intra:9011/FrontEndWS and works well. We have exposed the webservice on https://www.internetdomain.com.mt/FrontEndWS however when accessing it from the external address, the soap URLs still referer to the internal address. Our settings are as follows. We do not need to

ContractFilter mismatch error

烂漫一生 提交于 2019-12-22 18:23:34
问题 I have seen several threads about this error on StackOverflow and elsewhere but, I have been unable to get a solution to my problem. I have an application that attempts to call out to a web service method. When it calls one method (that provides login validation) it works just fine. Then, when it calls another function (not login/membership related) it generates this error: The message with Action 'http://tempuri.org/IMyAppData/GetSomeSpecialXML' cannot be processed at the receiver, due to a

wcf server authentication without certificates

拈花ヽ惹草 提交于 2019-12-22 12:39:44
问题 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

Change WCF Service binding to https at runtime

99封情书 提交于 2019-12-22 11:15:19
问题 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"

Is it possible to render a view outside a controller?

非 Y 不嫁゛ 提交于 2019-12-22 09:12:09
问题 I wanted to know if it was possible to render a view from a class that is not a controller. Everything I see seems to say that you can't. What I'm trying to do is to render a partial view from a WCF web service in order to push it somewhere else. Is it possible to use the view engine for that? Thanks! Update: I keep getting argument null exception with the HtmlHelper. Here is my code and the stack trace. My partial is indeed named TableOfContent.cshtml and is located in the /View/Shared

cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher

风流意气都作罢 提交于 2019-12-22 08:21:04
问题 I am using ajax enabled WCF, when i open the url in web browser i am getting this error. The message with Action 'http://localhost:22219/MobileService.svc/GetProductCategories' 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