file: webservice.php
<?php
require_once 'mywebservice.php';
if($_SERVER['QUERY_STRING'] == 'wsdl'){
// WSDL document creation
}else{
// SOAP Server creation
require_once "Zend/Soap/Server.php";
$soapServer = new Zend_Soap_Server("http://localhost/webservice.php?wsdl");
$soapServer->setClass('MyWebService');
$soapServer->handle();
}
No comments:
Post a Comment