KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I've built a WCF service that's exposed both through SOAP and RESTfully. All SOAP actions work as advertised. GETS/PUTS do as well, but when I try to do a POST to an action in my service, I get the following error returned: "Endpoint not found" IPersonEditServiceContract snippet: [OperationContract] [WebInvoke(Method="POST", UriTemplate="/persons", RequestFormat=WebMessageFormat.Xml, ResponseFormat=WebMessageFormat.Xml)] SavePersonResponse SavePerson(SavePersonRequest request); [OperationContract] WebGet(UriTemplate = "/persons/{personId}", ResponseFormat = WebMessageFormat.Xml, BodyStyle = WebMessageBodyStyle.Bare, RequestFormat = WebMessageFormat.Xml)] Person GetClaimantById(string personId); Service is configured this way: <behaviors> <endpointBehaviors> <behavior name="restBehavior"> <webHttp /> </behavior> </endpointBehaviors> </behaviors> <services> <service> <endpoint address="" binding="basicHttpBinding" name="DefaultEndpoint" bindingNamespace="http://mycompany.com/ServiceContracts" contract="IPersonEditServiceContract" /> <endpoint address="rest" binding="webHttpBinding" name="RESTEndpoint" bindingNamespace="http://mycompany.com/ServiceContracts" contract="IPersonEditServiceContract" behaviorConfiguration="restBehavior"/> </service> </services> Since I can do other RESTful operations against the same endpoint, I'm not entirely sure why it gives me that semi-helpful error. Ideas?
Tags (comma-separated)
Save Edits
Cancel