I have a webservice that accepts bot GET and POST but when i call the webmethod using PUT or DELETE i get a response as
404.0 file not found
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.Services.ScriptService]
public class reste : System.Web.Services.WebService
{
HttpContext httpContext;
dynamic response;
string result;
[WebMethod(true) ]
public void clients()
{
initialize();
ClientServices cl = new ClientServices(httpContext);
result = cl.processRequest();
sendResponse();
}
here is the response headers
Status Code: 404
Date: Sun, 23 Feb 2014 21:47:28 GMT
Server: Microsoft-IIS/8.0
X-Powered-By: ASP.NET
Access-Control-Allow-Methods: GET,PUT,POST,DELETE,OPTIONS
Content-Type: text/html; charset=utf-8
Access-Control-Allow-Origin: *
Cache-Control: private
X-SourceFiles: =?UTF-8?B? YzpcdXNlc
Access-Control-Allow-Headers: Content-Type
Content-Length: 4972