wcf-binding

WCF over SSL - 404 error

孤街浪徒 提交于 2019-11-27 11:29:40
问题 Okay, I must be missing something utterly simple here, because I've been googling for days, and looking at dozens of answers there, and here on SO, and i just CANNOT get this to work, no matter what i've tried. The service works perfectly fine when called over plain HTTP. Here's our setup... we have a domain, http://www.mydomain.com . We have an SSL certificate installed on that domain from thawte, just as we would if we were securing an e-commerce site. That all works fine, and i can go to

How can I use WCF with only basichttpbinding, SSL and Basic Authentication in IIS?

巧了我就是萌 提交于 2019-11-27 11:09:09
Is it possible to setup a WCF service with SSL and Basic Authentication in IIS using only BasicHttpBinding-binding? (I can’t use the wsHttpBinding-binding) The site is hosted on IIS 7, with the following authentication set up: - Anonymous access: off - Basic authentication: on - Integrated Windows authentication: off !! Service Config: <services> <service name="NameSpace.SomeService"> <host> <baseAddresses> <add baseAddress="https://hostname/SomeService/" /> </baseAddresses> </host> <!-- Service Endpoints --> <endpoint address="" binding="basicHttpBinding" bindingNamespace="http://hostname

How can I make Named Pipe binding reconnect automatically in WCF

烂漫一生 提交于 2019-11-27 11:00:26
问题 I'm writing a service that will only get calls from the local host. Performance is important so I thought I'd try the NetNamedPipeBinding instead of NetTcpBinding and see If I could see any noticeable performance gains. If a client, after having performed one or more requests to the server, is idle for a longer period of time the next request will fail seemingly due to some idle timeout in the binding. The same thing also happens when the service gets restarted. I need my clients to be able

WCF service maxReceivedMessageSize basicHttpBinding issue

给你一囗甜甜゛ 提交于 2019-11-27 10:30:28
问题 I can't seem to get my WCF service to accept large amounts of data being sent up to it. I configured the maxReceivedMessageSize for the client and could receive large data down just fine, that's not the issue. It's sending data up to the service. I tried to configure the service but haven't had any luck. Here's my web.config: <?xml version="1.0"?> <configuration> <system.web> <compilation debug="true"/> </system.web> <system.serviceModel> <behaviors> <serviceBehaviors> <behavior>

net.pipe vs. net.tcp vs. http Bindings

假装没事ソ 提交于 2019-11-27 09:09:21
问题 I'm new to WCF and would like to know the differences/advantages/limitations/etc of each of the following bindings: net.pipe net.tcp http Supporting scenarios on when to use each binding and other examples would be appreciated. 回答1: While not great for providing specific usage examples, here is a link from MSDN which lists all the features for the bindings. http://msdn.microsoft.com/en-us/library/ms730879.aspx Here is a decent flow chart that can help choosing between them as well. Source:

WCF service The maximum array length quota (16384) has been exceeded

不羁的心 提交于 2019-11-27 07:36:11
I have a wsf service and a client application. While trying to communicate the client and the service I've gotten the following message: " The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:blob . The InnerException message was 'There was an error deserializing the object of type FileBlob. The maximum array length quota (16384) has been exceeded while reading XML data. This quota may be increased by changing the MaxArrayLength property on the XmlDictionaryReaderQuotas object used when creating

The content type application/xml;charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8)

不打扰是莪最后的温柔 提交于 2019-11-27 04:50:33
I trying to consume a WCF web service using stand alone application. I am able to view this service using Internet Explorer also able to view in Visual studio service references. This is the error I am getting The content type text/html; charset=UTF-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). How do I change this to use the correct content type? Here is my config file <?xml version="1.0" encoding="utf-8" ?> <configuration> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> </startup> <system.serviceModel>

How to consume WCF web service through URL at run time?

独自空忆成欢 提交于 2019-11-27 04:50:28
I want to access all the methods exposed in the service through the URL. if suppose the URL will be : http://localhost/MyService/MyService.svc How can I access methods: if suppose I have a ServiceReference and what should I do if don't have the Service Reference. In order to use a WCF service, you will need to create a WCF client proxy. In Visual Studio, you would right-click on the project and pick the "Add Service Reference" from the context menu. Type in the URL you want to connect to, and if that service is running, you should get a client proxy file generated for you. This file will

WCF is using the computer name instead of the IP address and cannot be resolved

丶灬走出姿态 提交于 2019-11-27 04:31:26
问题 I have a WCF service that works fine on the LAN but when trying to access it from outside the service reference fails. My WCF service is hosted on a win2k3 box that is using a static IP no domain. 回答1: This is what worked for me. In config file < serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> < / system.serviceModel > If it is set to false, I was getting that crazy computername substitution. multipleSiteBindingsEnabled="true" seems to be all that I have to do for this to work

WCF service The maximum array length quota (16384) has been exceeded

て烟熏妆下的殇ゞ 提交于 2019-11-27 03:59:40
问题 I have a wsf service and a client application. While trying to communicate the client and the service I've gotten the following message: " The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:blob. The InnerException message was 'There was an error deserializing the object of type FileBlob. The maximum array length quota (16384) has been exceeded while reading XML data. This quota may be