<?php
require("xml_parser.php");
require("xmlwriterclass.php");
require("soapserverclass.php");
require("datesoapserverclass.php");
$soap_server_object=new date_soap_server_class;
$soap_server_object->failurestatus="200 OK";
if((!strcmp(getenv("REQUEST_METHOD"),"POST")))
$soap_server_object->processmessage($GLOBALS["HTTP_RAW_POST_DATA"],1);
else
{
$soap_server_object->faultcode="SOAP-ENV:Client.HTTPRequest";
$soap_server_object->faultstring=("SOAP HTTP server does not support ".getenv("REQUEST_METHOD")." method requests");
}
$soap_server_object->generateresponse($response,$status);
Header("HTTP/1.0 ".$status);
Header("Content-Type: text/xml; charset=\"utf-8\"");
Header("Content-Length: ".strval(strlen($response)));
echo $response;
?>
|