Example #1
0
    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:string GiveMeFault(xsd:string)</h2>
    <pre class="console">
<?php 
try {
    print "GiveMeFault(\"test string\") returns:\r\n";
    ?>
<span class="return"><?php 
    echo htmlspecialchars(var_export($client->GiveMeFault("test string"), 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>

</div></body>
</html>