XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
nusoap_base Class Reference
Inheritance diagram for nusoap_base:
nusoap_client nusoap_fault nusoap_parser nusoap_server nusoap_xmlschema soap_transport_http soapval wsdl

Public Member Functions

 __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

 $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
 

Detailed Description

nusoap_base

Author
Dietrich Ayala dietr.nosp@m.ich@.nosp@m.ganx4.nosp@m..com
Scott Nichol snich.nosp@m.ol@u.nosp@m.sers..nosp@m.sour.nosp@m.cefor.nosp@m.ge.n.nosp@m.et
Version
Id
nusoap.php,v 1.123 2010/04/26 20:15:08 snichol Exp

@access public

Definition at line 85 of file nusoap.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

constructor

@access public

Definition at line 231 of file nusoap.php.

Member Function Documentation

◆ __toString()

__toString ( )

represents the object as a string

Returns
string @access public

Definition at line 918 of file nusoap.php.

◆ appendDebug()

appendDebug ( $string)

adds debug data to the instance debug string without formatting

Parameters
string$stringdebug data @access public

Definition at line 299 of file nusoap.php.

◆ clearDebug()

clearDebug ( )

clears the current debug data for this instance

@access public

Definition at line 313 of file nusoap.php.

◆ contractQname()

contractQname ( $qname)

contracts (changes namespace to prefix) a qualified name

Parameters
string$qnameqname
Returns
string contracted qname @access private

Definition at line 763 of file nusoap.php.

◆ debug()

debug ( $string)

adds debug data to the instance debug string with formatting

Parameters
string$stringdebug data @access private

Definition at line 286 of file nusoap.php.

◆ expandEntities()

expandEntities ( $val)

expands entities, e.g. changes '<' to '<'.

Parameters
string$valThe string in which to expand entities. @access private
Returns
string|string[]

Definition at line 358 of file nusoap.php.

◆ expandQname()

expandQname ( $qname)

expands (changes prefix to namespace) a qualified name

Parameters
string$qnameqname
Returns
string expanded qname @access private

Definition at line 789 of file nusoap.php.

◆ formatDump()

formatDump ( $str)

formats a string to be inserted into an HTML stream

Parameters
string$strThe string to format
Returns
string The formatted string @access public
Deprecated

Definition at line 750 of file nusoap.php.

◆ getDebug()

& getDebug ( )

gets the current debug data for this instance

Returns
debug data @access public

Definition at line 326 of file nusoap.php.

◆ getDebugAsXMLComment()

& getDebugAsXMLComment ( )

gets the current debug data for this instance as an XML comment this may change the contents of the debug data

Returns
debug data as an XML comment @access public

Definition at line 340 of file nusoap.php.

◆ getDebugLevel()

getDebugLevel ( )

gets the debug level for this instance

Returns
int Debug level 0-9, where 0 turns off @access public

Definition at line 264 of file nusoap.php.

◆ getError()

getError ( )

returns error string if present

Returns
mixed error string or false @access public

Definition at line 376 of file nusoap.php.

◆ getGlobalDebugLevel()

getGlobalDebugLevel ( )

gets the global debug level, which applies to future instances

Returns
int Debug level 0-9, where 0 turns off @access public

Definition at line 242 of file nusoap.php.

◆ getLocalPart()

getLocalPart ( $str)

returns the local part of a prefixed string returns the original string, if not prefixed

Parameters
string$strThe prefixed string
Returns
string The local part @access public

Definition at line 815 of file nusoap.php.

◆ getmicrotime()

getmicrotime ( )

returns the time in ODBC canonical form with microseconds

Returns
string The time in ODBC canonical form with microseconds @access public

Definition at line 883 of file nusoap.php.

◆ getNamespaceFromPrefix()

getNamespaceFromPrefix ( $prefix)

pass it a prefix, it returns a namespace

Parameters
string$prefixThe prefix
Returns
mixed The namespace, false if no namespace has the specified prefix @access public

Definition at line 849 of file nusoap.php.

◆ getPrefix()

getPrefix ( $str)

returns the prefix part of a prefixed string returns false, if not prefixed

Parameters
string$strThe prefixed string
Returns
mixed The prefix or false if there is no prefix @access public

Definition at line 833 of file nusoap.php.

◆ getPrefixFromNamespace()

getPrefixFromNamespace ( $ns)

returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace

Parameters
string$nsThe namespace
Returns
mixed The prefix, false if the namespace has no prefixes @access public

Definition at line 866 of file nusoap.php.

◆ isArraySimpleOrStruct()

isArraySimpleOrStruct ( $val)

detect if array is a simple array or a struct (associative array)

Parameters
mixed$valThe PHP array
Returns
string (arraySimple|arrayStruct) @access private

Definition at line 403 of file nusoap.php.

◆ serialize_val()

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. Type information is not serialized if $use == 'literal'.

Parameters
mixed$valThe value to serialize
bool$nameThe name (local part) of the XML element
bool$typeThe XML schema type (local part) for the element
bool$name_nsThe namespace for the name of the XML element
bool$type_nsThe namespace for the type of the element
bool$attributesThe attributes to serialize as name=>value pairs
string$useThe WSDL "use" (encoded|literal)
bool$soapvalWhether this is called from soapval.
Returns
string The serialized element, possibly with child elements @access public

Definition at line 429 of file nusoap.php.

◆ serializeEnvelope()

