From 3b19e196faab180102fe85089b20df94f6344ff4 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 9 Feb 2004 07:51:07 +0000 Subject: Allowing to pass request to SoapServer::handle direct (not through $HTTP_RAW_POST_DATA). --- ext/soap/readme.html | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) (limited to 'ext/soap/readme.html') diff --git a/ext/soap/readme.html b/ext/soap/readme.html index 4675337ec9..cbb38ab776 100644 --- a/ext/soap/readme.html +++ b/ext/soap/readme.html @@ -169,7 +169,7 @@ It is just a data holder and it has not any special method except constructor. -->

Table of Contents

- + @@ -189,7 +189,7 @@ It is just a data holder and it has not any special method except constructor.
is_sopa_fault -- checks if SOAP call was failed
is_soap_fault -- checks if SOAP call was failed
SoapClient::SoapClient -- SoapClient constructor
SoapClient::__call -- calls a SOAP function
SoapClient::__getLastRequest -- returns last SOAP request
-

is_sopa_fault

+

is_soap_fault

(PHP 5)

checks if SOAP call was failed

Description

@@ -266,7 +266,10 @@ This is a low level API function to make a SOAP call. Usually in WSDL mode you can simple call SOAP functions as SoapClient methods. It is useful for nonWSDL mode when 'soapaction' is unknown, 'uri' is differ form default or when ypu like to send and/or receive SOAP Headers. To check if function call -is failed check the result with is_soap_fault() function. +is failed check the result with is_soap_fault() function.
+SOAP function may return one or several values. In the first case __call will +return just the value of output parameter, in the second it will return +array with named output parameters.

Examples

@@ -388,12 +391,22 @@ allow setting a default SOAP version (soap_version) and actor URI
 Exports one or more functions for remote clients. To export one function pass
 function name into functions parameter as string. To export several
 functions pass an array of function names and to export all functions pass
-a special constant SOAP_FUNCTIONS_ALL.
+a special constant SOAP_FUNCTIONS_ALL.
+Functions must receive all input arguments in the same order as defined +in WSDL file (They should not receive any output parameters as arguments) and +return one or more values. To return several values they must return array with +named output parameters.

Examples

-    $server->addFunction("func");
+    function func($inputString) {
+        return $inputString;
+    }
+    $server->addFunction("echoString");
 
-    $server->addFunction(array("func1","func2"));
+    function echoTwoStrings($inputString1, $inputString2) {
+        return array("outputString1"=>$inputString1,"outputString2"=>$inputString2);
+    }
+    $server->addFunction(array("echoString","echoTwoStrings"));
 
     $server->addFunction(SOAP_FUNCTIONS_ALL);
 
@@ -443,9 +456,10 @@ with server that exports functions form class (see

(PHP 5)

handles a SOAP request

Description

-

void handle()

+

void handle([string soap_envelope])

It processes a SOAP request, call necessary functions, and send response back. -It assumes request in global $HTTP_RAW_POST_DATA PHP variable. +It assumes request in input parameter or in global $HTTP_RAW_POST_DATA PHP variable +if the argument is omitted.

Example

 <?php
-- 
cgit v1.2.1