wcf-binding

netTcpBinding or wsHttpBinding

余生长醉 提交于 2019-11-30 00:50:41
问题 I have a WCF Service hosted as Windows Service and client is an ASP.Net application consuming WCF Service methods. In process of implementing security, I am confused over which among netTcpBinding / wsHttpBinding will be suitable for my case. Most likely all the applications in scene (WCF Service, Windows Service, ASP.Net Website) will be sitting on different servers in our office, thus in an Intranet. ASP.Net website will be accessed by users over Internet. Though, I can always use

What is the maximum size that maxReceivedMessageSize can be set to for a NetNamedPipeBinding?

て烟熏妆下的殇ゞ 提交于 2019-11-29 22:53:28
I noticed that 2147483647 seems to be a popular choice for maxReceivedMessageSize but is this the limit? AgileJon Nope, the limit is Int64.MaxValue 1 which is: 9223372036854775807 MaxMessageReceivedSize in basicHttpBinding appears to be an int32 - setting it over the max value of an int32 results in: This factory buffers messages, so the message sizes must be in the range of an integer value. Parameter name: bindingElement.MaxReceivedMessageSize fernando MaxReceivedMessageSize and MaxBufferSize must same value and MaxBufferSize is Int32 . Use the defaults for the maximum size so one doesn't

Using protobuf in WCF services

不羁岁月 提交于 2019-11-29 22:28:15
My asp.net web pages are on IIS web server and it communicates with WCF services(sitting on windows 2008 app server) using basic HTTP binding. The performance of my wcf services doesnt seem to be that good and I want to improve the same.Also, I need to balance on scalability as my site will be having a very high traffic. HTTP compression,throttling are some of the ways am aware of but have not tried them yet.. Can i use protobuf API...Please suggest... Marc Gravell The short answer is "yes"... The protocol buffers spec itself doesn't provide an RPC stack, but some have been added outside the

This could be due to the service endpoint binding not using the HTTP protocol

懵懂的女人 提交于 2019-11-29 19:30:30
I have a WCF Service running fine on my local machine. I put it on the servers, and I am receiving the following error: An error occurred while receiving the HTTP response to http://xx.xx.x.xx:8200/Services/WCFClient.svc . This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.] I have gone to the service in the url and it is working correctly. All I am doing for the function is returning a string to an image name,

Is it possible to determine a WCF binding configuration from the SOAP envelope?

杀马特。学长 韩版系。学妹 提交于 2019-11-29 15:25:40
I've generated a WCF client service proxy from a WSDL file, which calls a third-party java web service. Now I need to configure the binding and proxy to call a web method. However, I only have the below SOAP information, a username and password, and a client certificate. How can I work out what I need to do? Are there any "reverse this to configuration" apps, or websites that teach the skills required? I think I am after, "this part of the message, translates to this configuration". Can anyone help? For the same project, I asked this question , so if anyone knows what to ask the third party

Callback with NetTCPBinding

徘徊边缘 提交于 2019-11-29 15:21:34
Is NetTCPBinding supporting Callbacks? If so, please redirect me to any appropriate example. Thanks Look into using Duplex Messaging . NetTCPBinding supports it natively, unlike with HTTP, where you need a special binding (WSDualHttpBinding.) 来源: https://stackoverflow.com/questions/1212443/callback-with-nettcpbinding

WCF how to bind multiple service contracts?

余生长醉 提交于 2019-11-29 14:39:50
问题 First off I'll apologise as this is probably a duplicate but everything I read seems to be either incomplete or confusing as I'm very new to WCF. I basically am looking to deploy a WCF service in IIS with 2 endpoints accessible and have been going around in circles all day :( I have a service library WCF dll with the following structure App.config TestSvc1.cs ITestSvc1.cs TestSvc2.cs ITestSvc2.cs This works fine in the VS WCF test client and now im deploying to IIS so I created a WCF Service

Net TCP binding: The URI prefix is not recognized

感情迁移 提交于 2019-11-29 14:02:19
This really is bugging me for a couple of hours. I created the simplest WCF service using a TCP binding. namespace WcfTcpService { public class TestTcpService : ITestTcpService { public string Hello(string name) { return "Hello, " + name + "!"; } } } namespace WcfTcpService { [ServiceContract] public interface ITestTcpService { [OperationContract] string Hello(string name); } } Web.config file has the following section: <system.serviceModel> <services> <service name="WcfTcpService.TestTcpService" behaviorConfiguration="TestServiceBehavior"> <host> <baseAddresses> <add baseAddress="net.tcp:/

Multiple stream in one stream will not passed to client properly

こ雲淡風輕ζ 提交于 2019-11-29 13:08:37
In WCF service I fill Stream according to this question like : result.Stream = new MemoryStream(); BinaryWriter writer = new BinaryWriter(result.Stream); foreach (string fileN in zipFiles) { byte[] fileBytes = File.ReadAllBytes(fileN); writer.Write(BitConverter.GetBytes(fileBytes.Length), 0, 4); writer.Write(fileBytes, 0, fileBytes.Length); } writer.Flush(); return result; before this I was returning stream by this and everything works in service and client side: result.Stream = new MemoryStream(File.ReadAllBytes(fileN)); Stream be MessageBodyMember but nut now changed it to save all file in

WCF WebServiceHostFactory MaxReceivedMessageSize configuration

旧时模样 提交于 2019-11-29 12:50:40
I have a RESTful WCF web service called "Palladium" as a project in my VS2008 solution. It is hosted in an ASP.Net 3.5 Web Application using the WebServiceHostFactory implementation via a page called "Palladium.svc". My service works in a manner similar to the one explained here , whereby POSTs can be received by the service along with other parameters as defined in the URITemplate. The service works well, and I can receive posted information and work with it. My problem occurs when the post data exceeds 65k and I get the following error (obtained using system.diagnostics in the web.config and