serializeEnvelope ( $body,
$headers = false,
$namespaces = [],
$style = 'rpc',
$use = 'encoded',
$encodingStyle = 'https://schemas.xmlsoap.org/soap/encoding/' )

serializes a message

Parameters
string$bodythe XML of the SOAP body
mixed$headersoptional string of XML with SOAP header content, or array of soapval objects for SOAP headers, or associative array
array$namespacesoptional the namespaces used in generating the body and headers
string$styleoptional (rpc|document)
string$useoptional (encoded|literal)
string$encodingStyleoptional (usually 'https://schemas.xmlsoap.org/soap/encoding/' for encoded)
Returns
string the message @access public

Definition at line 697 of file nusoap.php.

◆ setDebugLevel()

setDebugLevel ( $level)

sets the debug level for this instance

Parameters
int$levelDebug level 0-9, where 0 turns off @access public

Definition at line 275 of file nusoap.php.

◆ setError()

setError ( $str)

sets error string

Parameters
$str
Returns
void $string error string @access private

Definition at line 391 of file nusoap.php.

◆ setGlobalDebugLevel()

setGlobalDebugLevel ( $level)

sets the global debug level, which applies to future instances

Parameters
int$levelDebug level 0-9, where 0 turns off @access public

Definition at line 253 of file nusoap.php.

◆ varDump()

varDump ( $data)

Returns a string with the output of var_dump

Parameters
mixed$dataThe variable to var_dump
Returns
string The output of var_dump @access public

Definition at line 903 of file nusoap.php.

Field Documentation

◆ $charencoding

$charencoding = true

Definition at line 129 of file nusoap.php.

◆ $debug_str

$debug_str = ''

Definition at line 121 of file nusoap.php.

◆ $debugLevel

$debugLevel

Definition at line 136 of file nusoap.php.

◆ $error_str

$error_str = ''

Definition at line 114 of file nusoap.php.

◆ $namespaces

$namespaces
Initial value:
= [
'SOAP-ENV' => 'https://schemas.xmlsoap.org/soap/envelope/',
'xsd' => 'https://www.w3.org/2001/XMLSchema',
'xsi' => 'https://www.w3.org/2001/XMLSchema-instance',
'SOAP-ENC' => 'https://schemas.xmlsoap.org/soap/encoding/'
]

Definition at line 163 of file nusoap.php.

◆ $revision

$revision = '$Revision: 1.123 $'

Definition at line 107 of file nusoap.php.

◆ $soap_defencoding

$soap_defencoding = 'UTF-8'

Definition at line 152 of file nusoap.php.

◆ $title

$title = 'NuSOAP'

Definition at line 93 of file nusoap.php.

◆ $typemap

$typemap
Initial value:
= [
'https://www.w3.org/2001/XMLSchema' => [
'string'=>'string','boolean'=>'boolean','float'=>'double','double'=>'double','decimal'=>'double',
'duration'=>'','dateTime'=>'string','time'=>'string','date'=>'string','gYearMonth'=>'',
'gYear'=>'','gMonthDay'=>'','gDay'=>'','gMonth'=>'','hexBinary'=>'string','base64Binary'=>'string',
'anyType'=>'string','anySimpleType'=>'string',
'normalizedString'=>'string','token'=>'string','language'=>'','NMTOKEN'=>'','NMTOKENS'=>'','Name'=>'','NCName'=>'','ID'=>'',
'IDREF'=>'','IDREFS'=>'','ENTITY'=>'','ENTITIES'=>'','integer'=>'integer','nonPositiveInteger'=>'integer',
'negativeInteger'=>'integer','long'=>'integer','int'=>'integer','short'=>'integer','byte'=>'integer','nonNegativeInteger'=>'integer',
'unsignedLong'=>'','unsignedInt'=>'','unsignedShort'=>'','unsignedByte'=>'','positiveInteger'=>''
],
'https://www.w3.org/2000/10/XMLSchema' => [
'i4'=>'','int'=>'integer','boolean'=>'boolean','string'=>'string','double'=>'double',
'float'=>'double','dateTime'=>'string',
'timeInstant'=>'string','base64Binary'=>'string','base64'=>'string','ur-type'=>'array'
],
'https://www.w3.org/1999/XMLSchema' => [
'i4'=>'','int'=>'integer','boolean'=>'boolean','string'=>'string','double'=>'double',
'float'=>'double','dateTime'=>'string',
'timeInstant'=>'string','base64Binary'=>'string','base64'=>'string','ur-type'=>'array'
],
'https://soapinterop.org/xsd' => ['SOAPStruct' =>'struct'],
'https://schemas.xmlsoap.org/soap/encoding/' => ['base64' =>'string', 'array' =>'array', 'Array' =>'array'],
'https://xml.apache.org/xml-soap' => ['Map']
]

Definition at line 185 of file nusoap.php.

◆ $usedNamespaces

$usedNamespaces = []

Definition at line 176 of file nusoap.php.

◆ $version

$version = '0.9.5'

Definition at line 100 of file nusoap.php.

◆ $xmlEntities

$xmlEntities
Initial value:
= [
'quot' => '"', 'amp' => '&',
'lt' => '<', 'gt' => '>', 'apos' => "'"
]

Definition at line 221 of file nusoap.php.

◆ $XMLSchemaVersion

$XMLSchemaVersion = 'https://www.w3.org/2001/XMLSchema'

Definition at line 144 of file nusoap.php.


The documentation for this class was generated from the following file: