Login   Register  
PHP Classes
elePHPant
Icontem

File: web/ezmlm/ezmlm.soap

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Manuel Lemos  >  Ezmlm mailing list manager class  >  web/ezmlm/ezmlm.soap  >  Download  
File: web/ezmlm/ezmlm.soap
Role: Application script
Content type: text/plain
Description: Script to handle SOAP requests to manipulate ezmlm lists via HTTP POST
Class: Ezmlm mailing list manager class
Web interface to manage ezmlm mailing lists.
Author: By
Last change:
Date: 13 years ago
Size: 1,057 bytes
 

Contents

Class file image Download
<?php
 
require("../../library/xml_parser.php");
 require(
"../../library/common/xmlwriterclass.php");
 require(
"../../library/common/soapserverclass.php");
 require(
"../../library/common/tableclass.php");
 require(
"../../library/links.php");
 
$editezmlmlistclasslocale=array();
 require(
"../../library/forms.php");
 require(
"../../library/ezmlm/editezmlmlistclass.php");
 require(
"../../library/ezmlm/ezmlmsoapserverclass.php");
 
$soap_server_object=new ezmlm_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;
?>