How does the `binding` section of the WCF configuration affect the 405 error?

Responsive Ad Header

Question

Grade: Education Subject: Support
How does the `binding` section of the WCF configuration affect the 405 error?
Asked by:
77 Viewed 77 Answers

Answer (77)

Best Answer
(241)
The `binding` section, particularly the `webHttpBinding` element, controls the HTTP protocol and methods supported. If the binding is configured to only allow GET requests, any attempt to use POST, PUT, or DELETE will result in a 405 error.