Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Sample Php Nusoap Client: - Using XML as parameter in Call method instead of Associative array.

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);
?>


This post first appeared on Every Day Of Your Life Is A Page Of Your History, please read the originial post: here

Share the post

Sample Php Nusoap Client: - Using XML as parameter in Call method instead of Associative array.

×

Subscribe to Every Day Of Your Life Is A Page Of Your History

Get updates delivered right to your inbox!

Thank you for your subscription

×