The remote server returned an unexpected response: (413) Request Entity Too Large.

For the record I think I got it. The Web.Config from the service does not have the binding information. I placed this info in it, and voila! <bindings> <basicHttpBinding> <binding maxBufferPoolSize=”2147483647″ maxBufferSize=”2147483647″ maxReceivedMessageSize=”2147483647″ messageEncoding=”Text”> <readerQuotas maxDepth=”2000000″ maxStringContentLength=”2147483647″ maxArrayLength=”2147483647″ maxBytesPerRead=”2147483647″ maxNameTableCharCount=”2147483647″ /> </binding> </basicHttpBinding> </bindings> Note here that the binding did not have a name specified.

How can I return json from my WCF rest service (.NET 4), using Json.Net, without it being a string, wrapped in quotes?

I finally figured out a solution to this. It’s not what I would have preferred (which would be to return the specific object type, and somehow instruct WCF to use a Json.Net serializer, instead of the DataContractJsonSerializer), but it is working great, and it’s simple and clear. Extending my contrived example using this new solution: …

Read more

What’s the difference between WCF Web API and ASP.NET Web API

Ive done a little more reading around this and found a few pages by MS people on this: http://wcf.codeplex.com/wikipage?title=How%20to%20Migrate%20from%20WCF%20Web%20API%20to%20ASP.NET%20Web%20API : The WCF Web API abstractions map to ASP.NET Web API roughly as follows WCF Web API -> ASP.NET Web API Service -> Web API controller Operation -> Action Service contract -> Not applicable Endpoint -> …

Read more

basicHttpBinding vs wsHttpBinding [duplicate]

Ton of material on that out there – just google for “WCF basicHttpBinding wsHttpBinding”. You’ll find amongst others: WCF : BasicHttpBinding compared to WSHttpBinding at SOAP packet level. Difference between BasicHttpBinding and WsHttpBinding and many, many more! Very basically: basicHttp is SOAP 1.1, wsHttp is SOAP 1.2 (they’re quite different, esp. when it comes to …

Read more