Chilkat Forum

Technologies => REST / HTTP / HTTPS => Topic started by: pergo on November 16, 2017, 03:14:29 PM

Title: 405 - HTTP verb used to access this page is not allowed
Post by: pergo on November 16, 2017, 03:14:29 PM
Hi
I get this error
405 - HTTP verb used to access this page is not allowed
trying to send a SOAP request with this code. Any help?

  req.ContentType:='text/xml';
  req.SendCharset:=1;
  req.charset:='utf-8';
  req.UseXmlHttp(xml.GetXml());
  req.AddHeader('SOAPAction','"https://www.fel.mx/CR33Test/ConexionRemota.svc?WSDL"');
  domain := 'www.fel.mx';
  port := 80;
  ssl := 0;
  panel1.show;
  application.processmessages;
  resp := http.SynchronousRequest(domain,port,ssl,req.DefaultInterface);
Title: Re: 405 - HTTP verb used to access this page is not allowed
Post by: TracyP on November 22, 2017, 10:07:34 AM
HTTP verb relates to GET PUT POST etc...
The SOAP services I have worked with always required a POST.

Are you using a POST request?