Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- AnsiString pCaminhoWebService = "http://192.168.1.47:8080/lai-web/ServicoDeReceitaOrcamentaria?wsdl";
- int pExercicio = 2015;
- AnsiString pCodigoAuxiliar = "9CJEZ5";
- */
- $servico = 'ServicoReceitaOrcamentaria';
- $host = 'http://localhost:8080/lai-web/' . $servico . '?wsdl';
- $SoapClient = new SoapClient($host);
- echo '<pre>';
- try {
- $data = $SoapClient->__soapCall(
- 'receitaOrcamentaria',
- [['exercicio' => 2015, 'entidade' => '9CJEZ5']]
- );
- print_r((array)json_decode($data->return->jsonObj));
- } catch (SoapFault $e) {
- echo 'Funcoes: ';
- print_r($SoapClient->__getFunctions());
- echo $e->getMessage() . ' => ' . $host;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement