12 require_once(
'../lib/nusoap.php');
13 require_once(
'../lib/nusoapmime.php');
23 echo
'<h2>Constructor error</h2><pre>' .
$err .
'</pre>';
26 $client->setHTTPEncoding(
'deflate, gzip');
30 echo
'<h2>Fault</h2><pre>'; print_r(
$result); echo
'</pre>';
34 echo
'<h2>Error</h2><pre>' .
$err .
'</pre>';
36 echo
'<h2>Result</h2><pre>'; print_r(
$result); echo
'</pre>';
37 echo
'<h2>Attachments</h2><pre>';
38 $attachments =
$client->getAttachments();
39 foreach ($attachments as $a) {
40 echo
'Filename: ' . $a[
'filename'] .
"\r\n";
41 echo
'Content-Type: ' . $a[
'contenttype'] .
"\r\n";
42 echo
'cid: ' . htmlspecialchars($a[
'cid'], ENT_QUOTES) .
"\r\n";
43 echo htmlspecialchars($a[
'data'], ENT_QUOTES);
49 echo
'<h2>Request</h2><pre>' . htmlspecialchars(
$client->request, ENT_QUOTES) .
'</pre>';
50 echo
'<h2>Response</h2><pre>' . htmlspecialchars(
$client->response, ENT_QUOTES) .
'</pre>';
51 echo
'<h2>ResponseData</h2><pre>' . htmlspecialchars(
$client->responseData, ENT_QUOTES) .
'</pre>';
52 echo
'<h2>Debug</h2><pre>' . htmlspecialchars(
$client->debug_str, ENT_QUOTES) .
'</pre>';