Created
October 10, 2012 18:15
-
-
Save pedroelsner/3867431 to your computer and use it in GitHub Desktop.
WebService - NO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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