wshttpbinding

Add Header to WCF RequestSecurityToken Message

一笑奈何 提交于 2019-12-23 10:27:01
问题 I'm attempting to set up a client (Web Application) and service (WCF Service) that will communicate using a WSHttpBinding. It appears that in order to use this binding the client sends preliminary messages to set up the channel. Between the client and the service exists a service bus which is routing on a custom header. The message, when using BasicHttpBinding security, routes without issue. My question is: Is there any way to add the same custom header to the preliminary RequestSecurityToken

WCF Service with wsHttpBinding - Manipulating HTTP request headers

走远了吗. 提交于 2019-12-19 03:44:13
问题 I have been following this tutorial in order to get username authentication with transport security working in my WCF service. The tutorial however refers to using basicHttpBinding which is unacceptable - I require wsHttpBinding . The idea is to have a custom BasicAuthenticationModule on WCF service which would read the "Authorization" header from the HTTP request and perform the auth process according to "Authorization" header contents. The problem is that "Authorization" header is missing!

WSHttpBinding in .NetStandard or .NET core

南笙酒味 提交于 2019-12-19 03:15:35
问题 I want to integrate NMVS protocol in my application which is providing wsdl files for testing which is written sample code in .net framework library. I want to test it in .netstandard, .netcore or UWP app but wsdl files only support to "WSHttpBinding" which is not supported in .netstandard, .net core and UWP. <wsdl:binding name="WSHttpBinding_ISinglePackServices" type="ns:ISinglePackServices"> WSHttpBinding binding = new WSHttpBinding(); binding.Security.Mode = SecurityMode.Transport; binding

Maximum request length exceeded in WCF

旧巷老猫 提交于 2019-12-18 06:59:35
问题 I am currently using Wcf application and getting above mentiooned error in Trace Log. Below is the Web.Config for Wcf Service. <bindings> <wsHttpBinding> <binding name="NewBinding0" closeTimeout="00:50:00" openTimeout="00:50:00" sendTimeout="00:50:00" receiveTimeout="00:50:00" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647"> <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount=

BasicHttpBinding vs WsHttpBinding vs WebHttpBinding

江枫思渺然 提交于 2019-12-17 03:44:43
问题 In WCF there are several different types of HTTP based bindings: BasicHttpBinding WsHttpBinding WebHttpBinding What are the differences among these 3? In particular what are the differences in terms of features / performance and compatability? 回答1: You're comparing apples to oranges here: webHttpBinding is the REST-style binding, where you basically just hit a URL and get back a truckload of XML or JSON from the web service basicHttpBinding and wsHttpBinding are two SOAP-based bindings which

The binding at system.serviceModel/bindings/wsHttpBinding does not have a configured binding

泄露秘密 提交于 2019-12-12 14:09:17
问题 I'm trying to create a second endpoint in my WCF web service. I can bring up the new endpoint's "Happy Page" by putting the domain URL in my browser, so I know that IIS can find the service, using my user account, properly. However, if I try to run the web page that calls the service, I'm getting the error below The binding at system.serviceModel/bindings/wsHttpBinding does not have a configured binding named 'WSHttpBinding_IMonetToDss'. This is an invalid value for bindingConfiguration. (D:

Programmatic WCF Message Security with Certificates

六眼飞鱼酱① 提交于 2019-12-12 07:31:13
问题 I've written a self-hosted WCF service using WSHttpBindings and I'm trying to implement message-level security using certificates I've generated myself. Unfortunately I'm getting a buried exception (via the Service Trace Viewer) stating "The credentials supplied to the package were not recognized." A couple notes: This has to be done in code, not in configuration (Server/Client)Cert are certificates that are in the local machine store with accessible private keys to my user while debugging. I

WCF Service with wsHttpBinding, ssl and TransportWithMessageCredential

a 夏天 提交于 2019-12-11 19:14:40
问题 I've got wcf service with ssl communication, wsHttpBinding and Transport security, but when I try to change it to: <security mode="TransportWithMessageCredential"> <transport clientCredentialType="None" /> <message clientCredentialType="UserName"/> </security> I'm getting error: An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail. I change security mode on client side and server side and I have up to date

Test WCF with Mutual Certificate Authentication using SOAPUI

做~自己de王妃 提交于 2019-12-11 18:19:00
问题 I´m trying to test a WCF service with mutual certificates authentication using a client on C# and it works; now I want to test the service using SOAP UI. This is the service configuration: <system.serviceModel> <services> <service behaviorConfiguration="ServiceBehavior" name="WS_XXXXX.WcfXXXX"> <endpoint address="" binding="customBinding" bindingConfiguration="XXXSoap" bindingNamespace="" contract="IXXXSoap" > </endpoint> <host> <baseAddresses> <add baseAddress="http://localhost:47037/"/> <

Error message: The request for security token could not be satisfied because authentication failed

雨燕双飞 提交于 2019-12-11 12:16:25
问题 I am trying to access a WCF service (MS CRM 2011) and getting the above error. If I run my sample program from the VS2010 debugger with either Cassini or IIS Express it works great. No authentication errors. However, if I publish the site to my local IIS 7.5 (running Windows 7 64 bit), I get the error on the line that grabs the CRM UserId (WhoAmIResponse). I opened Fiddler to compare the requests between running under the debugger and running under IIS. On the site running under IIS the