Example #1
0
    print "\r\nResponse was:\r\n" . preXml($client->__getLastResponse()) . "\r\n";
} catch (SoapFault $x) {
    print "Exception:\r\n" . $x . "\r\n";
}
?>
 
    </pre>

    <h2>xsd:int GiveMeInteger()</h2>
    <pre class="console">
<?php 
try {
    print "GiveMeInt() returns:\r\n";
    ?>
<span class="return"><?php 
    echo htmlspecialchars(var_export($client->GiveMeInteger(), true));
    ?>
</span><?php 
    print "\r\n\r\nRequest was:\r\n" . preXml($client->__getLastRequest()) . "\r\n";
    print "\r\nResponse was:\r\n" . preXml($client->__getLastResponse()) . "\r\n";
} catch (SoapFault $x) {
    print "Exception:\r\n" . $x . "\r\n";
}
?>
 
    </pre>

    <h2>xsd:double GiveMeFloat()</h2>
    <pre class="console">
<?php 
try {