Einzelnen Beitrag anzeigen

helste

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

AW: SOAP Client Problem treibt mich in den Wahnsinn

  Alt 11. Feb 2019, 14:01
Die RAW Ansichten der Requests aus Filddler:

Das funktioniert:

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>


Das funktioniert nicht

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>


Wenn ich das mit Winmerge vergleiche, bekomme ich folgende Unterschiede:
Die Header kommen teilweise in unterschiedlicher Reihenfolge.
die Content-Length unterscheidet sich um 1 Byte
und beim nicht funktionierenden kommt noch ein extra Header Eintrag: "Pragma: no-cache" dazu.
Wie ich den weg bekomme, weiß ich nicht.
Mehr Unterschied sehe ich da nicht.
  Mit Zitat antworten Zitat