PHP Classes

File: date.soap.php

Recommend this page to a friend!
  Classes of Manuel Lemos   SOAP server class   date.soap.php   Download  
File: date.soap.php
Role: Example script
Content type: text/plain
Description: Example PHP script to handle date SOAP requests
Class: SOAP server class
SOAP protocol requests handler.
Author: By
Last change:
Date: 23 years ago
Size: 764 bytes
 

Contents

Class file image Download
<?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;
?>