wcf-binding

WCF NetTCPBinding vs HttpBinding difference in data sent on wire

冷暖自知 提交于 2019-12-06 03:37:37
问题 Say I have a service exposing two end points, 1st is a NetTCPBinding the second is any flavour of HttpBinding. They both implement exactly the same service contract. What is the difference in what is sent on the wire? Using netTcp is my message still serialised to XML ? Or some binary representation of my objects? In terms of what receives the messages what is the difference? Will the http endpoint only understand http commands (get/post etc) where as the nettcp end point understands

WCF Client - How to process or ignore a MustUnderstand header element?

安稳与你 提交于 2019-12-06 00:44:54
问题 I'm writing a WCF Client that consumes a non-.Net web service, using WS-Security. The service's response contains a Security header with mustUnderstand set to true. Using a ServiceModelListener, I do see actual data coming back from the service. The WCF client fails, however, because it is not processing the Security header. <env:Header> <wsse:Security env:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs

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

杀马特。学长 韩版系。学妹 提交于 2019-12-05 13:08:26
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 and the same binding (including security requirements, e.g. Message, Transport, None). MobileService

Is it possible to render a view outside a controller?

柔情痞子 提交于 2019-12-05 12:48:24
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 folder. Do I new to instantiate my ViewContext differently? HtmlHelper helper = new HtmlHelper(new

Issue related to WCF <readerQuotas> maxDepth

允我心安 提交于 2019-12-05 09:42:20
I have a WCF service with HTTP Bindings. AppConif file maxDepth="32". This works on all machines except ONE. My question is why doesn't this work on this machine when maxDepth="32". When I set maxDepth="2147483647", it works on all machine. Appreciate your help! The maxDepth attribute is documented here: http://msdn.microsoft.com/en-us/library/ms731325.aspx , and as you can see, it defines the maximum number of nested nodes in the XML structure. I guess a client of the machine in question produces SOAP messages with a deep structure, which causes the exception. You can turn on WCF message

Invalid HTTP status code 405 in Chrome only

巧了我就是萌 提交于 2019-12-05 09:04:30
I have a WCF service which saves a customer to a database and works as expected in Internet Explorer but not in Chrome (for that reason i will leave out the HTML/Json as it makes me think this is a web config issue but i can post if anyone likes). In Chrome i get the error: Failed to load resource: the server responded with a status of 405 (Method Not Allowed) Subscriber.htm:1 XMLHttpRequest cannot load http://example.com/MyService.svc/SaveCustomer . Invalid HTTP status code 405 My Web Config: <system.web> <compilation debug="false" strict="false" explicit="true" targetFramework="4.0" />

WCF Service configuration HTTPS with CustomBinding

浪尽此生 提交于 2019-12-05 05:53:14
I needed a custombinding on a WCF Service to allow me to pass raw content to WCFRest service. Works great, but I can't get it to accept transport level security. I want https and basicauthentication as I use elsewhere. Endpoint looks like this: <endpoint address="" behaviorConfiguration="web" contract="SmsService.ISmsReceive" binding="customBinding" bindingConfiguration="RawReceiveCapable"></endpoint> customBinding looks like this: <customBinding> <binding name="RawReceiveCapable"> <security mode="Transport"> <transport clientCredentialType="Basic"/> </security> <webMessageEncoding

WCF Maximum Message Size Quota

南楼画角 提交于 2019-12-05 05:32:55
I'm trying to call a WCF service (hosted in a Windows Service, not IIS) and am getting the following error: The maximum message size quota for incoming messages has been exceeded for the remote channel. See the server logs for more details. I have tried increasing the MaxReceivedMessageSize and the ReaderQuotas to their maximum values without any luck. I have also turned on logging and checked the messsage size that's getting "sent." It's definitely nowhere near the maximum. We're talking about sending an object that serialized into 372KB XML. Two questions: Does anyone know what "server logs"

WCF - calling back to client (duplex ?)

走远了吗. 提交于 2019-12-05 02:04:28
问题 I have a problem with what solution to choose.. I have a server running having a Service running that can receive orders from a website. To this server several client (remote computers) are connected somehow. I would really like to use WCF for all comunication, but not sure it's possible. I dont wanna configure all client firewall settings in their routers, so the clients would have to connect to the server. But when an order is recieved on the server, it should be transferred to a specific

WCF behind load balancer - how to setup

不打扰是莪最后的温柔 提交于 2019-12-05 01:03:03
问题 We have a couple of web servers using load balancer. Machines are running IIS6 on port 81. Externally, site is accessable using port 80. External name and name of the machine are different. We're getting System.ServiceModel.EndpointNotFoundException: The message with To '<url>' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher. Check that the sender and receiver's EndpointAddresses agree. Relevant part of web.config is: <endpoint binding=