ILIAS
Release_4_0_x_branch Revision 61816
|
soap_server allows the user to create a SOAP server that is capable of receiving messages and returning responses More...
Public Member Functions | |
soap_server ($wsdl=false) | |
constructor the optional parameter is a path to a WSDL file that you'd like to bind the server instance to. | |
service ($data) | |
processes request and returns response | |
parse_http_headers () | |
parses HTTP request headers. | |
parse_request ($data='') | |
parses a request | |
invoke_method () | |
invokes a PHP function for the requested SOAP method | |
serialize_return () | |
serializes the return value from a PHP function into a full SOAP Envelope | |
send_response () | |
sends an HTTP response | |
verify_method ($operation, $request) | |
takes the value that was created by parsing the request and compares to the method's signature, if available. | |
add_to_map ($methodname, $in, $out) | |
add a method to the dispatch map | |
register ($name, $in=false, $out=false, $namespace=false, $soapaction=false, $style=false, $use=false, $documentation='') | |
register a service with the server | |
fault ($faultcode, $faultstring, $faultactor='', $faultdetail='') | |
create a fault. | |
webDescription () | |
prints html description of services | |
configureWSDL ($serviceName, $namespace=false, $endpoint=false, $style='rpc', $transport= 'http://schemas.xmlsoap.org/soap/http', $schemaTargetNamespace=false) | |
sets up wsdl object this acts as a flag to enable internal WSDL generation | |
soap_server ($wsdl=false) | |
constructor the optional parameter is a path to a WSDL file that you'd like to bind the server instance to. | |
service ($data) | |
processes request and returns response | |
parse_http_headers () | |
parses HTTP request headers. | |
parse_request ($data='') | |
parses a request | |
invoke_method () | |
invokes a PHP function for the requested SOAP method | |
serialize_return () | |
serializes the return value from a PHP function into a full SOAP Envelope | |
send_response () | |
sends an HTTP response | |
verify_method ($operation, $request) | |
takes the value that was created by parsing the request and compares to the method's signature, if available. | |
parseRequest ($headers, $data) | |
processes SOAP message received from client | |
getHTTPBody ($soapmsg) | |
gets the HTTP body for the current response. | |
getHTTPContentType () | |
gets the HTTP content type for the current response. | |
getHTTPContentTypeCharset () | |
gets the HTTP content type charset for the current response. | |
add_to_map ($methodname, $in, $out) | |
add a method to the dispatch map (this has been replaced by the register method) | |
register ($name, $in=array(), $out=array(), $namespace=false, $soapaction=false, $style=false, $use=false, $documentation='', $encodingStyle='') | |
register a service function with the server | |
fault ($faultcode, $faultstring, $faultactor='', $faultdetail='') | |
Specify a fault to be returned to the client. | |
configureWSDL ($serviceName, $namespace=false, $endpoint=false, $style='rpc', $transport= 'http://schemas.xmlsoap.org/soap/http', $schemaTargetNamespace=false) | |
Sets up wsdl object. | |
soap_server ($wsdl=false) | |
constructor the optional parameter is a path to a WSDL file that you'd like to bind the server instance to. | |
service ($data) | |
processes request and returns response | |
parse_http_headers () | |
parses HTTP request headers. | |
parse_request ($data='') | |
parses a request | |
invoke_method () | |
invokes a PHP function for the requested SOAP method | |
serialize_return () | |
serializes the return value from a PHP function into a full SOAP Envelope | |
send_response () | |
sends an HTTP response | |
verify_method ($operation, $request) | |
takes the value that was created by parsing the request and compares to the method's signature, if available. | |
parseRequest ($headers, $data) | |
processes SOAP message received from client | |
getHTTPBody ($soapmsg) | |
gets the HTTP body for the current response. | |
getHTTPContentType () | |
gets the HTTP content type for the current response. | |
getHTTPContentTypeCharset () | |
gets the HTTP content type charset for the current response. | |
add_to_map ($methodname, $in, $out) | |
add a method to the dispatch map (this has been replaced by the register method) | |
register ($name, $in=array(), $out=array(), $namespace=false, $soapaction=false, $style=false, $use=false, $documentation='', $encodingStyle='') | |
register a service function with the server | |
fault ($faultcode, $faultstring, $faultactor='', $faultdetail='') | |
Specify a fault to be returned to the client. | |
configureWSDL ($serviceName, $namespace=false, $endpoint=false, $style='rpc', $transport= 'http://schemas.xmlsoap.org/soap/http', $schemaTargetNamespace=false) | |
Sets up wsdl object. | |
Public Member Functions inherited from nusoap_server | |
nusoap_server ($wsdl=false) | |
constructor the optional parameter is a path to a WSDL file that you'd like to bind the server instance to. | |
nusoap_server ($wsdl=false) | |
constructor the optional parameter is a path to a WSDL file that you'd like to bind the server instance to. | |
Public Member Functions inherited from nusoap_base | |
debug ($string) | |
adds debug data to the class level debug string | |
expandEntities ($val) | |
expands entities, e.g. | |
getError () | |
returns error string if present | |
setError ($str) | |
sets error string | |
isArraySimpleOrStruct ($val) | |
detect if array is a simple array or a struct (associative array) | |
serialize_val ($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded') | |
serializes PHP values in accordance w/ section 5. | |
serializeEnvelope ($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded') | |
serialize message | |
formatDump ($str) | |
contractQname ($qname) | |
contracts a qualified name | |
expandQname ($qname) | |
expands a qualified name | |
getLocalPart ($str) | |
returns the local part of a prefixed string returns the original string, if not prefixed | |
getPrefix ($str) | |
returns the prefix part of a prefixed string returns false, if not prefixed | |
getNamespaceFromPrefix ($prefix) | |
pass it a prefix, it returns a namespace returns false if no namespace registered with the given prefix | |
getPrefixFromNamespace ($ns) | |
returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace | |
varDump ($data) | |
nusoap_base () | |
constructor | |
getGlobalDebugLevel () | |
gets the global debug level, which applies to future instances | |
setGlobalDebugLevel ($level) | |
sets the global debug level, which applies to future instances | |
getDebugLevel () | |
gets the debug level for this instance | |
setDebugLevel ($level) | |
sets the debug level for this instance | |
debug ($string) | |
adds debug data to the instance debug string with formatting | |
appendDebug ($string) | |
adds debug data to the instance debug string without formatting | |
clearDebug () | |
clears the current debug data for this instance | |
& | getDebug () |
gets the current debug data for this instance | |
& | getDebugAsXMLComment () |
gets the current debug data for this instance as an XML comment this may change the contents of the debug data | |
expandEntities ($val) | |
expands entities, e.g. | |
getError () | |
returns error string if present | |
setError ($str) | |
sets error string | |
isArraySimpleOrStruct ($val) | |
detect if array is a simple array or a struct (associative array) | |
serialize_val ($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded') | |
serializes PHP values in accordance w/ section 5. | |
serializeEnvelope ($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded', $encodingStyle='http://schemas.xmlsoap.org/soap/encoding/') | |
serializes a message | |
formatDump ($str) | |
formats a string to be inserted into an HTML stream | |
contractQname ($qname) | |
contracts (changes namespace to prefix) a qualified name | |
expandQname ($qname) | |
expands (changes prefix to namespace) a qualified name | |
getLocalPart ($str) | |
returns the local part of a prefixed string returns the original string, if not prefixed | |
getPrefix ($str) | |
returns the prefix part of a prefixed string returns false, if not prefixed | |
getNamespaceFromPrefix ($prefix) | |
pass it a prefix, it returns a namespace | |
getPrefixFromNamespace ($ns) | |
returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace | |
getmicrotime () | |
returns the time in ODBC canonical form with microseconds | |
varDump ($data) | |
Returns a string with the output of var_dump. | |
nusoap_base () | |
constructor | |
getGlobalDebugLevel () | |
gets the global debug level, which applies to future instances | |
setGlobalDebugLevel ($level) | |
sets the global debug level, which applies to future instances | |
getDebugLevel () | |
gets the debug level for this instance | |
setDebugLevel ($level) | |
sets the debug level for this instance | |
debug ($string) | |
adds debug data to the instance debug string with formatting | |
appendDebug ($string) | |
adds debug data to the instance debug string without formatting | |
clearDebug () | |
clears the current debug data for this instance | |
& | getDebug () |
gets the current debug data for this instance | |
& | getDebugAsXMLComment () |
gets the current debug data for this instance as an XML comment this may change the contents of the debug data | |
expandEntities ($val) | |
expands entities, e.g. | |
getError () | |
returns error string if present | |
setError ($str) | |
sets error string | |
isArraySimpleOrStruct ($val) | |
detect if array is a simple array or a struct (associative array) | |
serialize_val ($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded') | |
serializes PHP values in accordance w/ section 5. | |
serializeEnvelope ($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded', $encodingStyle='http://schemas.xmlsoap.org/soap/encoding/') | |
serializes a message | |
formatDump ($str) | |
formats a string to be inserted into an HTML stream | |
contractQname ($qname) | |
contracts (changes namespace to prefix) a qualified name | |
expandQname ($qname) | |
expands (changes prefix to namespace) a qualified name | |
getLocalPart ($str) | |
returns the local part of a prefixed string returns the original string, if not prefixed | |
getPrefix ($str) | |
returns the prefix part of a prefixed string returns false, if not prefixed | |
getNamespaceFromPrefix ($prefix) | |
pass it a prefix, it returns a namespace | |
getPrefixFromNamespace ($ns) | |
returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace | |
getmicrotime () | |
returns the time in ODBC canonical form with microseconds | |
varDump ($data) | |
Returns a string with the output of var_dump. | |
nusoap_base () | |
constructor | |
getGlobalDebugLevel () | |
gets the global debug level, which applies to future instances | |
setGlobalDebugLevel ($level) | |
sets the global debug level, which applies to future instances | |
getDebugLevel () | |
gets the debug level for this instance | |
setDebugLevel ($level) | |
sets the debug level for this instance | |
debug ($string) | |
adds debug data to the instance debug string with formatting | |
appendDebug ($string) | |
adds debug data to the instance debug string without formatting | |
clearDebug () | |
clears the current debug data for this instance | |
& | getDebug () |
gets the current debug data for this instance | |
& | getDebugAsXMLComment () |
gets the current debug data for this instance as an XML comment this may change the contents of the debug data | |
expandEntities ($val) | |
expands entities, e.g. | |
getError () | |
returns error string if present | |
setError ($str) | |
sets error string | |
isArraySimpleOrStruct ($val) | |
detect if array is a simple array or a struct (associative array) | |
serialize_val ($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded', $soapval=false) | |
serializes PHP values in accordance w/ section 5. | |
serializeEnvelope ($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded', $encodingStyle='http://schemas.xmlsoap.org/soap/encoding/') | |
serializes a message | |
formatDump ($str) | |
formats a string to be inserted into an HTML stream | |
contractQname ($qname) | |
contracts (changes namespace to prefix) a qualified name | |
expandQname ($qname) | |
expands (changes prefix to namespace) a qualified name | |
getLocalPart ($str) | |
returns the local part of a prefixed string returns the original string, if not prefixed | |
getPrefix ($str) | |
returns the prefix part of a prefixed string returns false, if not prefixed | |
getNamespaceFromPrefix ($prefix) | |
pass it a prefix, it returns a namespace | |
getPrefixFromNamespace ($ns) | |
returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace | |
getmicrotime () | |
returns the time in ODBC canonical form with microseconds | |
varDump ($data) | |
Returns a string with the output of var_dump. | |
__toString () | |
represents the object as a string | |
nusoap_base () | |
constructor | |
getGlobalDebugLevel () | |
gets the global debug level, which applies to future instances | |
setGlobalDebugLevel ($level) | |
sets the global debug level, which applies to future instances | |
getDebugLevel () | |
gets the debug level for this instance | |
setDebugLevel ($level) | |
sets the debug level for this instance | |
debug ($string) | |
adds debug data to the instance debug string with formatting | |
appendDebug ($string) | |
adds debug data to the instance debug string without formatting | |
clearDebug () | |
clears the current debug data for this instance | |
& | getDebug () |
gets the current debug data for this instance | |
& | getDebugAsXMLComment () |
gets the current debug data for this instance as an XML comment this may change the contents of the debug data | |
expandEntities ($val) | |
expands entities, e.g. | |
getError () | |
returns error string if present | |
setError ($str) | |
sets error string | |
isArraySimpleOrStruct ($val) | |
detect if array is a simple array or a struct (associative array) | |
serialize_val ($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded', $soapval=false) | |
serializes PHP values in accordance w/ section 5. | |
serializeEnvelope ($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded', $encodingStyle='http://schemas.xmlsoap.org/soap/encoding/') | |
serializes a message | |
formatDump ($str) | |
formats a string to be inserted into an HTML stream | |
contractQname ($qname) | |
contracts (changes namespace to prefix) a qualified name | |
expandQname ($qname) | |
expands (changes prefix to namespace) a qualified name | |
getLocalPart ($str) | |
returns the local part of a prefixed string returns the original string, if not prefixed | |
getPrefix ($str) | |
returns the prefix part of a prefixed string returns false, if not prefixed | |
getNamespaceFromPrefix ($prefix) | |
pass it a prefix, it returns a namespace | |
getPrefixFromNamespace ($ns) | |
returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace | |
getmicrotime () | |
returns the time in ODBC canonical form with microseconds | |
varDump ($data) | |
Returns a string with the output of var_dump. | |
__toString () | |
represents the object as a string |
soap_server allows the user to create a SOAP server that is capable of receiving messages and returning responses
Backward compatibility.
NOTE: WSDL functionality is experimental
NOTE: WSDL functionality is experimental
public
NOTE: WSDL functionality is experimental
public
Definition at line 2313 of file nusoap.php.
soap_server::add_to_map | ( | $methodname, | |
$in, | |||
$out | |||
) |
add a method to the dispatch map (this has been replaced by the register method)
string | $methodname | |
string | $in | array of input values |
string | $out | array of output values public |
Reimplemented from nusoap_server.
Definition at line 872 of file class.soap_server.php.
References $in, $methodname, and $out.
soap_server::add_to_map | ( | $methodname, | |
$in, | |||
$out | |||
) |
add a method to the dispatch map
string | $methodname | |
string | $in | array of input values |
string | $out | array of output values public |
Reimplemented from nusoap_server.
Definition at line 2865 of file nusoap.php.
References $in, $methodname, and $out.
soap_server::add_to_map | ( | $methodname, | |
$in, | |||
$out | |||
) |
add a method to the dispatch map (this has been replaced by the register method)
string | $methodname | |
string | $in | array of input values |
string | $out | array of output values public |
Reimplemented from nusoap_server.
Definition at line 3910 of file nusoap.php.
References $in, $methodname, and $out.
soap_server::configureWSDL | ( | $serviceName, | |
$namespace = false , |
|||
$endpoint = false , |
|||
$style = 'rpc' , |
|||
$transport = 'http://schemas.xmlsoap.org/soap/http' , |
|||
$schemaTargetNamespace = false |
|||
) |
Sets up wsdl object.
Acts as a flag to enable internal WSDL generation
string | $serviceName,name | of the service |
mixed | $namespace | optional 'tns' service namespace or false |
mixed | $endpoint | optional URL of service endpoint or false |
string | $style | optional (rpc|document) WSDL style (also specified by operation) |
string | $transport | optional SOAP transport |
mixed | $schemaTargetNamespace | optional 'types' targetNamespace for service schema or false |
Reimplemented from nusoap_server.
Definition at line 971 of file class.soap_server.php.
References $namespace, elseif(), and nusoap_base\setError().
soap_server::configureWSDL | ( | $serviceName, | |
$namespace = false , |
|||
$endpoint = false , |
|||
$style = 'rpc' , |
|||
$transport = 'http://schemas.xmlsoap.org/soap/http' , |
|||
$schemaTargetNamespace = false |
|||
) |
sets up wsdl object this acts as a flag to enable internal WSDL generation
string | $serviceName,name | of the service |
string | $namespace | optional tns namespace |
string | $endpoint | optional URL of service endpoint |
string | $style | optional (rpc|document) WSDL style (also specified by operation) |
string | $transport | optional SOAP transport |
string | $schemaTargetNamespace | optional targetNamespace for service schema |
Reimplemented from nusoap_server.
Definition at line 3062 of file nusoap.php.
References $GLOBALS, $namespace, and elseif().
soap_server::configureWSDL | ( | $serviceName, | |
$namespace = false , |
|||
$endpoint = false , |
|||
$style = 'rpc' , |
|||
$transport = 'http://schemas.xmlsoap.org/soap/http' , |
|||
$schemaTargetNamespace = false |
|||
) |
Sets up wsdl object.
Acts as a flag to enable internal WSDL generation
string | $serviceName,name | of the service |
mixed | $namespace | optional 'tns' service namespace or false |
mixed | $endpoint | optional URL of service endpoint or false |
string | $style | optional (rpc|document) WSDL style (also specified by operation) |
string | $transport | optional SOAP transport |
mixed | $schemaTargetNamespace | optional 'types' targetNamespace for service schema or false |
Reimplemented from nusoap_server.
Definition at line 4009 of file nusoap.php.
References $namespace, elseif(), and nusoap_base\setError().
soap_server::fault | ( | $faultcode, | |
$faultstring, | |||
$faultactor = '' , |
|||
$faultdetail = '' |
|||
) |
Specify a fault to be returned to the client.
This also acts as a flag to the server that a fault has occured.
string | $faultcode | |
string | $faultstring | |
string | $faultactor | |
string | $faultdetail | public |
Reimplemented from nusoap_server.
Definition at line 952 of file class.soap_server.php.
References nusoap_base\$soap_defencoding, fault(), and nusoap_base\getDebug().
soap_server::fault | ( | $faultcode, | |
$faultstring, | |||
$faultactor = '' , |
|||
$faultdetail = '' |
|||
) |
create a fault.
this also acts as a flag to the server that a fault has occured.
string | faultcode |
string | faultstring |
string | faultactor |
string | faultdetail public |
Reimplemented from nusoap_server.
Definition at line 2926 of file nusoap.php.
Referenced by fault(), invoke_method(), parse_request(), parseRequest(), send_response(), serialize_return(), and service().
soap_server::fault | ( | $faultcode, | |
$faultstring, | |||
$faultactor = '' , |
|||
$faultdetail = '' |
|||
) |
Specify a fault to be returned to the client.
This also acts as a flag to the server that a fault has occured.
string | $faultcode | |
string | $faultstring | |
string | $faultactor | |
string | $faultdetail | public |
Reimplemented from nusoap_server.
Definition at line 3990 of file nusoap.php.
References nusoap_base\$soap_defencoding, fault(), and nusoap_base\getDebug().
soap_server::getHTTPBody | ( | $soapmsg | ) |
gets the HTTP body for the current response.
string | $soapmsg | The SOAP payload |
Reimplemented from nusoap_server.
Reimplemented in nusoapservermime.
Definition at line 834 of file class.soap_server.php.
Referenced by send_response().
soap_server::getHTTPBody | ( | $soapmsg | ) |
gets the HTTP body for the current response.
string | $soapmsg | The SOAP payload |
Reimplemented from nusoap_server.
Reimplemented in nusoapservermime.
Definition at line 3872 of file nusoap.php.
soap_server::getHTTPContentType | ( | ) |
gets the HTTP content type for the current response.
Note: getHTTPBody must be called before this.
Reimplemented from nusoap_server.
Reimplemented in nusoapservermime.
Definition at line 846 of file class.soap_server.php.
Referenced by send_response().
soap_server::getHTTPContentType | ( | ) |
gets the HTTP content type for the current response.
Note: getHTTPBody must be called before this.
Reimplemented from nusoap_server.
Reimplemented in nusoapservermime.
Definition at line 3884 of file nusoap.php.
soap_server::getHTTPContentTypeCharset | ( | ) |
gets the HTTP content type charset for the current response.
returns false for non-text content types.
Note: getHTTPBody must be called before this.
Reimplemented from nusoap_server.
Reimplemented in nusoapservermime.
Definition at line 859 of file class.soap_server.php.
References nusoap_base\$soap_defencoding.
Referenced by send_response().
soap_server::getHTTPContentTypeCharset | ( | ) |
gets the HTTP content type charset for the current response.
returns false for non-text content types.
Note: getHTTPBody must be called before this.
Reimplemented from nusoap_server.
Reimplemented in nusoapservermime.
Definition at line 3897 of file nusoap.php.
References nusoap_base\$soap_defencoding.
soap_server::invoke_method | ( | ) |
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
private
Reimplemented from nusoap_server.
Definition at line 466 of file class.soap_server.php.
References $method, $param, nusoap_base\appendDebug(), nusoap_base\debug(), elseif(), fault(), wsdl\getOperationData(), wsdl\getOperationDataForSoapAction(), nusoap_base\varDump(), and verify_method().
soap_server::invoke_method | ( | ) |
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
private
Reimplemented from nusoap_server.
Definition at line 2634 of file nusoap.php.
References $methodname, $param, nusoap_base\debug(), fault(), wsdl\getOperationData(), nusoap_base\varDump(), and verify_method().
Referenced by service().
soap_server::invoke_method | ( | ) |
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
private
Reimplemented from nusoap_server.
Definition at line 3497 of file nusoap.php.
References $method, $methodname, $param, nusoap_base\appendDebug(), nusoap_base\debug(), elseif(), fault(), wsdl\getOperationData(), wsdl\getOperationDataForSoapAction(), nusoap_base\varDump(), and verify_method().
soap_server::parse_http_headers | ( | ) |
parses HTTP request headers.
The following fields are set by this function (when successful)
headers request xml_encoding SOAPAction
private
Reimplemented from nusoap_server.
Definition at line 293 of file class.soap_server.php.
References $enc, $headers, nusoap_base\debug(), elseif(), and nusoap_base\setError().
soap_server::parse_http_headers | ( | ) |
parses HTTP request headers.
The following fields are set by this function (when successful)
headers request xml_encoding SOAPAction
private
Reimplemented from nusoap_server.
Definition at line 2451 of file nusoap.php.
References $enc, nusoap_base\debug(), and elseif().
Referenced by parse_request().
soap_server::parse_http_headers | ( | ) |
parses HTTP request headers.
The following fields are set by this function (when successful)
headers request xml_encoding SOAPAction
private
Reimplemented from nusoap_server.
Definition at line 3324 of file nusoap.php.
References $enc, $headers, nusoap_base\debug(), elseif(), and nusoap_base\setError().
soap_server::parse_request | ( | $data = '' | ) |
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
string | $data | XML string private |
Reimplemented from nusoap_server.
Definition at line 419 of file class.soap_server.php.
References $data, nusoap_base\debug(), elseif(), fault(), parse_http_headers(), and parseRequest().
soap_server::parse_request | ( | $data = '' | ) |
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
string | $data | XML string private |
Reimplemented from nusoap_server.
Definition at line 2567 of file nusoap.php.
References $data, $err, nusoap_base\debug(), elseif(), fault(), and parse_http_headers().
Referenced by service().
soap_server::parse_request | ( | $data = '' | ) |
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
string | $data | XML string private |
Reimplemented from nusoap_server.
Definition at line 3450 of file nusoap.php.
References $data, nusoap_base\debug(), elseif(), fault(), parse_http_headers(), and parseRequest().
soap_server::parseRequest | ( | $headers, | |
$data | |||
) |
processes SOAP message received from client
array | $headers | The HTTP headers |
string | $data | unprocessed request data from client |
Reimplemented from nusoap_server.
Reimplemented in nusoapservermime.
Definition at line 785 of file class.soap_server.php.
References $data, $enc, $err, $headers, nusoap_base\debug(), fault(), and nusoap_base\setError().
Referenced by parse_request().
soap_server::parseRequest | ( | $headers, | |
$data | |||
) |
processes SOAP message received from client
array | $headers | The HTTP headers |
string | $data | unprocessed request data from client |
Reimplemented from nusoap_server.
Reimplemented in nusoapservermime.
Definition at line 3823 of file nusoap.php.
References $data, $enc, $err, $headers, nusoap_base\debug(), fault(), and nusoap_base\setError().
soap_server::register | ( | $name, | |
$in = array() , |
|||
$out = array() , |
|||
$namespace = false , |
|||
$soapaction = false , |
|||
$style = false , |
|||
$use = false , |
|||
$documentation = '' , |
|||
$encodingStyle = '' |
|||
) |
register a service function with the server
string | $name | the name of the PHP function, class.method or class..method |
array | $in | assoc array of input values: key = param name, value = param type |
array | $out | assoc array of output values: key = param name, value = param type |
mixed | $namespace | the element namespace for the method or false |
mixed | $soapaction | the soapaction for the method or false |
mixed | $style | optional (rpc|document) or false Note: when 'document' is specified, parameter and return wrappers are created for you automatically |
mixed | $use | optional (encoded|literal) or false |
string | $documentation | optional Description to include in WSDL |
string | $encodingStyle | optional (usually 'http://schemas.xmlsoap.org/soap/encoding/' for encoded) public |
Reimplemented from nusoap_server.
Definition at line 890 of file class.soap_server.php.
References $in, $name, $namespace, $out, wsdl\addOperation(), elseif(), and nusoap_base\setError().
soap_server::register | ( | $name, | |
$in = false , |
|||
$out = false , |
|||
$namespace = false , |
|||
$soapaction = false , |
|||
$style = false , |
|||
$use = false , |
|||
$documentation = '' |
|||
) |
register a service with the server
string | $methodname | |
string | $in | assoc array of input values: key = param name, value = param type |
string | $out | assoc array of output values: key = param name, value = param type |
string | $namespace | |
string | $soapaction | |
string | $style | optional (rpc|document) |
string | $use | optional (encoded|literal) |
string | $documentation | optional Description to include in WSDL public |
Definition at line 2882 of file nusoap.php.
References $GLOBALS, $in, $name, $namespace, $out, and wsdl\addOperation().
soap_server::register | ( | $name, | |
$in = array() , |
|||
$out = array() , |
|||
$namespace = false , |
|||
$soapaction = false , |
|||
$style = false , |
|||
$use = false , |
|||
$documentation = '' , |
|||
$encodingStyle = '' |
|||
) |
register a service function with the server
string | $name | the name of the PHP function, class.method or class..method |
array | $in | assoc array of input values: key = param name, value = param type |
array | $out | assoc array of output values: key = param name, value = param type |
mixed | $namespace | the element namespace for the method or false |
mixed | $soapaction | the soapaction for the method or false |
mixed | $style | optional (rpc|document) or false Note: when 'document' is specified, parameter and return wrappers are created for you automatically |
mixed | $use | optional (encoded|literal) or false |
string | $documentation | optional Description to include in WSDL |
string | $encodingStyle | optional (usually 'http://schemas.xmlsoap.org/soap/encoding/' for encoded) public |
Reimplemented from nusoap_server.
Definition at line 3928 of file nusoap.php.
References $in, $name, $namespace, $out, wsdl\addOperation(), elseif(), and nusoap_base\setError().
soap_server::send_response | ( | ) |
sends an HTTP response
The following fields are set by this function (when successful)
outgoing_headers response
private
Reimplemented from nusoap_server.
Definition at line 687 of file class.soap_server.php.
References $debug_flag, $responseSOAP, $type, nusoap_base\debug(), elseif(), fault(), nusoap_base\getDebugAsXMLComment(), getHTTPBody(), getHTTPContentType(), and getHTTPContentTypeCharset().
soap_server::send_response | ( | ) |
sends an HTTP response
The following fields are set by this function (when successful)
outgoing_headers response
private
Reimplemented from nusoap_server.
Definition at line 2773 of file nusoap.php.
References $responseSOAP, nusoap_base\debug(), and fault().
Referenced by service().
soap_server::send_response | ( | ) |
sends an HTTP response
The following fields are set by this function (when successful)
outgoing_headers response
private
Reimplemented from nusoap_server.
Definition at line 3725 of file nusoap.php.
References $debug_flag, $responseSOAP, $type, nusoap_base\debug(), elseif(), fault(), nusoap_base\getDebugAsXMLComment(), getHTTPBody(), getHTTPContentType(), and getHTTPContentTypeCharset().
soap_server::serialize_return | ( | ) |
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
private
Reimplemented from nusoap_server.
Definition at line 600 of file class.soap_server.php.
References $methodreturn, nusoap_base\appendDebug(), nusoap_base\clearDebug(), nusoap_base\debug(), elseif(), fault(), nusoap_base\getDebug(), nusoap_base\getError(), nusoap_base\serialize_val(), nusoap_base\serializeEnvelope(), wsdl\serializeRPCParameters(), and nusoap_base\varDump().
soap_server::serialize_return | ( | ) |
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
private
Reimplemented from nusoap_server.
Definition at line 2702 of file nusoap.php.
References $methodreturn, nusoap_base\debug(), elseif(), fault(), nusoap_base\getError(), nusoap_base\serialize_val(), nusoap_base\serializeEnvelope(), wsdl\serializeRPCParameters(), and nusoap_base\varDump().
Referenced by service().
soap_server::serialize_return | ( | ) |
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
private
Reimplemented from nusoap_server.
Definition at line 3638 of file nusoap.php.
References $methodreturn, nusoap_base\appendDebug(), nusoap_base\clearDebug(), nusoap_base\debug(), elseif(), fault(), nusoap_base\getDebug(), nusoap_base\getError(), nusoap_base\serialize_val(), nusoap_base\serializeEnvelope(), wsdl\serializeRPCParameters(), and nusoap_base\varDump().
soap_server::service | ( | $data | ) |
processes request and returns response
string | $data | usually is the value of $HTTP_RAW_POST_DATA public |
Reimplemented from nusoap_server.
Definition at line 231 of file class.soap_server.php.
References $data, nusoap_base\appendDebug(), nusoap_base\debug(), elseif(), fault(), nusoap_base\getDebugAsXMLComment(), invoke_method(), parse_request(), send_response(), wsdl\serialize(), serialize_return(), nusoap_base\varDump(), and wsdl\webDescription().
soap_server::service | ( | $data | ) |
processes request and returns response
string | $data | usually is the value of $HTTP_RAW_POST_DATA public |
Reimplemented from nusoap_server.
Definition at line 2399 of file nusoap.php.
References $data, $GLOBALS, elseif(), fault(), invoke_method(), parse_request(), send_response(), wsdl\serialize(), serialize_return(), and webDescription().
soap_server::service | ( | $data | ) |
processes request and returns response
string | $data | usually is the value of $HTTP_RAW_POST_DATA public |
Reimplemented from nusoap_server.
Definition at line 3262 of file nusoap.php.
References $data, nusoap_base\appendDebug(), nusoap_base\debug(), elseif(), fault(), nusoap_base\getDebugAsXMLComment(), invoke_method(), parse_request(), send_response(), wsdl\serialize(), serialize_return(), nusoap_base\varDump(), and wsdl\webDescription().
soap_server::soap_server | ( | $wsdl = false | ) |
constructor
the optional parameter is a path to a WSDL file that you'd like to bind the server instance to.
mixed | $wsdl | file path or URL (string), or wsdl instance (object) public |
Definition at line 168 of file class.soap_server.php.
References $err, $wsdl, nusoap_base\appendDebug(), nusoap_base\clearDebug(), nusoap_base\debug(), elseif(), nusoap_base\getDebug(), nusoap_base\getError(), nusoap_base\nusoap_base(), nusoap_base\varDump(), and wsdl\wsdl().
soap_server::soap_server | ( | $wsdl = false | ) |
constructor
the optional parameter is a path to a WSDL file that you'd like to bind the server instance to.
mixed | $wsdl | file path or URL (string), or wsdl instance (object) public |
Definition at line 2346 of file nusoap.php.
References $err, $wsdl, nusoap_base\debug(), nusoap_base\getError(), and wsdl\wsdl().
soap_server::soap_server | ( | $wsdl = false | ) |
constructor
the optional parameter is a path to a WSDL file that you'd like to bind the server instance to.
mixed | $wsdl | file path or URL (string), or wsdl instance (object) public |
Definition at line 3199 of file nusoap.php.
References $err, $wsdl, nusoap_base\appendDebug(), nusoap_base\clearDebug(), nusoap_base\debug(), elseif(), nusoap_base\getDebug(), nusoap_base\getError(), nusoap_base\nusoap_base(), nusoap_base\varDump(), and wsdl\wsdl().
soap_server::verify_method | ( | $operation, | |
$request | |||
) |
takes the value that was created by parsing the request and compares to the method's signature, if available.
string | $operation | The operation to be invoked |
array | $request | The array of parameter values |
Reimplemented from nusoap_server.
Definition at line 766 of file class.soap_server.php.
References elseif(), and wsdl\getOperationData().
soap_server::verify_method | ( | $operation, | |
$request | |||
) |
takes the value that was created by parsing the request and compares to the method's signature, if available.
mixed |
Reimplemented from nusoap_server.
Definition at line 2846 of file nusoap.php.
References elseif(), and wsdl\getOperationData().
Referenced by invoke_method().
soap_server::verify_method | ( | $operation, | |
$request | |||
) |
takes the value that was created by parsing the request and compares to the method's signature, if available.
string | $operation | The operation to be invoked |
array | $request | The array of parameter values |
Reimplemented from nusoap_server.
Definition at line 3804 of file nusoap.php.
References elseif(), and wsdl\getOperationData().
soap_server::webDescription | ( | ) |
prints html description of services
private
Definition at line 2935 of file nusoap.php.
References $data, $GLOBALS, and wsdl\getOperations().
Referenced by service().
soap_server::$debug_flag = false |
Definition at line 2337 of file nusoap.php.
Referenced by send_response().
soap_server::$decode_utf8 = true |
Definition at line 83 of file class.soap_server.php.
soap_server::$document = '' |
Definition at line 2317 of file nusoap.php.
soap_server::$externalWSDLURL = false |
Definition at line 2336 of file nusoap.php.
soap_server::$fault = false |
Definition at line 2331 of file nusoap.php.
soap_server::$headers = array() |
Definition at line 2314 of file nusoap.php.
Referenced by parse_http_headers(), nusoapservermime\parseRequest(), and parseRequest().
soap_server::$methodname = '' |
Definition at line 2320 of file nusoap.php.
Referenced by add_to_map(), and invoke_method().
soap_server::$methodparams = array() |
Definition at line 2321 of file nusoap.php.
soap_server::$methodreturn = false |
Definition at line 2329 of file nusoap.php.
Referenced by serialize_return().
soap_server::$methodreturnisliteralxml = false |
Definition at line 2330 of file nusoap.php.
soap_server::$methodURI = '' |
Definition at line 2319 of file nusoap.php.
soap_server::$operations = array() |
Definition at line 2334 of file nusoap.php.
soap_server::$outgoing_headers = array() |
Definition at line 2325 of file nusoap.php.
soap_server::$request = '' |
Definition at line 2315 of file nusoap.php.
soap_server::$requestHeaders = '' |
Definition at line 2316 of file nusoap.php.
soap_server::$requestSOAP = '' |
Definition at line 2318 of file nusoap.php.
soap_server::$response = '' |
Definition at line 2326 of file nusoap.php.
soap_server::$responseHeaders = '' |
Definition at line 2327 of file nusoap.php.
soap_server::$responseSOAP = '' |
Definition at line 2328 of file nusoap.php.
Referenced by send_response().
soap_server::$result = 'successful' |
Definition at line 2332 of file nusoap.php.
soap_server::$SOAPAction = '' |
Definition at line 2323 of file nusoap.php.
soap_server::$wsdl = false |
Definition at line 2335 of file nusoap.php.
Referenced by soap_server().
soap_server::$xml_encoding = '' |
Definition at line 2322 of file nusoap.php.