Zmiany pomiędzy wersją 2 and wersją 3 dla DeployerGuide/Others/eDokumentyApi/CreateDocument
- Data i czas:
- 02/08/12 13:51:07 (13 years temu)
Legend:
- Bez zmian
- Dodane
- Usunięte
- Zmienione
-
DeployerGuide/Others/eDokumentyApi/CreateDocument
v2 v3 53 53 $client->__setSoapHeaders($header); 54 54 55 // Tworzy kontakt 56 $contid = NULL; 55 $doc_id = NULL; 57 56 58 57 try { 59 58 $data = array( 60 'name_1' => 'SOAP TEST'.date('d H:m:s'), 61 'name_2' => 'SOAPTEST', 62 'nip___' => 1111111111, 63 'street' => 'Główna', 64 'symbol' => 'FGH99' 65 ); 66 $contid = $client->createContact($data); 67 var_dump($contid); 59 'dscrpt' => 'SOAP TEST '.date('d H:m:s'), 60 'prc_id' => 567, 61 'dctpid' => 1, 62 'target' => 54, 63 'from_contact_symbol' => '12345', 64 'to_contact_symbol' => '54321', 65 ); 66 $doc_id = $client->createDocument($data); 67 var_dump($doc_id); 68 } catch(SoapFault $fault) { 69 var_dump($fault); 68 70 69 } catch(SoapFault $fault) {70 71 var_dump($fault);72 73 71 if ($fault->faultcode < 100) { 74 72 trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR);