Bonjour, j'utilise la fonction _soapcall de PHP afin d'appeler une fonction avec des paramètres
La réponse renvoyé par soap call est de la forme ci-dessous à savoir que les parametres ne sont pas inclus dans la balise <ns1:manageDlm />
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 $params = array( new SoapParam('FR','langId'), new SoapParam('0262123457','nd'), new SoapParam(null,'idTech'), new SoapParam('12345','siren'), new SoapParam('addNDToDLMExclusionList','operation'), ); try{ $response = $client->__soapCall($method,$params); } catch (SoapFault $fault) { echo "Fault code: {$fault->faultcode}"; echo "Fault string: {$fault->faultstring}"; debug($client->__getLastRequest()); debug($client->__getLastResponse()); }
or celle-ci devrait renvoyer cette réponse
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="" xmlns:ns2=""> <SOAP-ENV:Header> <ns2:Security> <ns2:UsernameToken> <ns2:Username>1234</ns2:Username> <ns2:Password>1234</ns2:Password> </ns2:UsernameToken> </ns2:Security> </SOAP-ENV:Header> <SOAP-ENV:Body> <ns1:manageDlm /> <langId>FR</langId> <nd>0262123457</nd> <idTech/> <siren>12345</siren> <operation>addNDToDLMExclusionList</operation> </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
12
13
14
15
16
17
18
19
20
21
22 <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="" xmlns:ns2=""> <SOAP-ENV:Header> <ns2:Security> <ns2:UsernameToken> <ns2:Username>1234</ns2:Username> <ns2:Password>1234</ns2:Password> </ns2:UsernameToken> </ns2:Security> </SOAP-ENV:Header> <SOAP-ENV:Body> <ns1:manageDlm> <langId>FR</langId> <nd>0262123457</nd> <idTech/> <siren>12345</siren> <operation>addNDToDLMExclusionList</operation> </ns1:manageDlm> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Partager