= Aktualizuj dane kontrahenta = ---- ''Informacje o wprowadzenie funkcjonalności:'' || Wersja systemu || Wersja modułu/funkcji || Data kompilacji || Zmiany || Opis || || 4.6.30, 4.7.2 || 0.1 || 10.01.2015 || Dodanie || Dodanie funkcji || ---- ''' Definicja parametrów: ''' {{{ #!php }}} ''' Przykłady wywołań: ''' {{{ #!php // Plik MyService.php umieszczony w apps/edokumenty. // MyService.php 'http://{host}:{port}/eDokumentyApi.php', "uri" => "eDokumentyAPI", 'encoding'=>'UTF-8' ); $client = new EDokApiClient(NULL, $options); $client->setUser(EDOK_API_LOGIN); $client->setPass(md5(EDOK_API_PASSWORD)); $header = new SoapHeader('eDokumentyAPI', 'entity_symbol', DEFAULT_ENTITY_SYMBOL); $client->__setSoapHeaders($header); $file = array(); try { $data = array( 'contid' => 56, 'notes_' => 'Nowe uwagi' ); $contid = $client->updateContact($data); var_dump($contid); } catch(SoapFault $fault) { var_dump($fault); if ($fault->faultcode < 100) { trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR); } } ?> }}}