Skip to content

Instantly share code, notes, and snippets.

@pedroelsner
Created October 10, 2012 18:15
Show Gist options
  • Save pedroelsner/3867431 to your computer and use it in GitHub Desktop.
Save pedroelsner/3867431 to your computer and use it in GitHub Desktop.
WebService - NO
<?php
try{
$webservice = new novw_webservice();
$result = $webservice->LerCadastro(array('cpf' => '346.099.268-90'));
unset($webservice);
} catch (exception $e) {
echo $e->faultstring;
exit();
}
echo $result->LerCadastroResult->NOME;
echo '<br><br><br><br>';
try{
$webservice = new novw_webservice();
$result = $webservice->InserirCadastro(array(
'cad' => array(
'ID' => 0,
'CPF' => '999.999.999-99',
'QTD_FUNCIONARIOS' => 0,
'QTD_ELEVADORES' => 0,
'QTD_FILHOS' => 0,
'DTHR_CADASTRO' => Date("Y-m-d\TH:i:s.B"),
'DTHR_ALTERACAO' => Date("Y-m-d\TH:i:s.B"),
'DTHR_SINC' => Date("Y-m-d\TH:i:s.B"),
)
));
unset($webservice);
} catch (exception $e) {
echo $e->faultstring;
exit();
}
echo $result->InserirCadastroResult->NOME;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment