Class nusoap_base

Description

nusoap_base

  • access: public
  • version: $Id: class.nusoap_base.php,v 1.43 2005/08/04 01:27:42 snichol Exp $
  • author: Dietrich Ayala <dietrich@ganx4.com>

Located in /core/nusoap/lib/class.nusoap_base.php (line 65)


	
			
Variable Summary
Method Summary
nusoap_base nusoap_base ()
void appendDebug (string $string)
void clearDebug ()
string formatDump (string $str)
debug &getDebug ()
int getDebugLevel ()
mixed getError ()
integer getGlobalDebugLevel ()
string getLocalPart (string $str)
string getmicrotime ()
mixed getNamespaceFromPrefix (string $prefix)
mixed getPrefix (string $str)
mixed getPrefixFromNamespace (string $ns)
string serializeEnvelope (string $body, [mixed $headers = false], [array $namespaces = array()], [string $style = 'rpc'], [string $use = 'encoded'], [string $encodingStyle = 'http://schemas.xmlsoap.org/soap/encoding/'])
string serialize_val (mixed $val, [string $name = false], [string $type = false], [string $name_ns = false], [string $type_ns = false], [array $attributes = false], [string $use = 'encoded'])
void setDebugLevel (int $level)
void setGlobalDebugLevel (int $level)
string varDump (mixed $data)
Variables
array $namespaces = array(
'SOAP-ENV' => 'http://schemas.xmlsoap.org/soap/envelope/',
'xsd' => 'http://www.w3.org/2001/XMLSchema',
'xsi' => 'http://www.w3.org/2001/XMLSchema-instance',
'SOAP-ENC' => 'http://schemas.xmlsoap.org/soap/encoding/'
)
(line 142)

namespaces in an array of prefix => uri

this is "seeded" by a set of constants, but it may be altered by code

  • access: public
string $soap_defencoding = 'ISO-8859-1' (line 131)

charset encoding for outgoing messages

  • access: public
array $typemap = array(
'http://www.w3.org/2001/XMLSchema' => array(
'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',
// abstract "any" types
'anyType'=>'string','anySimpleType'=>'string',
// derived datatypes
'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'=>''),'http://www.w3.org/2000/10/XMLSchema'=>array('i4'=>'','int'=>'integer','boolean'=>'boolean','string'=>'string','double'=>'double','float'=>'double','dateTime'=>'string','timeInstant'=>'string','base64Binary'=>'string','base64'=>'string','ur-type'=>'array'),'http://www.w3.org/1999/XMLSchema'=>array('i4'=>'','int'=>'integer','boolean'=>'boolean','string'=>'string','double'=>'double','float'=>'double','dateTime'=>'string','timeInstant'=>'string','base64Binary'=>'string','base64'=>'string','ur-type'=>'array'),'http://soapinterop.org/xsd'=>array('SOAPStruct'=>'struct'),'http://schemas.xmlsoap.org/soap/encoding/'=>array('base64'=>'string','array'=>'array','Array'=>'array'),'http://xml.apache.org/xml-soap'=>array('Map'))
(line 164)

XML Schema types in an array of uri => (array of xml type => php type) is this legacy yet? no, this is used by the xmlschema class to verify type => namespace mappings.

  • access: public
array $xmlEntities = array('quot' => '"','amp' => '&',
'lt' => '<','gt' => '>','apos' => "'")
(line 197)

XML entities to convert

  • see: expandEntities
  • deprecated:
  • access: public
string $XMLSchemaVersion = 'http://www.w3.org/2001/XMLSchema' (line 123)

set schema version

  • access: public
Methods
Constructor nusoap_base (line 205)

constructor

  • access: public
nusoap_base nusoap_base ()
appendDebug (line 267)

adds debug data to the instance debug string without formatting

  • access: public
void appendDebug (string $string)
  • string $string: debug data
clearDebug (line 280)

clears the current debug data for this instance

  • access: public
void clearDebug ()
formatDump (line 662)

formats a string to be inserted into an HTML stream

  • return: The formatted string
  • deprecated:
  • access: public
string formatDump (string $str)
  • string $str: The string to format
getDebug (line 292)

gets the current debug data for this instance

  • return: data
  • access: public
debug &getDebug ()
getDebugAsXMLComment (line 305)

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

  • return: data as an XML comment
  • access: public
debug &getDebugAsXMLComment ()
getDebugLevel (line 235)

gets the debug level for this instance

  • return: Debug level 0-9, where 0 turns off
  • access: public
int getDebugLevel ()
getError (line 337)

returns error string if present

  • return: error string or false
  • access: public
mixed getError ()
getGlobalDebugLevel (line 215)

gets the global debug level, which applies to future instances

  • return: Debug level 0-9, where 0 turns off
  • access: public
integer getGlobalDebugLevel ()
getLocalPart (line 724)

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

  • return: The local part
  • access: public
string getLocalPart (string $str)
  • string $str: The prefixed string
getmicrotime (line 788)

returns the time in ODBC canonical form with microseconds

  • return: The time in ODBC canonical form with microseconds
  • access: public
string getmicrotime ()
getNamespaceFromPrefix (line 756)

pass it a prefix, it returns a namespace

  • return: The namespace, false if no namespace has the specified prefix
  • access: public
mixed getNamespaceFromPrefix (string $prefix)
  • string $prefix: The prefix
getPrefix (line 741)

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

  • return: The prefix or false if there is no prefix
  • access: public
mixed getPrefix (string $str)
  • string $str: The prefixed string
getPrefixFromNamespace (line 772)

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

  • return: The prefix, false if the namespace has no prefixes
  • access: public
mixed getPrefixFromNamespace (string $ns)
  • string $ns: The namespace
serializeEnvelope (line 611)

serializes a message

  • return: the message
  • access: public
string serializeEnvelope (string $body, [mixed $headers = false], [array $namespaces = array()], [string $style = 'rpc'], [string $use = 'encoded'], [string $encodingStyle = 'http://schemas.xmlsoap.org/soap/encoding/'])
  • string $body: the XML of the SOAP body
  • mixed $headers: optional string of XML with SOAP header content, or array of soapval objects for SOAP headers
  • array $namespaces: optional the namespaces used in generating the body and headers
  • string $style: optional (rpc|document)
  • string $use: optional (encoded|literal)
  • string $encodingStyle: optional (usually 'http://schemas.xmlsoap.org/soap/encoding/' for encoded)
serialize_val (line 385)

serializes PHP values in accordance w/ section 5. Type information is not serialized if $use == 'literal'.

  • return: The serialized element, possibly with child elements
  • access: public
string serialize_val (mixed $val, [string $name = false], [string $type = false], [string $name_ns = false], [string $type_ns = false], [array $attributes = false], [string $use = 'encoded'])
  • mixed $val: The value to serialize
  • string $name: The name (local part) of the XML element
  • string $type: The XML schema type (local part) for the element
  • string $name_ns: The namespace for the name of the XML element
  • string $type_ns: The namespace for the type of the element
  • array $attributes: The attributes to serialize as name=>value pairs
  • string $use: The WSDL "use" (encoded|literal)
setDebugLevel (line 245)

sets the debug level for this instance

  • access: public
void setDebugLevel (int $level)
  • int $level: Debug level 0-9, where 0 turns off
setGlobalDebugLevel (line 225)

sets the global debug level, which applies to future instances

  • access: public
void setGlobalDebugLevel (int $level)
  • int $level: Debug level 0-9, where 0 turns off
varDump (line 807)

Returns a string with the output of var_dump

  • return: The output of var_dump
  • access: public
string varDump (mixed $data)
  • mixed $data: The variable to var_dump

Documentation generated on Tue, 4 Oct 2005 21:58:51 -0700 by phpDocumentor 1.3.0RC3