12 require_once(
'../lib/nusoap.php');
22 echo
'<h2>Constructor error</h2><pre>' .
$err .
'</pre>';
23 echo
'<h2>Debug</h2><pre>' . htmlspecialchars(
$client->getDebug(), ENT_QUOTES) .
'</pre>';
27 $client->useHTTPPersistentConnection();
29 'manufacturer' =>
"O'Reilly",
32 'tag' =>
'trachtenberg-20',
34 'devtag' =>
'Your tag here'
36 $params = array(
'ManufacturerSearchRequest' =>
37 new soapval(
'ManufacturerSearchRequest',
38 'ManufacturerRequest',
41 'http://soap.amazon.com')
43 $result =
$client->call(
'ManufacturerSearchRequest',
$params,
'http://soap.amazon.com',
'http://soap.amazon.com');
45 echo
'<h2>Fault</h2><pre>'; print_r(
$result); echo
'</pre>';
49 echo
'<h2>Error</h2><pre>' .
$err .
'</pre>';
51 echo
'<h2>Result</h2><pre>'; print_r(
$result); echo
'</pre>';
54 echo
'<h2>Request</h2><pre>' . htmlspecialchars(
$client->request, ENT_QUOTES) .
'</pre>';
55 echo
'<h2>Response</h2><pre>' . htmlspecialchars(
$client->response, ENT_QUOTES) .
'</pre>';
56 echo
'<h2>Debug</h2><pre>' . htmlspecialchars(
$client->getDebug(), ENT_QUOTES) .
'</pre>';