Bonjour,
J'essaie d'envoyer des sms via SOAPi depuis une page en PHP sur un serveur kimsufi (debian lenny) et j'obtiens systématiquement l'erreur suivante :
SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://www.ovh.com/soapi/soapi-re-1.9.wsdl' : failed to load external entity "https://www.ovh.com/soapi/soapi-re-1.9.wsdl" in /var/www/test/sendsms.php:30 Stack trace: #0 /var/www/test/sendsms.php(30): SoapClient->SoapClient('https://www.ovh...') #1 {main}
J'ai utilisé la doc trouvée ici :
http://guides.ovh.com/TelSmsSend
Si je fais un essai avec un espace d'hébergement mutualisé "start1g" ça fonctionne bien, donc c'est bien un problème au niveau de mon serveur.
Pourtant si je regarde avec un phpinfo(), soap est bien installé et activé.
A priori, il y aurait un problème relatif à libxml2 avec soap et les urls en https :
http://bugs.php.net/bug.php?id=31050
Donc, il semble que le souci soit ça :
If libxml2 static library is available in the {prefix} directory
(libxml2.a), PHP includes libxml2 library into itself at buildtime.
In that case, soap FAILS to work with https.
If libxml2 shared library is available in the {prefix} directory
(libxml2.so), PHP doesn't includes libxml2 library into itself at
buildtime, but seach the library at runtime.
In that case, soap works with https fine.
Le problème c'est que je ne sais pas comment faire pour passer libxml2 en shared library.
Une idée ?
Merci d'avance.