[SOAP] Différence de fichiers
Bonjour,
Je rencontre un problème avec un fournisseur sur lequel je dois me connecter grace à SOAP.
Ils me disent que le problème doit venir du fait que le fichier envoyé différe du schéma de ce qu'ils attendent.
Voici ce que j'envoi
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
<?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" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<NS1:Payment xmlns:NS1="http://xxxxx.com/gateway/">
<memberId xsi:type="xsd:int">000</memberId>
<memberGuid xsi:type="xsd:string">000000-0000-0000-0000-000000000000</memberGuid>
<countryId xsi:type="xsd:int">250</countryId>
<amount xsi:type="xsd:decimal">20.95</amount>
<currencyId xsi:type="xsd:int">978</currencyId>
</NS1:Payment>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope> |
et voici ce qu'ils attendent
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<Payment xmlns="http://xxxxx.com/gateway/">
<memberId>000</memberId>
<memberGuid>000000-0000-0000-0000-000000000000</memberGuid>
<countryId>250</countryId>
<amount>20.95</amount>
<currencyId>978</currencyId>
</Payment>
</soap:Body>
</soap:Envelope> |
Normalement le serveur devrait pouvoir interpréter mon fichier vu qu'il est juste plus complet ?
Ou bien faut il qu'il soit complètement identique ?
Je précise quand même que le schéma de ce que j'envoi est généré automatiquement avec Delphi 2005 grace au système d'importation intégré.
Merci ^^