Bonjour,
Je dois intégrer une api soap dans un formulaire en PHP
Je n'arrive pas à me connecter à celle-ci ( je ne vois pas où ajouter l'usernane et le password)
J'ai déjà essayé de mettre le wsdl à la fin de mon url mais rien n'y fait.
J'ai une erreur:SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://wsdnarec.haras-nationaux.fr/dnaservices/DiffusionServices' : failed to load external entity "http://wsdnarec.haras-nationaux.fr/dnaservices/DiffusionServices"Merci de votre aide si vous pouvez m'éclairer
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
23
24
25
26
27
28
29
30
31 <?php try{ $soapclient=new SoapClient('http://wsdnarec.haras-nationaux.fr/dnaservices/DiffusionServices'); $param=array( 'isoLangage'=>'EN', 'utilisateurID'=>'LABEO', 'applicationID'=>'WSDNA', 'identID'=>'526797', 'identKey'=>'T'); $response= $soapclient->getInformationPreleveur($param); var_dump($response); echo'<br><br><br>'; $array=json_encode($response,true); print_r($array); echo'<br><br><br>'; echo'<br><br><br>'; foreach ($array as $item){ echo '<pre>'; var_dump($item); } }catch(Exception $e){ echo $e->getMessage(); ?> }
Partager