soap_serversoap_server allows the user to create a SOAP server that is capable of receiving messages and returning responses
NOTE: WSDL functionality is experimental
Located in /nusoap.php (line 3043)
nusoap_base | --soap_server
| Class | Description |
|---|---|
nusoapservermime
|
nusoapservermime server supporting MIME attachments defined at http://www.w3.org/TR/SOAP-attachments. It depends on the PEAR Mail_MIME library. |
void
configureWSDL
(mixed $serviceName, [mixed $namespace = false], [mixed $endpoint = false], [string $style = 'rpc'], [string $transport = 'http://schemas.xmlsoap.org/soap/http'], [mixed $schemaTargetNamespace = false], string $serviceName,)
void
fault
(string $faultcode, string $faultstring, [string $faultactor = ''], [string $faultdetail = ''])
void
register
(string $name, [array $in = array()], [array $out = array()], [mixed $namespace = false], [mixed $soapaction = false], [mixed $style = false], [mixed $use = false], [string $documentation = ''], [string $encodingStyle = ''])
boolean
$debug_flag
= false (line 3184)
whether to append debug to response as XML comment
boolean
$decode_utf8
= true (line 3109)
toggles whether the parser decodes element content w/ utf8_decode()
string
$document
= '' (line 3067)
SOAP body request portion (incomplete namespace resolution; special characters not escaped) (text)
mixed
$externalWSDLURL
= false (line 3178)
URL for WSDL (if one)
mixed
$fault
= false (line 3152)
SOAP fault for response (or false)
array
$headers
= array() (line 3049)
HTTP headers of request
string
$methodname
= '' (line 3085)
name of method requested
array
$methodparams
= array() (line 3091)
method parameters from request
mixed
$methodreturn
= false (line 3140)
method return value to place in response
boolean
$methodreturnisliteralxml
= false (line 3146)
whether $methodreturn is a string of literal XML
string
$methodURI
= '' (line 3079)
requested method namespace URI
array
$operations
= array() (line 3166)
assoc array of operations => opData; operations are added by the register()
method or by parsing an external WSDL definition
array
$outgoing_headers
= array() (line 3116)
HTTP headers of response
string
$request
= '' (line 3055)
HTTP request
string
$requestHeaders
= '' (line 3061)
SOAP headers from request (incomplete namespace resolution; special characters not escaped) (text)
string
$requestSOAP
= '' (line 3073)
SOAP payload for request (text)
string
$response
= '' (line 3122)
HTTP response
string
$responseHeaders
= '' (line 3128)
SOAP headers for response (text)
string
$responseSOAP
= '' (line 3134)
SOAP payload for response (text)
string
$result
= 'successful' (line 3158)
text indication of result (for debugging)
string
$SOAPAction
= '' (line 3097)
SOAP Action from request
mixed
$wsdl
= false (line 3172)
wsdl instance (if one)
string
$xml_encoding
= '' (line 3103)
character set encoding of incoming (request) messages
Inherited from nusoap_base
nusoap_base::$charencoding
nusoap_base::$debugLevel
nusoap_base::$debug_str
nusoap_base::$error_str
nusoap_base::$namespaces
nusoap_base::$revision
nusoap_base::$soap_defencoding
nusoap_base::$title
nusoap_base::$typemap
nusoap_base::$usedNamespaces
nusoap_base::$version
nusoap_base::$xmlEntities
nusoap_base::$XMLSchemaVersion
constructor the optional parameter is a path to a WSDL file that you'd like to bind the server instance to.
add a method to the dispatch map (this has been replaced by the register method)
Sets up wsdl object.
Acts as a flag to enable internal WSDL generation
Specify a fault to be returned to the client.
This also acts as a flag to the server that a fault has occured.
gets the HTTP body for the current response.
gets the HTTP content type for the current response.
Note: getHTTPBody must be called before this.
gets the HTTP content type charset for the current response.
returns false for non-text content types.
Note: getHTTPBody must be called before this.
invokes a PHP function for the requested SOAP method
The following fields are set by this function (when successful)
methodreturn
Note that the PHP function that is called may also set the following fields to affect the response sent to the client
responseHeaders outgoing_headers
This sets the fault field on error
processes SOAP message received from client
parses HTTP request headers.
The following fields are set by this function (when successful)
headers request xml_encoding SOAPAction
parses a request
The following fields are set by this function (when successful)
headers request xml_encoding SOAPAction request requestSOAP methodURI methodname methodparams requestHeaders document
This sets the fault field on error
register a service function with the server
sends an HTTP response
The following fields are set by this function (when successful)
outgoing_headers response
serializes the return value from a PHP function into a full SOAP Envelope
The following fields are set by this function (when successful)
responseSOAP
This sets the fault field on error
processes request and returns response
takes the value that was created by parsing the request and compares to the method's signature, if available.
Inherited From nusoap_base
nusoap_base::nusoap_base()
nusoap_base::appendDebug()
nusoap_base::clearDebug()
nusoap_base::contractQname()
nusoap_base::debug()
nusoap_base::expandEntities()
nusoap_base::expandQname()
nusoap_base::formatDump()
nusoap_base::getDebug()
nusoap_base::getDebugAsXMLComment()
nusoap_base::getDebugLevel()
nusoap_base::getError()
nusoap_base::getGlobalDebugLevel()
nusoap_base::getLocalPart()
nusoap_base::getmicrotime()
nusoap_base::getNamespaceFromPrefix()
nusoap_base::getPrefix()
nusoap_base::getPrefixFromNamespace()
nusoap_base::isArraySimpleOrStruct()
nusoap_base::serializeEnvelope()
nusoap_base::serialize_val()
nusoap_base::setDebugLevel()
nusoap_base::setError()
nusoap_base::setGlobalDebugLevel()
nusoap_base::varDump()
Documentation generated on Wed, 3 Aug 2005 21:29:38 -0400 by phpDocumentor 1.3.0RC3