Hi tetswwdag,
>>I can see that you have created a services, but when I enter this http://servicename/service.svc/123 with a post method, it show method not allowed.
The POST method is used to submits data to be processed to a specified resource. So we can not browser a POST method URI in the browser, please try to use a GET method for instead, for consuming the POST method in the WCF Rest Service, please try to use the
HttpWebReqest, HttpClient or the Jquery.
For more information, please try to refer to the following articles:
#Call Restful Service using HttpWebRequest:
http://fromjami.wordpress.com/2013/05/26/call-restful-service-using-httpwebrequest-and-post-data/ .
#Create and consume WCF Restful Service using an HttpClient:
http://chsakell.com/2013/07/12/create-and-consume-wcf-restful-service-using-an-httpclient/ .
#Consume RESTful service using jQuery in 2 simple steps:
http://www.topwcftutorials.net/2013/10/consume-rest-service-using-jquery.html .
Best Regards,
Amy Peng
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.