20 | | ?>// Tworzy kontakt |
21 | | $contid = NULL; |
22 | | |
23 | | try { |
24 | | $data = array( |
25 | | 'name_1' => 'SOAP TEST'.date('d H:m:s'), |
26 | | 'name_2' => 'SOAPTEST', |
27 | | 'nip___' => 1111111111, |
28 | | 'street' => 'Główna', |
29 | | 'symbol' => 'FGH99' |
30 | | ); |
31 | | $contid = $client->createContact($data); |
32 | | var_dump($contid); |
33 | | |
34 | | } catch(SoapFault $fault) { |
35 | | |
36 | | var_dump($fault); |
37 | | |
38 | | if ($fault->faultcode < 100) { |
39 | | trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR); |
40 | | } |
41 | | } |
42 | | }}} |
| 20 | ?> |