News:

Build a stunning handcrafted website with IT Acumens

Main Menu

SOAP Client & Client Proxy

Started by sukishan, Aug 22, 2009, 06:29 PM

Previous topic - Next topic

sukishan

Load in the SOAP Client
<?php require 'SOAP/Client.php'; ?>

Generate Client Proxy (for Amazon.Com)
<?php
// We have human readable explanation of the API.
$wsdl_url = 'http://soap.amazon.com/schemas3/AmazonWebServices.wsdl';
$WSDL = new SOAP_WSDL($wsdl_url);
$client = $WSDL->getProxy();
?>

Web Service Description Language (WSDL)
Machine readable description (XML) of a web service. Used here to define server's methods and parameters.
A good beginning makes a good ending