Zmiany pomiędzy wersją 1 and wersją 2 dla DeployerGuide/Others/eDokumentyApi/CreateContact

Pokaż
Ignoruj:
Data i czas:
02/08/12 12:46:33 (12 years temu)
Autor:
TS (IP: 213.227.67.33)
Komentarz:

--

Legend:

Bez zmian
Dodane
Usunięte
Zmienione
  • DeployerGuide/Others/eDokumentyApi/CreateContact

    v1 v2  
    6969$client->__setSoapHeaders($header); 
    7070 
     71$contid = NULL; 
     72 
     73try { 
     74    $data = array( 
     75        'name_1' => 'SOAP TEST '.date('d H:m:s'), 
     76        'name_2' => 'SOAPTEST', 
     77        'nip___' => 1111111111, 
     78        'street' => 'Główna',         
     79    ); 
     80    $contid = $client->createContact($data); 
     81    var_dump($contid); 
     82 
     83} catch(SoapFault $fault) { 
     84     
     85    var_dump($fault); 
     86     
     87    if ($fault->faultcode < 100) { 
     88        trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR); 
     89    } 
     90} 
    7191 
    7292