Author Topic: 405 - HTTP verb used to access this page is not allowed  (Read 846 times)

pergo

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
405 - HTTP verb used to access this page is not allowed
« 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);

TracyP

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: 405 - HTTP verb used to access this page is not allowed
« Reply #1 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?