Skip to content

Instantly share code, notes, and snippets.

@FraGoTe
Created March 21, 2017 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FraGoTe/ae9e9108f187f242b848553c03d10322 to your computer and use it in GitHub Desktop.
Save FraGoTe/ae9e9108f187f242b848553c03d10322 to your computer and use it in GitHub Desktop.
<?php
try {
$lisppg = new Stdclass();
$lisppg->cCodCta = '010210000070';
$client = new SoapClient('http://200.60.60.115:8080/wTest/wTest?WSDL', array('trace' => 1));
$liRp = $client->lisppg($lisppg);
// $functions = $client->__getFunctions();
// $types = $client->__getTypes();
//var_dump($client->__getLastRequest(), '-----', $client->__getLastResponse());
echo '<table>';
echo '<thead>';
echo '<tr>';
echo '<td>';
echo 'ncapita';
echo '</td>';
echo '<td>';
echo 'nintpac';
echo '</td>';
echo '<td>';
echo 'cNroCuo';
echo '</td>';
echo '</tr>';
echo '</thead>';
echo '<tbody>';
foreach ($liRp->return as $value) {
echo '<tr>';
echo '<td>';
echo $value->ncapita;
echo '</td>';
echo '<td>';
echo $value->nintpac;
echo '</td>';
echo '<td>';
echo $value->cNroCuo;
echo '</td>';
echo '</tr>';
}
echo '</tbody>';
echo '</table>';
} catch (Exception $e) {
var_dump($e->getMessage());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment