Einzelnen Beitrag anzeigen

Benutzerbild von himitsu
himitsu

Registriert seit: 11. Okt 2003
Ort: Elbflorenz
43.169 Beiträge
 
Delphi 12 Athens
 
#3

AW: Soap-Service: XML-Fehler

  Alt 1. Feb 2023, 13:02
Delphi/Indy-Update?

Ich hab grade den Fall bei einer REST-Komponente.
Alter Code läuft, aber im neuen Delphi nicht.

Die Anfrage/Response ist anders, daher liefert der REST-Server nichts, bzw. was Falsches.

Wir wollen JSON, aber jetzt sendet das Ding teilweise XML zurück, bzw. auch gern mal leere Daten.
Code:
[ XE ]
GET /user/getErpPublicKey HTTP/1.1
Content-Type: application/json; charset=UTF-8
Host: localhost:9999
Accept: text/html, */*
Accept-Encoding: identity
User-Agent: Mozilla/3.0 (compatible; Indy Library)

[ 11 ]
GET /user/getErpPublicKey HTTP/1.1
Content-Type: application/json; charset=UTF-8
Host: localhost:9999
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/3.0 (compatible; Indy Library)

[ 11 + IdHTTP.Request.Accept := 'application/json'; ]
GET /user/getErpPublicKey HTTP/1.1
Content-Type: application/json; charset=UTF-8
Host: localhost:9999
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/3.0 (compatible; Indy Library)
Garbage Collector ... Delphianer erzeugen keinen Müll, also brauchen sie auch keinen Müllsucher.
my Delphi wish list : BugReports/FeatureRequests
  Mit Zitat antworten Zitat