Below is the Sample Php Client program using Xml as a parameter in Call method ............
require_once('D:/wamp/www/nusoap-0.7.3/lib/nusoap.php');
$serverpath= http: /localhost: 8080/Sample/services/SampleSOAP';
try
{
$SOAPClient = new soapclient($serverpath);
$SOAPClient ->soap_defencoding = "UTF-8";
$SOAPClient –>call ("getBSIBooksList",array($BooksRQ),$BooksRQ, http://axis.frontend.bsi.testbooks.com/);
}
catch(Exception $e)
{
print $e;
}
// Display the request and response
echo '< h2 >Request< /h2 >';
echo '< pre >' . htmlspecialchars($SOAPClient->request, ENT_QUOTES) . '< /pre >';
echo '< h2 >Response< /h2 >';
echo '< pre >' . htmlspecialchars($SOAPClient->response, ENT_QUOTES) . '< /pre >';
unset($SOAPClient);
?>
require_once('D:/wamp/www/nusoap-0.7.3/lib/nusoap.php');
$serverpath= http: /localhost: 8080/Sample/services/SampleSOAP';
try
{
$SOAPClient = new soapclient($serverpath);
$SOAPClient ->soap_defencoding = "UTF-8";
$SOAPClient –>call ("getBSIBooksList",
}
catch(Exception $e)
{
print $e;
}
// Display the request and response
echo '< h2 >Request< /h2 >';
echo '< pre >' . htmlspecialchars($SOAPClient->request, ENT_QUOTES) . '< /pre >';
echo '< h2 >Response< /h2 >';
echo '< pre >' . htmlspecialchars($SOAPClient->response, ENT_QUOTES) . '< /pre >';
unset($SOAPClient);
?>
This post first appeared on Every Day Of Your Life Is A Page Of Your History, please read the originial post: here