Hallo zusammen
Ich habe folgendes Problem:
Ich habe ein WSDL in Delphi 2009 eingebunden.
Die übertragung über http klappt,
aber bei der Übertragung per https bringt er mir immer einen fehler.
Hier aber erstmal der Code:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, wsbis, SOAPHTTPClient;
type
TForm1 = class(TForm)
Button1: TButton;
Edit1: TEdit;
procedure Button1Click(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
LogonReq:LogonRequest;
LogonRes:LogonResponse;
cl: SOAPHTTPClient.THTTPRIO;
begin
LogonReq := LogonRequest.Create;
LogonReq.appId := '...';
LogonReq.credential := '...';
LogonReq.language := '...';
LogonReq.principal := '...';
LogonReq.processId := '...';
cl:=SOAPHTTPClient.THTTPRIO.Create(nil);
LogonRes:= GetBazeDirectRemote().logon(LogonReq);
Edit1.Text := LogonRes.sessionId;
end;
end.
Fehler:
Im Projekt Projekt.exe ist eine Exception der Klasse ESOAPHTTPException mit der Meldung 'A certificate is required to complete client authentication - URL:https://...-SOAPAction:""' aufgetreten.
Ich hoffe mir kann jemand helfen und sagen, was ich einbauen muss, damit es klappt.
Vielen Dank schon mal im Vorraus!