Bonjour je suis stagiaire je viens de commencer les web services , j'ai appélé une methode de php et je vouler afficher la reponse du serveur , mais une exception de SoapFault se declence
voici l'erreur
Code JavaScript : 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70 object(SoapFault)#2 (10) { ["message":protected]=> string(33) "looks like we got no XML document" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(75) "/var/www/formap-dev/public_html/web-services/testFormateurEtablissement.php" ["line":protected]=> int(33) ["trace":"Exception":private]=> array(2) { [0]=> array(4) { ["function"]=> string(6) "__call" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> string(23) "getFormationByFormateur" [1]=> array(4) { [0]=> string(64) "mecReprEwEphaWrasWaphe3red8de6RUyEspAp$e7?fRUxUzamez34$qa8enaS8a" [1]=> int(11) [2]=> string(5) "2etab" [3]=> string(5) "3form" } } } [1]=> array(6) { ["file"]=> string(75) "/var/www/formap-dev/public_html/web-services/testFormateurEtablissement.php" ["line"]=> int(33) ["function"]=> string(23) "getFormationByFormateur" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(4) { [0]=> string(64) "mecReprEwEphaWrasWaphe3red8de6RUyEspAp$e7?fRUxUzamez34$qa8enaS8a" [1]=> int(11) [2]=> string(5) "2etab" [3]=> string(5) "3form" } } } ["previous":"Exception":private]=> NULL ["faultstring"]=> string(33) "looks like we got no XML document" ["faultcode"]=> string(6) "Client" ["faultcodens"]=>
par contre si je met echo $client->lastResponse() , j'ai une reponse qui s'affiche avec un document xml incomplet
(balises qui ne se ferme pas sur la fin).
Je vous remercie d'avance de votre aide.
Partager