Einzelnen Beitrag anzeigen

helste

Registriert seit: 16. Jul 2009
72 Beiträge
 
Delphi 10.1 Berlin Professional
 
#6

AW: SOAP Client Problem treibt mich in den Wahnsinn

  Alt 11. Feb 2019, 12:28
Ja, diese Unterschiede habe ich gesehen.
Die Frage ist nur, was davon die Ursache ist und wie ich das korrigieren kann.
"Pragma: no-cache" kommt automatisch im Header dazu und ich weiß nicht warum.
Das gleiche gilt für "<?xml version="1.0"?>".

Keine Ahnung woher das kommt.

Ich denke, dass die Bezeichnung des namespace egal ist.

Ich habe jetzt mal in SOAP UI den Request durch den von meiner Anwendung geschickten Request ersetzt. Da funktioniert das genau so.

Hier das RAW aus Fiddler von meiner App:

POST http://piwstest.eu.sappi.com/XISOAPA.../sappi.com/atp HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "http://sap.com/xi/WebService/soap1.1"
Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXX
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
Host: piwstest.eu.sappi.com
Content-Length: 357
Connection: Keep-Alive
Pragma: no-cache

<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Body><ZECOM_EU_CATALOG_STATUS_WS xmlns="urn:sap-com:document:sap:rfc:functions"></ZECOM_EU_CATALOG_STATUS_WS></SOAP-ENV:Body></SOAP-ENV:Envelope>


Und hier das RAW vom SOAP UI Request:

POST http://piwstest.eu.sappi.com/XISOAPA.../sappi.com/atp HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "http://sap.com/xi/WebService/soap1.1"
Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXX
Content-Length: 356
Host: piwstest.eu.sappi.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Body><ZECOM_EU_CATALOG_STATUS_WS xmlns="urn:sap-com:document:sap:rfc:functions"></ZECOM_EU_CATALOG_STATUS_WS></SOAP-ENV:Body></SOAP-ENV:Envelope>


Der einzige Unterschied den ich da sehe ist, abgesehen von der Reihenfolge im Header, "Pragma: no-cache".
Warum das mitgeschickt wird, ist mir schleierhaft.
Ich muss mal schauen, woher das kommt und wie ich das weg bekomme.
Wenn es dann immer noch nicht geht, weiß ich auch nicht mehr.
  Mit Zitat antworten Zitat