if (!@(include 'SOAP' . DIRECTORY_SEPARATOR . 'Client.php')) { die('You must have PEAR::SOAP installed'); } // Just to save manaul modification... $basePath = explode('/', $_SERVER['SCRIPT_NAME']); array_pop($basePath); $basePath = implode('/', $basePath); $url = 'http://' . $_SERVER['SERVER_NAME'] . $basePath . '/7.php?wsdl'; if (!isset($_GET['y'])) { $_GET['y'] = date('Y'); } if (!isset($_GET['m'])) { $_GET['m'] = date('n'); } $wsdl = new SOAP_WSDL($url); echo '<pre>' . $wsdl->generateProxyCode() . '</pre>'; $calendarClient = $wsdl->getProxy(); $month = $calendarClient->getMonth((int) $_GET['y'], (int) $_GET['m']); if (PEAR::isError($month)) { die($month->toString()); } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title> Calendar over the Wire </title> </head> <body> <h1>Calendar Over the Wire (featuring PEAR::SOAP)</h1> <table> <caption><b><?php
<?php require_once 'SOAP/Client.php'; $wsdl = new SOAP_WSDL('CarRentalQuotes.wsdl'); echo $wsdl->generateProxyCode();