View difference between Paste ID: DUffgF5Q and
SHOW: | | - or go back to the newest paste.
1-
1+
Problème :
2
Lors d'un conférence à 1 personne, l'appel a telephonyConferenceGetInfos fonctionne bien.
3
Lors que le 2eme participant rejoint, une erreur est déclechée : 
4
	SoapFault exception: [Client] SOAP-ERROR: Encoding: Violation of encoding rules
5
6
Cette erreur est ensuite répétée sur tous les appels, peu importe le nb de personne connectées.
7
8
------------------------------
9
10
Config utilisée :
11
Srv Kimsufi Debian Apache2 PHP5 avec ext SOAP
12
Testé aussi sur mac
13
14
-----------------------------
15
16
Fichier test.php
17
<?php
18
try {
19
 $soap = new SoapClient("https://www.ovh.com/soapi/soapi-re-1.63.wsdl");
20
21
 //login
22
 $session = $soap->login("be17539-ovh", "xxx","fr", false);
23
 echo "login successfull\n";
24
25
 //telephonyConferenceGetInfos
26
 $result = $soap->__soapCall("telephonyConferenceGetInfos", array("session"=>$session, "number"=>"xxx", "country"=>"xx"));
27
 echo "telephonyConferenceGetInfos successfull\n";
28
 print_r($result); // your code here ...
29
30
 //logout
31
 $soap->logout($session);
32
 echo "logout successfull\n";
33
34
} catch(SoapFault $fault) {
35
 echo "<pre>".$fault;
36
}
37
38
39
-----------------------------
40
41
Réponse obtenue avec http://www.soapclient.com/ : D'ou vient le troisième participant (nous étions 2 appelants) avec le hash dans le tag joinsince ???
42
43
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" (...)>
44
<soap:Body>
45
<telephonyConferenceGetInfosResponse xmlns="http://soapi.ovh.com/manager">
46
<typens:return xmlns:typens="http://soapi.ovh.com/manager" xsi:type="typens:telephonyConferenceGetInfosReturn">
47
<typens:participants xmlns:typens="http://soapi.ovh.com/manager" soapenc:arrayType="typens:telephonyConferenceParticipantStruct[3]" xsi:type="typens:MyArrayOfTelephonyConferenceParticipantStructType">
48
<typens:item xmlns:typens="http://soapi.ovh.com/manager" xsi:type="typens:telephonyConferenceParticipantStruct">
49
<energy xsi:nil="true" xsi:type="xsd:int"/>
50
<talking xsi:type="xsd:boolean">false</talking>
51
<memberid xsi:nil="true" xsi:type="xsd:int"/>
52
<muted xsi:type="xsd:boolean">false</muted>
53
<callerid xsi:nil="true" xsi:type="xsd:string"/>
54
<callername xsi:nil="true" xsi:type="xsd:string"/>
55
<deaf xsi:type="xsd:boolean">false</deaf>
56
<joinsince xsi:type="xsd:int">HASH(0x137e81a8)</joinsince>
57
</typens:item>
58
<typens:item xmlns:typens="http://soapi.ovh.com/manager" xsi:type="typens:telephonyConferenceParticipantStruct">
59
<energy xsi:type="xsd:int">300</energy>
60
<talking xsi:type="xsd:boolean">false</talking>
61
<memberid xsi:type="xsd:int">508</memberid>
62
<muted xsi:type="xsd:boolean">true</muted>
63
<callerid xsi:type="xsd:string">06 xx xx xx xx</callerid>
64
<callername xsi:type="xsd:string">06 xx xx xx xx</callername>
65
<deaf xsi:type="xsd:boolean">false</deaf>
66
<joinsince xsi:type="xsd:int">134</joinsince>
67
</typens:item>
68
<typens:item xmlns:typens="http://soapi.ovh.com/manager" xsi:type="typens:telephonyConferenceParticipantStruct">
69
<energy xsi:type="xsd:int">300</energy>
70
<talking xsi:type="xsd:boolean">false</talking>
71
<memberid xsi:type="xsd:int">507</memberid>
72
<muted xsi:type="xsd:boolean">true</muted>
73
<callerid xsi:type="xsd:string">09 xx xx xx xx</callerid>
74
<callername xsi:type="xsd:string">09 xx xx xx xx</callername>
75
<deaf xsi:type="xsd:boolean">false</deaf>
76
<joinsince xsi:type="xsd:int">135</joinsince>
77
</typens:item>
78
</typens:participants>
79
<locked xsi:type="xsd:boolean">false</locked>
80
<parties xsi:type="xsd:int">2</parties>
81
</typens:return>
82
</telephonyConferenceGetInfosResponse>
83
</soap:Body>
84
</soap:Envelope>