AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke DelphiXE8 and WSDL, disable authentication via Smart Card Reader
Thema durchsuchen
Ansicht
Themen-Optionen

DelphiXE8 and WSDL, disable authentication via Smart Card Reader

Ein Thema von carmeloconny · begonnen am 20. Okt 2019 · letzter Beitrag vom 12. Dez 2019
Antwort Antwort
carmeloconny

Registriert seit: 20. Okt 2019
9 Beiträge
 
#1

AW: DelphiXE8 and WSDL, disable authentication via Smart Card Reader

  Alt 22. Okt 2019, 12:45
Hmm..

Obviously, Windows handles the smart card on its own and ignores alternative logins.

Maybe the group policies help here:
https://docs.microsoft.com/en-us/win...istry-settings

Or deactivating the SmartCard:
https://stackoverflow.com/questions/...ws-10/38474107
The card must be connected to the PC, because in another process of the program it is necessary to sign pdf file.
  Mit Zitat antworten Zitat
Benutzerbild von Sinspin
Sinspin

Registriert seit: 15. Sep 2008
Ort: Dubai
717 Beiträge
 
Delphi 10.3 Rio
 
#2

AW: DelphiXE8 and WSDL, disable authentication via Smart Card Reader

  Alt 22. Okt 2019, 14:56
As workaround, would it be possible to ask the customer/user to remove the card as long not needed? Then should it work for now.
As reason can you mention that it is for savety to have the card only in the reader if the signing process is needed.

That gives you also more time to find a better solution. And you can still proceed with the programming.

Also, did you tried another component for sending the requests? For some not really Delphi compatible WSDL's used i another component. Its a bit more work to send the requests and analyse the response, but its stable working since years. Its called IP*Works / IP*Works SSL from NSoftware.
You can not really import the WSDL, but since its just pieces of XML data which is send to the server and you get another piece back it might work.
Stefan
Nur die Besten sterben jung
A constant is a constant until it change.
  Mit Zitat antworten Zitat
carmeloconny

Registriert seit: 20. Okt 2019
9 Beiträge
 
#3

AW: DelphiXE8 and WSDL, disable authentication via Smart Card Reader

  Alt 30. Nov 2019, 11:29
Excuse my absence for all those who helped me.
The problem has not been resolved.
looking for a solution on the internet, I realized that I have to use WinHttp instead of WinINet.
WinHttp should not display dialogs, which is what I want.


I tried to replace, in HTTPRIOHTTPWebNode1BeforePost:
Code:
   auth := 'Authorization: Basic ' + TNetEncoding.Base64.Encode(FUserName + ':' + FPassword);

   if not HttpAddRequestHeaders(Data, PChar(auth), Length(auth), HTTP_ADDREQ_FLAG_ADD) then
   ShowMessage('HttpAddRequestHeaders' + SysErrorMessage(GetLastError()));
with
Code:
   auth := 'Authorization: Basic ' + TNetEncoding.Base64.Encode(FUserName + ':' + FPassword);
   if not WinHttpAddRequestHeaders(Data, PChar(auth), Length(auth), WinHTTP_ADDREQ_FLAG_ADD) then
   ShowMessage('WinHttpAddRequestHeaders: ' + SysErrorMessage(GetLastError()));
this doesn't work,error "handle is invalid".
how can I use WinHttp with HttpRio?
  Mit Zitat antworten Zitat
carmeloconny

Registriert seit: 20. Okt 2019
9 Beiträge
 
#4

AW: DelphiXE8 and WSDL, disable authentication via Smart Card Reader

  Alt 12. Dez 2019, 08:33
I solved it by calling the onWinInetError event of the HttpRio component.
Thanks to all, maybe the solution can serve others.
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:21 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz