Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.69 KB | None | 0 0
  1. <?php
  2. /*
  3. AnsiString pCaminhoWebService = "http://192.168.1.47:8080/lai-web/ServicoDeReceitaOrcamentaria?wsdl";
  4. int pExercicio = 2015;
  5. AnsiString pCodigoAuxiliar = "9CJEZ5";
  6. */
  7.  
  8. $servico = 'ServicoReceitaOrcamentaria';
  9. $host = 'http://localhost:8080/lai-web/' . $servico . '?wsdl';
  10. $SoapClient = new SoapClient($host);
  11.  
  12.  
  13. echo '<pre>';
  14.  
  15. try {
  16.     $data = $SoapClient->__soapCall(
  17.         'receitaOrcamentaria',
  18.         [['exercicio' => 2015, 'entidade' => '9CJEZ5']]
  19.     );    
  20.     print_r((array)json_decode($data->return->jsonObj));    
  21.    
  22. } catch (SoapFault $e) {
  23.     echo 'Funcoes: ';
  24.     print_r($SoapClient->__getFunctions());    
  25.     echo $e->getMessage() . ' => ' . $host;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement