Bonjour,
J'ai un problème avec des Web Services que j'essaie d'interroger. Lorsque j'appelle des WS avec paramètres la requête XML envoyée n'est pas bonne : il manque des préfixes dans les noms des paramètres. Ceux-ci apparaissent pourtant bien dans les entêtes.
Ex :
Ce que j'envoie :
Ce que je devrais envoyer :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 <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 xmlns:NS1="http://xxx.com/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <NS1:MyFonction> <code xsi:type="xsd:string">TEST</code> <with_no_accuse xsi:type="xsd:boolean">true</with_no_accuse> <depuis_nb_jour xsi:type="xsd:int">0</depuis_nb_jour> <masque_de_donnee xsi:type="xsd:int">0</masque_de_donnee> <nb_max_objxsi:type="xsd:int">10</nb_max_obj> </NS1:MyFonction> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 <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:MyFonction xmlns:NS1="http://xxx.com/"> <NS1:code xsi:type="xsd:string">TEST</NS1:code> <NS1:with_no_accuse xsi:type="xsd:boolean">true</NS1:with_no_accuse> <NS1:depuis_nb_jour xsi:type="xsd:int">0</NS1:depuis_nb_jour> <NS1:masque_de_donnee xsi:type="xsd:int">0</NS1:masque_de_donnee> <NS1:nb_max_obj xsi:type="xsd:int">10</NS1:nb_max_obj> </NS1:MyFunction> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Remarquez qu'il n'y a que dans le nom des paramètres que ce n'est pas là. Est-ce un problème lors de l'import ? Y a t-t-il une option etc. ? Je n'ai rien trouvé...
Merci d'avance.
Partager