Class soapval

Description

For creating serializable abstractions of native PHP types. This class

allows element name/namespace, XSD type, and XML attributes to be associated with a value. This is extremely useful when WSDL is not used, but is also useful when WSDL is used with polymorphic types, including xsd:anyType and user-defined types.

  • access: public
  • version: $Id: class.soap_val.php,v 1.9 2005/07/27 19:24:42 snichol Exp $
  • author: Dietrich Ayala <dietrich@ganx4.com>

Located in /core/nusoap/lib/class.soap_val.php (line 17)

nusoap_base
   |
   --soapval
Method Summary
soapval soapval ([string $name = 'soapval'], [mixed $type = false], [mixed $value = -1], [mixed $element_ns = false], [mixed $type_ns = false], [mixed $attributes = false])
mixed decode ()
string serialize ([string $use = 'encoded'])
Methods
Constructor soapval (line 72)

constructor

  • access: public
soapval soapval ([string $name = 'soapval'], [mixed $type = false], [mixed $value = -1], [mixed $element_ns = false], [mixed $type_ns = false], [mixed $attributes = false])
  • string $name: optional name
  • mixed $type: optional type name
  • mixed $value: optional value
  • mixed $element_ns: optional namespace of value
  • mixed $type_ns: optional namespace of type
  • mixed $attributes: associative array of attributes to add to element serialization
decode (line 99)

decodes a soapval object into a PHP native type

  • access: public
mixed decode ()
serialize (line 89)

return serialized value

  • return: XML data
  • access: public
string serialize ([string $use = 'encoded'])
  • string $use: The WSDL use value (encoded|literal)

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