SOAP
[ class tree: SOAP ] [ index: SOAP ] [ all elements ]

Class: SOAP_WSDL

Source Location: /SOAP-0.9.1/WSDL.php

Class Overview

PEAR
   |
   --SOAP_Base_Object
      |
      --SOAP_Base
         |
         --SOAP_WSDL

This class parses WSDL files, and can be used by SOAP::Client to properly register soap values for services.


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 49]
This class parses WSDL files, and can be used by SOAP::Client to properly register soap values for services.

Originally based on SOAPx4 by Dietrich Ayala http://dietrich.ganx4.com/soapx4

TODO: add wsdl caching refactor namespace handling ($namespace/$ns) implement IDL type syntax declaration so we can generate WSDL



[ Top ]


Class Variables

$bindings = array()

[line 60]


Type:   mixed


[ Top ]

$cacheMaxAge =  null

[line 88]

Cache max lifetime (in seconds)

Type:   int


[ Top ]

$cacheUse =  null

[line 81]

Use WSDL cache

Type:   boolean


[ Top ]

$complexTypes = array()

[line 56]


Type:   mixed


[ Top ]

$definition = array()

[line 52]


Type:   mixed


[ Top ]

$docs =  false

[line 65]


Type:   mixed


[ Top ]

$elements = array()

[line 57]


Type:   mixed


[ Top ]

$imports = array()

[line 61]


Type:   mixed


[ Top ]

$messages = array()

[line 58]


Type:   mixed


[ Top ]

$namespaces = array()

[line 53]


Type:   mixed


[ Top ]

$ns = array()

[line 54]


Type:   mixed


[ Top ]

$portTypes = array()

[line 59]


Type:   mixed


[ Top ]

$proxy =  null

[line 72]

Proxy parameters

Type:   array


[ Top ]

$service =  ''

[line 63]


Type:   mixed


[ Top ]

$services = array()

[line 62]


Type:   mixed


[ Top ]

$tns =  null

[line 51]


Type:   mixed


[ Top ]

$trace =  0

[line 74]


Type:   mixed


[ Top ]

$uri =  ''

[line 64]


Type:   mixed


[ Top ]

$wsdlParserClass =  'SOAP_WSDL_Parser'

[line 95]

Class to use for WSDL parsing. Can be overridden for special cases, subclasses, etc.

Type:   string


[ Top ]

$xsd =  SOAP_XML_SCHEMA_VERSION

[line 55]


Type:   mixed


[ Top ]



Method Detail

SOAP_WSDL (Constructor)   [line 108]

SOAP_WSDL SOAP_WSDL( [string $wsdl_uri = false], [array $proxy = array()], [boolean $cacheUse = WSDL_CACHE_USE], [integer $cacheMaxAge = WSDL_CACHE_MAX_AGE], [boolean $docs = false])

SOAP_WSDL constructor.
  • Access: public

Parameters:

string   $wsdl_uri     URL to WSDL file.
array   $proxy     Contains options for HTTP_Request class (see HTTP/Request.php).
boolean   $cacheUse     Use WSDL caching. Defaults to false.
integer   $cacheMaxAge     Cache max lifetime (in seconds).
boolean   $docs     Parse documentation in the WSDL? Defaults to false.

[ Top ]

addNamespace   [line 381]

void addNamespace( mixed $namespace)


[ Top ]

generateAllProxies   [line 632]

void generateAllProxies( )


[ Top ]

generateProxyCode   [line 473]

void generateProxyCode( [mixed $port = ''], [mixed $classname = ''])

Generates stub code from the WSDL that can be saved to a file or eval'd into existence.

[ Top ]

getComplexTypeChildType   [line 696]

void getComplexTypeChildType( mixed $ns, mixed $name, mixed $child_ns, mixed $child_name)


[ Top ]

getComplexTypeNameForElement   [line 687]

void getComplexTypeNameForElement( mixed $name, mixed $namespace)


[ Top ]

getDataHandler   [line 311]

string getDataHandler( string $datatype, string $namespace)

getDataHandler

Given a datatype, what function handles the processing? this is used for doc/literal requests where we receive a datatype, and we need to pass it to a method in out server class

  • Return: methodname
  • Access: public

Parameters:

string   $datatype     datatype
string   $namespace     namespace

[ Top ]

getEndpoint   [line 176]

void getEndpoint( mixed $portName)


[ Top ]

getNamespace   [line 356]

void getNamespace( mixed $portName, mixed $operation)


[ Top ]

getNamespaceAttributeName   [line 366]

void getNamespaceAttributeName( mixed $namespace)


[ Top ]

getOperationData   [line 221]

void getOperationData( mixed $portName, mixed $operation)


[ Top ]

getPortName   [line 201]

void getPortName( mixed $operation, [mixed $service = null])

find the name of the first port that contains an operation of name $operation. always returns a the soap portName.

[ Top ]

getProxy   [line 642]

void &getProxy( [mixed $port = ''], [mixed $name = ''])


[ Top ]

getSchemaType   [line 708]

void getSchemaType( mixed $type, mixed $name, mixed $type_namespace)


[ Top ]

getSoapAction   [line 347]

void getSoapAction( mixed $portName, mixed $operation)


[ Top ]

matchMethod   [line 286]

void matchMethod( mixed &$operation)


[ Top ]

parse   [line 138]

void parse( mixed $wsdl_uri, [mixed $proxy = array()])

  • Deprecated: use parseURL instead

[ Top ]

parseObject   [line 167]

void parseObject( mixed &$wsdl_obj, mixed $targetNamespace, string $service_name, [string $service_desc = ''])

Fill the WSDL array tree with data from one or more PHP class objects

Parameters:

mixed   $wsdl_obj     An object or array of objects to add to the internal WSDL tree
string   $service_name     Name of the WSDL <service>
string   $service_desc     Optional description of the WSDL <service>

[ Top ]

parseURL   [line 150]

void parseURL( string $wsdl_uri, [array $proxy = array()])

Fill the WSDL array tree with data from a WSDL file

Parameters:

string   $wsdl_uri     
array   $proxy     proxy related parameters

[ Top ]

set_service   [line 128]

void set_service( mixed $service)


[ Top ]


Documentation generated on Tue, 31 May 2005 15:10:25 -0400 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.