Created
March 21, 2017 23:54
-
-
Save FraGoTe/ae9e9108f187f242b848553c03d10322 to your computer and use it in GitHub Desktop.
This file contains 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 { | |
$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