ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
|
nusoap_server allows the user to create a SOAP server that is capable of receiving messages and returning responses More...
Public Member Functions | |
__construct ($wsdl=false) | |
constructor the optional parameter is a path to a WSDL file that you'd like to bind the server instance to. More... | |
service ($data) | |
processes request and returns response More... | |
parse_http_headers () | |
parses HTTP request headers. More... | |
parse_request ($data='') | |
parses a request More... | |
invoke_method () | |
invokes a PHP function for the requested SOAP method More... | |
serialize_return () | |
serializes the return value from a PHP function into a full SOAP Envelope More... | |
send_response () | |
sends an HTTP response More... | |
verify_method ($operation, $request) | |
takes the value that was created by parsing the request and compares to the method's signature, if available. More... | |
parseRequest ($headers, $data) | |
processes SOAP message received from client More... | |
getHTTPBody ($soapmsg) | |
gets the HTTP body for the current response. More... | |
getHTTPContentType () | |
gets the HTTP content type for the current response. More... | |
getHTTPContentTypeCharset () | |
gets the HTTP content type charset for the current response. More... | |
add_to_map ($methodname, $in, $out) | |
add a method to the dispatch map (this has been replaced by the register method) More... | |
register ($name, $in=array(), $out=array(), $namespace=false, $soapaction=false, $style=false, $use=false, $documentation='', $encodingStyle='') | |
register a service function with the server More... | |
fault ($faultcode, $faultstring, $faultactor='', $faultdetail='') | |
Specify a fault to be returned to the client. More... | |
configureWSDL ($serviceName, $namespace=false, $endpoint=false, $style='rpc', $transport='http://schemas.xmlsoap.org/soap/http', $schemaTargetNamespace=false) | |
Sets up wsdl object. More... | |
addInternalPort (string $serviceName, string $url) | |
![]() | |
__construct () | |
constructor More... | |
getGlobalDebugLevel () | |
gets the global debug level, which applies to future instances More... | |
setGlobalDebugLevel ($level) | |
sets the global debug level, which applies to future instances More... | |
getDebugLevel () | |
gets the debug level for this instance More... | |
setDebugLevel ($level) | |
sets the debug level for this instance More... | |
debug ($string) | |
adds debug data to the instance debug string with formatting More... | |
appendDebug ($string) | |
adds debug data to the instance debug string without formatting More... | |
clearDebug () | |
clears the current debug data for this instance More... | |
& | getDebug () |
gets the current debug data for this instance More... | |
& | getDebugAsXMLComment () |
gets the current debug data for this instance as an XML comment this may change the contents of the debug data More... | |
expandEntities ($val) | |
expands entities, e.g. More... | |
getError () | |
returns error string if present More... | |
setError ($str) | |
sets error string More... | |
isArraySimpleOrStruct ($val) | |
detect if array is a simple array or a struct (associative array) More... | |
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. More... | |
serializeEnvelope ($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded', $encodingStyle='http://schemas.xmlsoap.org/soap/encoding/') | |
serializes a message More... | |
formatDump ($str) | |
formats a string to be inserted into an HTML stream More... | |
contractQname ($qname) | |
contracts (changes namespace to prefix) a qualified name More... | |
expandQname ($qname) | |
expands (changes prefix to namespace) a qualified name More... | |
getLocalPart ($str) | |
returns the local part of a prefixed string returns the original string, if not prefixed More... | |
getPrefix ($str) | |
returns the prefix part of a prefixed string returns false, if not prefixed More... | |
getNamespaceFromPrefix ($prefix) | |
pass it a prefix, it returns a namespace More... | |
getPrefixFromNamespace ($ns) | |
returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace More... | |
getmicrotime () | |
returns the time in ODBC canonical form with microseconds More... | |
varDump ($data) | |
Returns a string with the output of var_dump. More... | |
__toString () | |
represents the object as a string More... | |
Data Fields | |
$opData | |
$headers = array() | |
$request = '' | |
$requestHeaders = '' | |
$requestHeader = null | |
$document = '' | |
$requestSOAP = '' | |
$methodURI = '' | |
$methodname = '' | |
$methodparams = array() | |
$SOAPAction = '' | |
$xml_encoding = '' | |
$decode_utf8 = true | |
$class | |
$outgoing_headers = array() | |
$response = '' | |
$responseHeaders = '' | |
$responseSOAP = '' | |
$methodreturn = false | |
$methodreturnisliteralxml = false | |
$fault = false | |
$result = 'successful' | |
$operations = array() | |
$wsdl = false | |
$externalWSDLURL = false | |
$debug_flag = false | |
![]() | |
$title = 'NuSOAP' | |
$version = '0.7.3' | |
$revision = '$Revision$' | |
$error_str = '' | |
$debug_str = '' | |
$charencoding = true | |
$debugLevel | |
$XMLSchemaVersion = 'http://www.w3.org/2001/XMLSchema' | |
$soap_defencoding = 'UTF-8' | |
$namespaces | |
$usedNamespaces = array() | |
$typemap | |
$xmlEntities | |
nusoap_server allows the user to create a SOAP server that is capable of receiving messages and returning responses
Definition at line 3477 of file nusoap.php.
nusoap_server::__construct | ( | $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 3637 of file nusoap.php.
References $_SERVER, ILIAS\GlobalScreen\Provider\__construct(), nusoap_base\appendDebug(), nusoap_base\clearDebug(), nusoap_base\debug(), nusoap_base\getDebug(), nusoap_base\getError(), and nusoap_base\varDump().
nusoap_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 |
Definition at line 4373 of file nusoap.php.
References $out.
nusoap_server::addInternalPort | ( | string | $serviceName, |
string | $url | ||
) |
Definition at line 4553 of file nusoap.php.
References $url.
nusoap_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 |
Definition at line 4482 of file nusoap.php.
References $_SERVER, $namespace, $serviceName, and nusoap_base\setError().
nusoap_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 |
Definition at line 4462 of file nusoap.php.
References nusoap_base\$soap_defencoding, and nusoap_base\getDebug().
nusoap_server::getHTTPBody | ( | $soapmsg | ) |
gets the HTTP body for the current response.
string | $soapmsg | The SOAP payload |
Definition at line 4332 of file nusoap.php.
nusoap_server::getHTTPContentType | ( | ) |
gets the HTTP content type for the current response.
Note: getHTTPBody must be called before this.
Definition at line 4345 of file nusoap.php.
nusoap_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.
Definition at line 4359 of file nusoap.php.
References nusoap_base\$soap_defencoding.
nusoap_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
Definition at line 3941 of file nusoap.php.
References $param, nusoap_base\appendDebug(), nusoap_base\debug(), wsdl\getOperationData(), wsdl\getOperationDataForSoapAction(), and nusoap_base\varDump().
nusoap_server::parse_http_headers | ( | ) |
parses HTTP request headers.
The following fields are set by this function (when successful)
headers request xml_encoding SOAPAction
private
Definition at line 3764 of file nusoap.php.
References $_SERVER, nusoap_base\debug(), and nusoap_base\setError().
nusoap_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 |
Definition at line 3893 of file nusoap.php.
References $data, and nusoap_base\debug().
nusoap_server::parseRequest | ( | $headers, | |
$data | |||
) |
processes SOAP message received from client
array | $headers | The HTTP headers |
string | $data | unprocessed request data from client |
Definition at line 4280 of file nusoap.php.
References $data, nusoap_base\debug(), and nusoap_base\setError().
nusoap_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 |
Definition at line 4392 of file nusoap.php.
References $_SERVER, $namespace, $out, wsdl\addOperation(), and nusoap_base\setError().
nusoap_server::send_response | ( | ) |
sends an HTTP response
The following fields are set by this function (when successful)
outgoing_headers response
private
Definition at line 4180 of file nusoap.php.
References $payload, nusoap_base\debug(), nusoap_base\getDebugAsXMLComment(), and ILIAS\UI\examples\Symbol\Glyph\Header\header().
nusoap_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
Definition at line 4087 of file nusoap.php.
References $payload, nusoap_base\appendDebug(), nusoap_base\clearDebug(), nusoap_base\debug(), nusoap_base\getDebug(), nusoap_base\getError(), nusoap_base\serialize_val(), nusoap_base\serializeEnvelope(), wsdl\serializeRPCParameters(), and nusoap_base\varDump().
nusoap_server::service | ( | $data | ) |
processes request and returns response
string | $data | usually is the value of $HTTP_RAW_POST_DATA public |
Definition at line 3701 of file nusoap.php.
References $_SERVER, $data, nusoap_base\appendDebug(), nusoap_base\debug(), nusoap_base\getDebugAsXMLComment(), ILIAS\UI\examples\Symbol\Glyph\Header\header(), wsdl\serialize(), nusoap_base\varDump(), and wsdl\webDescription().
nusoap_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 |
Definition at line 4260 of file nusoap.php.
References wsdl\getOperationData().
nusoap_server::$class |
Definition at line 3552 of file nusoap.php.
nusoap_server::$debug_flag = false |
Definition at line 3627 of file nusoap.php.
nusoap_server::$decode_utf8 = true |
Definition at line 3551 of file nusoap.php.
nusoap_server::$document = '' |
Definition at line 3509 of file nusoap.php.
nusoap_server::$externalWSDLURL = false |
Definition at line 3621 of file nusoap.php.
nusoap_server::$fault = false |
Definition at line 3595 of file nusoap.php.
nusoap_server::$headers = array() |
Definition at line 3485 of file nusoap.php.
nusoap_server::$methodname = '' |
Definition at line 3527 of file nusoap.php.
nusoap_server::$methodparams = array() |
Definition at line 3533 of file nusoap.php.
nusoap_server::$methodreturn = false |
Definition at line 3583 of file nusoap.php.
nusoap_server::$methodreturnisliteralxml = false |
Definition at line 3589 of file nusoap.php.
nusoap_server::$methodURI = '' |
Definition at line 3521 of file nusoap.php.
nusoap_server::$opData |
Definition at line 3479 of file nusoap.php.
nusoap_server::$operations = array() |
Definition at line 3609 of file nusoap.php.
nusoap_server::$outgoing_headers = array() |
Definition at line 3559 of file nusoap.php.
nusoap_server::$request = '' |
Definition at line 3491 of file nusoap.php.
nusoap_server::$requestHeader = null |
Definition at line 3503 of file nusoap.php.
nusoap_server::$requestHeaders = '' |
Definition at line 3497 of file nusoap.php.
nusoap_server::$requestSOAP = '' |
Definition at line 3515 of file nusoap.php.
nusoap_server::$response = '' |
Definition at line 3565 of file nusoap.php.
nusoap_server::$responseHeaders = '' |
Definition at line 3571 of file nusoap.php.
nusoap_server::$responseSOAP = '' |
Definition at line 3577 of file nusoap.php.
nusoap_server::$result = 'successful' |
Definition at line 3601 of file nusoap.php.
nusoap_server::$SOAPAction = '' |
Definition at line 3539 of file nusoap.php.
nusoap_server::$wsdl = false |
Definition at line 3615 of file nusoap.php.
nusoap_server::$xml_encoding = '' |
Definition at line 3545 of file nusoap.php.