XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Public Member Functions | |
__construct ($wsdl=false) | |
service ($data) | |
parse_http_headers () | |
parse_request ($data='') | |
invoke_method () | |
serialize_return () | |
send_response () | |
verify_method ($operation, $request) | |
parseRequest ($headers, $data) | |
getHTTPBody ($soapmsg) | |
getHTTPContentType () | |
getHTTPContentTypeCharset () | |
add_to_map ($methodname, $in, $out) | |
register ($name, $in=[], $out=[], $namespace=false, $soapaction=false, $style=false, $use=false, $documentation='', $encodingStyle='') | |
fault ($faultcode, $faultstring, $faultactor='', $faultdetail='') | |
configureWSDL ($serviceName, $namespace=false, $endpoint=false, $style='rpc', $transport='https://schemas.xmlsoap.org/soap/http', $schemaTargetNamespace=false) | |
![]() | |
__construct () | |
getGlobalDebugLevel () | |
setGlobalDebugLevel ($level) | |
getDebugLevel () | |
setDebugLevel ($level) | |
debug ($string) | |
appendDebug ($string) | |
clearDebug () | |
& | getDebug () |
& | getDebugAsXMLComment () |
expandEntities ($val) | |
getError () | |
setError ($str) | |
isArraySimpleOrStruct ($val) | |
serialize_val ($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded', $soapval=false) | |
serializeEnvelope ($body, $headers=false, $namespaces=[], $style='rpc', $use='encoded', $encodingStyle='https://schemas.xmlsoap.org/soap/encoding/') | |
formatDump ($str) | |
contractQname ($qname) | |
expandQname ($qname) | |
getLocalPart ($str) | |
getPrefix ($str) | |
getNamespaceFromPrefix ($prefix) | |
getPrefixFromNamespace ($ns) | |
getmicrotime () | |
varDump ($data) | |
__toString () | |
Data Fields | |
$headers = [] | |
$request = '' | |
$requestHeaders = '' | |
$requestHeader = null | |
$document = '' | |
$requestSOAP = '' | |
$methodURI = '' | |
$methodname = '' | |
$methodparams = [] | |
$SOAPAction = '' | |
$xml_encoding = '' | |
$decode_utf8 = true | |
$outgoing_headers = [] | |
$response = '' | |
$responseHeaders = '' | |
$responseSOAP = '' | |
$methodreturn = false | |
$methodreturnisliteralxml = false | |
$fault = false | |
$result = 'successful' | |
$operations = [] | |
$wsdl = false | |
$externalWSDLURL = false | |
$debug_flag = false | |
![]() | |
$title = 'NuSOAP' | |
$version = '0.9.5' | |
$revision = '$Revision: 1.123 $' | |
$error_str = '' | |
$debug_str = '' | |
$charencoding = true | |
$debugLevel | |
$XMLSchemaVersion = 'https://www.w3.org/2001/XMLSchema' | |
$soap_defencoding = 'UTF-8' | |
$namespaces | |
$usedNamespaces = [] | |
$typemap | |
$xmlEntities | |
nusoap_server allows the user to create a SOAP server that is capable of receiving messages and returning responses
@access public
Definition at line 3567 of file nusoap.php.
__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) @access public |
Definition at line 3725 of file nusoap.php.
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 @access public |
Definition at line 4509 of file nusoap.php.
configureWSDL | ( | $serviceName, | |
$namespace = false, | |||
$endpoint = false, | |||
$style = 'rpc', | |||
$transport = 'https://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 4620 of file nusoap.php.
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 | @access public |
Definition at line 4600 of file nusoap.php.
getHTTPBody | ( | $soapmsg | ) |
gets the HTTP body for the current response.
string | $soapmsg | The SOAP payload |
Definition at line 4468 of file nusoap.php.
getHTTPContentType | ( | ) |
gets the HTTP content type for the current response.
Note: getHTTPBody must be called before this.
Definition at line 4481 of file nusoap.php.
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 4495 of file nusoap.php.
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
@access private
Definition at line 4051 of file nusoap.php.
parse_http_headers | ( | ) |
parses HTTP request headers.
The following fields are set by this function (when successful)
headers request xml_encoding SOAPAction
@access private
Definition at line 3874 of file nusoap.php.
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 @access private |
Definition at line 4003 of file nusoap.php.
parseRequest | ( | $headers, | |
$data ) |
processes SOAP message received from client
array | $headers | The HTTP headers |
string | $data | unprocessed request data from client |
Definition at line 4411 of file nusoap.php.
register | ( | $name, | |
$in = [], | |||
$out = [], | |||
$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 'https://schemas.xmlsoap.org/soap/encoding/' for encoded) @access public |
Definition at line 4529 of file nusoap.php.
send_response | ( | ) |
sends an HTTP response
The following fields are set by this function (when successful)
outgoing_headers response
@access private
Definition at line 4311 of file nusoap.php.
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
@access private
Definition at line 4209 of file nusoap.php.
service | ( | $data | ) |
processes request and returns response
string | $data | usually is the value of $HTTP_RAW_POST_DATA @access public |
Definition at line 3789 of file nusoap.php.
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 4391 of file nusoap.php.
$debug_flag = false |
Definition at line 3715 of file nusoap.php.
$decode_utf8 = true |
Definition at line 3640 of file nusoap.php.
$document = '' |
Definition at line 3598 of file nusoap.php.
$externalWSDLURL = false |
Definition at line 3709 of file nusoap.php.
$fault = false |
Definition at line 3683 of file nusoap.php.
$headers = [] |
Definition at line 3574 of file nusoap.php.
$methodname = '' |
Definition at line 3616 of file nusoap.php.
$methodparams = [] |
Definition at line 3622 of file nusoap.php.
$methodreturn = false |
Definition at line 3671 of file nusoap.php.
$methodreturnisliteralxml = false |
Definition at line 3677 of file nusoap.php.
$methodURI = '' |
Definition at line 3610 of file nusoap.php.
$operations = [] |
Definition at line 3697 of file nusoap.php.
$outgoing_headers = [] |
Definition at line 3647 of file nusoap.php.
$request = '' |
Definition at line 3580 of file nusoap.php.
$requestHeader = null |
Definition at line 3592 of file nusoap.php.
$requestHeaders = '' |
Definition at line 3586 of file nusoap.php.
$requestSOAP = '' |
Definition at line 3604 of file nusoap.php.
$response = '' |
Definition at line 3653 of file nusoap.php.
$responseHeaders = '' |
Definition at line 3659 of file nusoap.php.
$responseSOAP = '' |
Definition at line 3665 of file nusoap.php.
$result = 'successful' |
Definition at line 3689 of file nusoap.php.
$SOAPAction = '' |
Definition at line 3628 of file nusoap.php.
$wsdl = false |
Definition at line 3703 of file nusoap.php.
$xml_encoding = '' |
Definition at line 3634 of file nusoap.php.