84 | | try { |
85 | | $data = array(); |
86 | | for ($i = 100; $i--;) { |
87 | | $data[] = array( |
88 | | 'dscrpt' => 'r '.date('d H:m:s').' '.$i, |
89 | | 'reg_id' => $reg_data['id____'], |
90 | | 'assdasd' => $i, |
91 | | 'e3e3e' => '12345', |
92 | | 'r4r4r4' => md5($i.'aaaa'), |
93 | | ); |
94 | | } |
95 | | // może być json |
96 | | // $data = json_encode($data); |
97 | | $result = $client->addRegisterEntries($reg_data['id____'], $data); |
98 | | var_dump($result); |
99 | | |
100 | | } catch(SoapFault $fault) { |
101 | | |
102 | | var_dump($fault); |
103 | | |
104 | | if ($fault->faultcode < 100) { |
105 | | trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR); |
106 | | } |
107 | | } |
108 | | |
109 | | try { |
110 | | $data = array( |
111 | | 'name__' => 'oskar_reg_2', |
112 | | ); |
113 | | $max_date = $client->getMaxDateForRegister($data); |
114 | | var_dump($max_date); |
115 | | |
116 | | } catch(SoapFault $fault) { |
117 | | |
118 | | var_dump($fault); |
119 | | |
120 | | if ($fault->faultcode < 100) { |
121 | | trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR); |
122 | | } |
123 | | } |