LDAP: couldn't connect to LDAP server
Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
lpro:ws:ws_avec_wsdl [2016/01/06 12:59] jbaudry |
lpro:ws:ws_avec_wsdl [2016/12/15 15:47] (current) jbaudry |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== WS avec fichier WSDL ====== | ====== WS avec fichier WSDL ====== | ||
| - | * Client php | + | * Client php client.php |
| <code php> | <code php> | ||
| <?php | <?php | ||
| Line 40: | Line 40: | ||
| </code> | </code> | ||
| - | * Serveur PHP | + | * Serveur PHP : serveur.php |
| <code php> | <code php> | ||
| Line 51: | Line 51: | ||
| // Nom de notre web-service | // Nom de notre web-service | ||
| class Server { | class Server { | ||
| - | // Le service Hello que l'on a définit dans notre format wsdl | + | // Le service QuelJour que l'on a définit dans notre format wsdl |
| + | function Jour($parm) { | ||
| + | $aJour[1] = 'Lundi'; | ||
| + | $aJour[2] = 'Mardi'; | ||
| + | $aJour[3] = 'Mercredi'; | ||
| + | $aJour[4] = 'Jeudi'; | ||
| + | $aJour[5] = 'Vendredi'; | ||
| + | $aJour[6] = 'Samedi'; | ||
| + | $aJour[0] = 'Dimanche'; | ||
| + | return $aJour[date("w",strtotime($parm))]; | ||
| + | } | ||
| function hellotest($parm) { | function hellotest($parm) { | ||
| - | return "Hello ".$parm; | + | return "Hello ".$parm ; |
| } | } | ||
| } | } | ||
| + | |||
| // On tente d'instancier la classe soapServer | // On tente d'instancier la classe soapServer | ||
| Line 95: | Line 106: | ||
| </code> | </code> | ||
| - | * WSDL (généré avec eclipse) | + | * WSDL (généré avec eclipse) : Hello.wsdl |
| <code xml> | <code xml> | ||