Bonjour,
J'utilise un service soap qui me retourne une reponse dans la variable $reponse
lorsque je fait
j'obtiens ceci
Code : Sélectionner tout - Visualiser dans une fenêtre à part var_dump($response);
Comment faire pour acceder aux chaines ligne 120
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
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140 object(stdClass)#2 (1) { ["result"]=> object(stdClass)#3 (23) { ["className"]=> string(39) "com.editeur.xnet.works.backend.bean.MRBean" ["id"]=> string(16) "138257a0fa7-1449" ["code"]=> string(10) "WR12-01440" ["description"]=> string(24) "pb entrainement roulette" ["addressee"]=> object(stdClass)#4 (4) { ["className"]=> string(43) "com.editeur.xnet.system.backend.bean.ActorBean" ["id"]=> string(15) "135859c781d-294" ["code"]=> string(3) "NST" ["description"]=> string(15) "Nicolas" } ["amount"]=> float(0) ["boxLocation"]=> object(stdClass)#5 (4) { ["className"]=> string(44) "com.editeur.xnet.equipment.backend.bean.BoxBean" ["id"]=> string(13) "BOX_SALEVE-GV" ["code"]=> string(9) "SALEVE-GV" ["description"]=> string(18) "LOCAL GRAND VOLUME" } ["boxMain"]=> object(stdClass)#6 (4) { ["className"]=> string(44) "com.editeur.xnet.equipment.backend.bean.BoxBean" ["id"]=> string(15) "BOX_WS-MACHINE03" ["code"]=> string(11) "WS-MACHINE03" ["description"]=> string(40) "Workstation welding winding test LAH/LAS" } ["createdBy"]=> object(stdClass)#7 (4) { ["className"]=> string(43) "com.editeur.xnet.system.backend.bean.ActorBean" ["id"]=> string(15) "133ae6fcbff-da8" ["code"]=> string(7) "OP_LGVA" ["description"]=> string(16) "OP Leader " } ["creationDate"]=> string(29) "2012-06-26T10:21:52.847+02:00" ["eqptBroken"]=> bool(false) ["eqptUnavailable"]=> bool(false) ["expEnd"]=> string(25) "2012-06-26T10:21:52+02:00" ["material"]=> object(stdClass)#8 (4) { ["className"]=> string(49) "com.editeur.xnet.equipment.backend.bean.MaterialBean" ["id"]=> string(20) "MATERIAL_MACHINE03-P2" ["code"]=> string(11) "MACHINE03-P2" ["description"]=> string(15) "POSTE MACHINE" } ["site"]=> object(stdClass)#9 (4) { ["className"]=> string(42) "com.editeur.xnet.system.backend.bean.SiteBean" ["id"]=> string(13) "1332121dd71-e" ["code"]=> string(3) "LCH" ["description"]=> string(21) "Site Pays" } ["statusCode"]=> string(6) "CLOSED" ["workPriority"]=> string(1) "0" ["workRecept"]=> bool(false) ["comment"]=> string(0) "" ["WO"]=> object(stdClass)#10 (9) { ["className"]=> string(39) "com.editeur.xnet.works.backend.bean.WOBean" ["id"]=> string(16) "138257a0fa7-15b8" ["code"]=> string(10) "WO12-10003" ["description"]=> string(24) "pb entrainement roulette" ["expWOEnd"]=> string(25) "2012-06-26T10:21:52+02:00" ["statusCode"]=> string(6) "CLOSED" ["supervisor"]=> object(stdClass)#11 (4) { ["className"]=> string(43) "com.editeur.xnet.system.backend.bean.ActorBean" ["id"]=> string(15) "135859c781d-294" ["code"]=> string(3) "NST" ["description"]=> string(15) "Nicolas" } ["treatComment"]=> string(130) " Le moteur de la roue noir est grippé ( DN1469) , changement du moteur récupéré sur le dn970 OK " ["workPriority"]=> string(1) "0" } ["xtraDate01"]=> string(29) "2012-06-26T10:21:52.847+02:00" ["xtraDate02"]=> string(29) "2012-06-26T10:21:52.847+02:00" ["xtraDate03"]=> string(29) "2012-06-26T10:21:52.847+02:00" } }et ligne 74 ?"Nicolas"Je ne connais pas la syntaxe pour accéder à ce type de donnée. (tableau d'objet ?? )"MACHINE03-P2"
Merci
Partager