Delphi SOAP Operation Aborted Windows 10 Insider

If you encounter issues with soap applications in Delphi. Build 10547 of Windows 10 to current (10565) have change the WinINet InternetErrorDlg behavior.

As Windows 10 are insider builds this may just be a bug.

The current workaround we have used has been to edit SOAP.SoapHTTPTrans.pas

(Make sure you then add C:\Program Files (x86)\Embarcadero\Studio\xx.x\source\soap to your library path)

This example has been tested in Delphi D10 Seattle.

function THTTPReqResp.HandleWinInetError(LastError: DWord;
Request: HINTERNET;
RaiseError: Boolean): DWord;

// new
case LastError of
ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED : Result := ERROR_INTERNET_FORCE_RETRY;
ERROR_SUCCESS :
begin
if Result = ERROR_CANCELLED then
Result := ERROR_SUCCESS;
end;
end;

// if LastError = ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED then
// Result := ERROR_INTERNET_FORCE_RETRY;

 

Update

Issues has been resolved in Windows 10 Build 10576

Leave a Comment

Your email address will not be published. Required fields are marked *