I have a program written in Delphi 2009. It uses SOAP over HTTP over SSL. Thus, the SOAP request launches the HTTP request, which is processed by Microsoft Internet Explorer through the DLL. Then MSIE will pop up asking for a username.
But now I need to compile it in Delphi XE, and I had a problem. the program does not want to enter SSL. No popup. Thus, it seems that the trigger does not want to work.
The error appears in the second line of this code:
mantis:=GetMantisConnectPortType(false, mantisurl); mi := mantis.mc_issue_get(username,password,MantisIssue);
Error
Project IssueReporter.exe raised exception class ESOAPHTTPException with message 'Authorization Required (401) - 'https://***/mantis/api/soap/mantisconnect.php''.
Connection Procedure List
function GetMantisConnectPortType(UseWSDL: Boolean; Addr: string; HTTPRIO: THTTPRIO): MantisConnectPortType; const defWSDL = 'https://***/mantis/api/soap/mantisconnect.php?wsdl'; defURL = 'https://***/mantis/api/soap/mantisconnect.php'; defSvc = 'MantisConnect'; defPrt = 'MantisConnectPort'; var RIO: THTTPRIO; begin Result := nil; if (Addr = '') then begin if UseWSDL then Addr := defWSDL else Addr := defURL; end; if HTTPRIO = nil then RIO := THTTPRIO.Create(nil) else RIO := HTTPRIO; try Result := (RIO as MantisConnectPortType); if UseWSDL then begin RIO.WSDLLocation := Addr; RIO.Service := defSvc; RIO.Port := defPrt; end else RIO.URL := Addr; finally if (Result = nil) and (HTTPRIO = nil) then RIO.Free; end; end;
mc_issue_get is part
MantisConnectPortType = interface(IInvokable)
a has an announcement:
function mc_issue_get(const username: string; const password: string; const issue_id: Int64): IssueData; stdcall;
In the browser and in the old exe built in 2009, everything works fine. Help solve this problem. Taras, Kiev
Taras source share