XMLSchemaparses an XML Schema, allows access to it's data, other utility methods no validation... yet.
very experimental and limited. As is discussed on XML-DEV, I'm one of the people that just doesn't have time to read the spec(s) thoroughly, and just have a couple of trusty tutorials I refer to :)
Located in /nusoap.php (line 1002)
nusoap_base | --XMLSchema
void
addComplexType
(name $name, [typeClass $typeClass = 'complexType'], [phpType: $phpType = 'array'], [compositor $compositor = ''], [restrictionBase $restrictionBase = ''], [elements $elements = array()], [attrs $attrs = array()], [arrayType: $arrayType = ''])
void
addSimpleType
(string $name, [string $restrictionBase = ''], [string $typeClass = 'simpleType'], [string $phpType = 'scalar'], [array $enumeration = array()])
mixed
$attributes
= array() (line 1013)
mixed
$complexTypes
= array() (line 1014)
mixed
$complexTypeStack
= array() (line 1015)
mixed
$currentComplexType
= null (line 1016)
mixed
$currentElement
= null (line 1019)
mixed
$currentSimpleType
= null (line 1022)
mixed
$defaultNamespace
= array() (line 1031)
mixed
$depth
= 0 (line 1028)
mixed
$depth_array
= array() (line 1029)
mixed
$elements
= array() (line 1017)
mixed
$elementStack
= array() (line 1018)
mixed
$enclosingNamespaces
(line 1008)
mixed
$imports
= array() (line 1024)
mixed
$message
= array() (line 1030)
mixed
$parser
(line 1026)
mixed
$position
= 0 (line 1027)
mixed
$schema
= '' (line 1005)
mixed
$schemaInfo
= array() (line 1010)
mixed
$schemaTargetNamespace
= '' (line 1011)
mixed
$simpleTypes
= array() (line 1020)
mixed
$simpleTypeStack
= array() (line 1021)
mixed
$xml
= '' (line 1006)
Inherited from nusoap_base
nusoap_base::$charencoding
nusoap_base::$debugLevel
nusoap_base::$debug_str
nusoap_base::$error_str
nusoap_base::$namespaces
nusoap_base::$revision
nusoap_base::$soap_defencoding
nusoap_base::$title
nusoap_base::$typemap
nusoap_base::$usedNamespaces
nusoap_base::$version
nusoap_base::$xmlEntities
nusoap_base::$XMLSchemaVersion
constructor
adds a complex type to the schema
example: array
addType( 'ArrayOfstring', 'complexType', 'array', '', 'SOAP-ENC:Array', array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'string[]'), 'xsd:string' );
example: PHP associative array ( SOAP Struct )
addType( 'SOAPStruct', 'complexType', 'struct', 'all', array('myVar'=> array('name'=>'myVar','type'=>'string') );
adds an element to the schema
adds a simple type to the schema
get the PHP type of a user defined type in the schema
PHP type is kind of a misnomer since it actually returns 'struct' for assoc. arrays returns false if no type exists, or not w/ the given namespace else returns a string that is either a native php type, or 'struct'
returns an associative array of information about a given type returns false if no type exists by the given name
For a complexType typeDef = array( 'restrictionBase' => '', 'phpType' => '', 'compositor' => '(sequence|all)', 'elements' => array(), // refs to elements array 'attrs' => array() // refs to attributes array ... and so on (see addComplexType) )
For simpleType or element, the array has different keys.
parse an XML file
parse an XML string
element content handler
end-element handler
start-element handler
returns a sample serialization of a given type, or false if no type by the given name
returns HTML form elements that allow a user to enter values for creating an instance of the given type.
adds debug data to the clas level debug string
Inherited From nusoap_base
nusoap_base::nusoap_base()
nusoap_base::appendDebug()
nusoap_base::clearDebug()
nusoap_base::contractQname()
nusoap_base::debug()
nusoap_base::expandEntities()
nusoap_base::expandQname()
nusoap_base::formatDump()
nusoap_base::getDebug()
nusoap_base::getDebugAsXMLComment()
nusoap_base::getDebugLevel()
nusoap_base::getError()
nusoap_base::getGlobalDebugLevel()
nusoap_base::getLocalPart()
nusoap_base::getmicrotime()
nusoap_base::getNamespaceFromPrefix()
nusoap_base::getPrefix()
nusoap_base::getPrefixFromNamespace()
nusoap_base::isArraySimpleOrStruct()
nusoap_base::serializeEnvelope()
nusoap_base::serialize_val()
nusoap_base::setDebugLevel()
nusoap_base::setError()
nusoap_base::setGlobalDebugLevel()
nusoap_base::varDump()
Documentation generated on Wed, 3 Aug 2005 21:29:41 -0400 by phpDocumentor 1.3.0RC3