Consume an API with Lazarus + Synapse lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- Odacir · 2020-01-30 16:45 Hello, I'm trying connect / use an API from a service in Lazarus (and OS X), but things don't go ahead. Its my first contact trying to use an API on Lazarus. The api is from: http://api.proofhq.com I tryed connect to start with this code, but return error 500 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i var  http: THTTPSend;  Url: string;begin  http := THTTPSend.Create;  Url := 'https://soap.proofhq.com/19_2_6/soap.wsdl';  if not http.HTTPMethod('GET', Url) then    begin      ShowMessage(http.Headers.text + #13 + '(' + IntToStr(http.ResultCode) + ')' + http.ResultString);    end  else    begin      ShowMessage(http.Headers.text + #13 + '(' + IntToStr(http.ResultCode) + ')' + http.ResultString);    end;  http.Free;end;   I added ssl_openssl in the uses but stay returning error 500. What i doing wrong? ---------------------------------------------------------------------- lainz · 2020-01-30 17:00 For SOAP I use WST https://wiki.freepascal.org/Web_Service_Toolkit It has a tool to import the entire WSDL into classes (and maybe you need to tweak these classes a bit in order to work, but it finally works), and you can call the methods directly using classes to fill the data / retrieve the data in OOP way, without touching nothing of XML. ---------------------------------------------------------------------- Odacir · 2020-01-30 17:49 Hello lainz, I will try to find a example / tutorial about the use of WST. With the wiki i can't do nothing here Thanks!