wcf-binding

How to create custom WCF binding which effectively reverses the communication?

倖福魔咒の 提交于 2019-12-11 14:24:46
问题 I have Server sending requests to Agents. When the agent has something to say it sends replies to Server. All is clear and simple. Now, I wish to cancel the Server-to-Agent communication. In effect Agents will poll Server and get in reply if there is work to do. It seems to me that all of this should be encapsulated in a custom WCF binding, which would contain the following items at least: A reference to the effective WCF binding used to poll Server on the reversed Agent-to-Server channel.

Custom MTOM binding and Max upload size

浪尽此生 提交于 2019-12-11 13:38:34
问题 I'm using the binding configuration below for my upload service, <binding name="FileUploadSTSBinding"> <security authenticationMode="UserNameOverTransport" requireDerivedKeys="false" keyEntropyMode="ServerEntropy" requireSecurityContextCancellation="false" requireSignatureConfirmation="false"> </security> <mtomMessageEncoding/> <httpsTransport transferMode="Streamed" maxReceivedMessageSize="2147483647"/> </binding> But with this setting, I'm not able to upload big files like more than 1mb,

Could not find endpoint element with name ' and contract 'I' in the ServiceModel client configuration section.

这一生的挚爱 提交于 2019-12-11 12:14:18
问题 I am working on a Base WCF Service- Client WCF service - Consumer Base Wcf servcie model as following: In this model, I have created a Base WCF service and created 1 WCF service i.e; ClientWCFService and 1 ASMX service i.e; ClientASMXservice using the BaseWCFServiceProxy.cs the Proxy class of Base WCF Service using SVCUtil.exe. The ClientWCFService and ClientASMXservice are working fine in StandAlone environment. Now, I created a Consumer Console Application using the same proxy class

Custom WCF Binding Suppresses Fault

[亡魂溺海] 提交于 2019-12-11 12:03:15
问题 I have a WCF Service which I am calling asychronously. If I call a method that throws a normal .Net Exception (i.e., not a FaultException) using wsHttpBinding, my WCF Channel is left in a faulted state - this is the expected behavior. However, if I call the same method using a custom binding: <customBinding> <binding name="httpCompressed" sendTimeout="00:10:00" receiveTimeout="00:10:00"> <httpTransport maxBufferSize="2147483647" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647" /

Set useDefaultWebProxy=false on WCF Client with the Web-References

徘徊边缘 提交于 2019-12-11 10:47:25
问题 I have a Windows-Forms application with added Web-References to a WCF Service. I need to set on the wcf client the property "useDefaultWebProxy" to "false". If I had added the "Service-References", instead of the "Web-References", I could easily modify the app.config file: <basicHttpBinding> <binding name="pluto" ... useDefaultWebProxy="false"> <readerQuotas ... /> <security ...> <transport ... /> <message ... /> </security> </binding> </basicHttpBinding> But I have the Web-References, how

Consuming WCF Service Reference: Endpoint not found / 404 page not found

岁酱吖の 提交于 2019-12-11 10:36:45
问题 Hi, I know this topic might look familiar to similar topic but I can tell you that it is after an entire day of searching on related issues that I come for help, because none of the suggested solutions has worked for me. I have created a WCF REST Service Application with only one service that runs locally on my computer as well as a ASP.NET WebForm Client that consumes it (both on individual instance of VS 2013 on a Windows 7). All the operations of the service work perfeclty fine. GET

SharePoint, WCF and Anonymous Access

感情迁移 提交于 2019-12-11 09:56:02
问题 Does a WCF service on SharePoint require that Anonymous Access is enabled? We have an application page which is calling the service using Ajax.Net, if Anon Access is off then we get prompted for the username and password, if it is on then all is well. We are not using a WCF client, it is purely being called by the scriptmanager <configuration> <system.serviceModel> <bindings> <webHttpBinding> <binding name="webHttpBinding_DataSources" maxBufferSize="5242880" maxReceivedMessageSize="5242880" /

WCF change address at runtime exception

女生的网名这么多〃 提交于 2019-12-11 09:10:05
问题 I have a problem connecting to WCF Service with custom endpoint. I have excel addin that communicates with database via WCF Service. I created service and everything works fine. WCF Service is referenced in ServiceReference of my Excel addin project. But now, I want to have an option to set server where WCF service is running. So I let user to input the service URI and I'm trying to create ServiceClient with binding and EndpointAdrress. But if I create ServiceClient with EndPointAddress of

Getting an Security setting exception while accessing a WCF service

爱⌒轻易说出口 提交于 2019-12-11 08:51:25
问题 Following are binding configurations of my WCF service. Anonymous access: off Basic authentication: on Integrated Windows authentication: off !! support HTTP protocol . I am getting an following exception while accessing my WCF service: Security settings for this service require 'Anonymous' Authentication but it is not enabled for the IIS application that hosts this service. <system.serviceModel> <bindings> <basicHttpBinding> <binding name="MyBinding"> <security mode="TransportCredentialOnly"

Translate non-BizTalk WCF config into BizTalk WCF-Custom endpoint

家住魔仙堡 提交于 2019-12-11 08:23:03
问题 I have a BizTalk app up and running that is currently using the WCF-BasicHttp Adapter. It's currently using only Message security using the UserName credential type and that is all working fine. Things have since changed, we are now required to accept Client Certificates at the Transport (IIS) level for authorization of the service and still continue to use Message security for authentication into the service. After much pain and searching, I was able to get this to work in a NON-BizTalk WCF