- • use: 'encoded' or 'literal'
- • style: 'rpc' or 'document'
- • parameters: 0 or 1 (internal use)
- • Arg 1 Required: String: XML Data to handle
- • Arg 2 Optional: String: Endpoint Name
- • Arg 3 Optional: Boolean: default=false true=test server
- • Arg 1 Required: Object: Server Object
- • Arg 2 Optional: String: Server Object Namespace
- • Arg 1 Required: String: Function Name
- • Arg 2 Optional: Array: In Parameters
- • Arg 3 Optional: Array: Out Parameters
- • Arg 4 Optional: String: Function Namespace
Function Mapping
<?php
require_once 'SOAP/Server.php';
$server = new SOAP_Server;
function echoString($inputString)
{
return $inputString;
}
$in = array('inputString'=>'string');
$out = array('outputString'=>'string');
$soapclass = new SOAP_Example_Server();
$server->addToMap($soapclass,$in,$out,'urn:SOAP_Example_Server');
$server->service($HTTP_RAW_POST_DATA);
?>