API Documentation

Soap/AutoDiscover.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Soap
subpackage
AutoDiscover
version
$Id: AutoDiscover.php 22899 2010-08-24 21:46:26Z alexander $
Classes
Zend_Soap_AutoDiscover

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Soap_AutoDiscover

Implements
Zend_Server_Interface
category
Zend
package
Zend_Soap
subpackage
AutoDiscover
Properties
$_wsdl
$_reflection
$_functions
$_strategy
$_uri
$_operationBodyStyle
$_bindingStyle
Methods
__construct
setUri
getUri
setOperationBodyStyle
setBindingStyle
getSchema
getHostName
getRequestUriWithoutParameters
setComplexTypeStrategy
setClass
addFunction
_addFunctionToWsdl
fault
handle
dump
toXml
getFunctions
loadFunctions
setPersistence
getType

Description

Zend_Soap_AutoDiscover

Properties

$_bindingStyle

array $_bindingStyle = 'array'

soap:operation style

Details

$_bindingStyle
array
visibility
protected
default
array
final
false
static
false

$_functions

array $_functions = 'array'

Details

$_functions
array
visibility
protected
default
array
final
false
static
false

$_operationBodyStyle

array $_operationBodyStyle = 'array'

soap:body operation style options

Details

$_operationBodyStyle
array
visibility
protected
default
array
final
false
static
false

$_reflection

Zend_Server_Reflection $_reflection = 'null'

Details

$_reflection
Zend_Server_Reflection
visibility
protected
default
null
final
false
static
false

$_strategy

boolean $_strategy = ''

Details

$_strategy
boolean
visibility
protected
default
final
false
static
false

$_uri

WSDL $_uri = ''

Url where the WSDL file will be available at.

Details

$_uri
WSDL
Uri
visibility
protected
default
final
false
static
false

$_wsdl

Zend_Soap_Wsdl $_wsdl = 'null'

Details

$_wsdl
Zend_Soap_Wsdl
visibility
protected
default
null
final
false
static
false

Methods

__construct

__construct( boolean|string|Zend_Soap_Wsdl_Strategy_Interface $strategy = true, string|Zend_Uri $uri = null ) :

Constructor

Arguments
$strategy
booleanstringZend_Soap_Wsdl_Strategy_Interface
$uri
stringZend_Uri
Details
visibility
public
final
false
static
false

_addFunctionToWsdl

_addFunctionToWsdl( $function $function, $wsdl $wsdl, $port $port, $binding $binding ) : void

Add a function to the WSDL document.

Arguments
$function
$function
Zend_Server_Reflection_Function_Abstract function to add
$wsdl
$wsdl
Zend_Soap_Wsdl WSDL document
$port
$port
object wsdl:portType
$binding
$binding
object wsdl:binding
Details
visibility
protected
final
false
static
false

addFunction

addFunction( string $function, string $namespace ) : Zend_Soap_AutoDiscover

Add a Single or Multiple Functions to the WSDL

Arguments
$function
string
Function Name
$namespace
string
Function namespace - Not Used
Details
visibility
public
final
false
static
false

dump

dump( string $filename ) : boolean

Proxy to WSDL dump function

Arguments
$filename
string
Output
boolean
Details
visibility
public
final
false
static
false
throws

fault

fault( string $fault = null, string|int $code = null ) :

Action to take when an error occurs

Arguments
$fault
string
$code
stringint
Details
visibility
public
final
false
static
false
throws

getFunctions

getFunctions( ) : array

Return an array of functions in the WSDL

Output
array
Details
visibility
public
final
false
static
false

getHostName

getHostName( ) : string

Detect and return the current hostname

Output
string
Details
visibility
protected
final
false
static
false

getRequestUriWithoutParameters

getRequestUriWithoutParameters( ) : string

Detect and return the current script name without parameters

Output
string
Details
visibility
protected
final
false
static
false

getSchema

getSchema( ) : string

Detect and returns the current HTTP/HTTPS Schema

Output
string
Details
visibility
protected
final
false
static
false

getType

getType( string $type ) : string

Returns an XSD Type for the given PHP type

Arguments
$type
string
PHP Type to get the XSD type for
Output
string
Details
visibility
public
final
false
static
false

getUri

getUri( ) : Zend_Uri

Return the current Uri that the SOAP WSDL Service will be located at.

Output
Zend_Uri
Details
visibility
public
final
false
static
false

handle

handle( string $request = false ) :

Handle the Request

Arguments
$request
string
A non-standard request - Not Used
Details
visibility
public
final
false
static
false

loadFunctions

loadFunctions( unknown_type $definition ) :

Load Functions

Arguments
$definition
unknown_type
Details
visibility
public
final
false
static
false
throws

setBindingStyle

setBindingStyle( array $bindingStyle = array ) : Zend_Soap_AutoDiscover

Set Binding soap:binding style.

By default 'style' is 'rpc' and 'transport' is 'http://schemas.xmlsoap.org/soap/http'.

Arguments
$bindingStyle
array
Details
visibility
public
final
false
static
false

setClass

setClass( string $class, string $namespace, array $argv = null ) : Zend_Soap_AutoDiscover

Set the Class the SOAP server will use

Arguments
$class
string
Class Name
$namespace
string
Class Namspace - Not Used
$argv
array
Arguments to instantiate the class - Not Used
Details
visibility
public
final
false
static
false

setComplexTypeStrategy

setComplexTypeStrategy( boolean|string|Zend_Soap_Wsdl_Strategy_Interface $strategy ) : Zend_Soap_AutoDiscover

Set the strategy that handles functions and classes that are added AFTER this call.

Arguments
$strategy
booleanstringZend_Soap_Wsdl_Strategy_Interface
Details
visibility
public
final
false
static
false

setOperationBodyStyle

setOperationBodyStyle( array $operationStyle = array ) : Zend_Soap_AutoDiscover

Set options for all the binding operations soap:body elements.

By default the options are set to 'use' => 'encoded' and 'encodingStyle' => "http://schemas.xmlsoap.org/soap/encoding/".

Arguments
$operationStyle
array
Details
visibility
public
final
false
static
false
see
Zend_Soap_AutoDiscover_Exception
throws

setPersistence

setPersistence( int $mode ) :

Set Persistance

Arguments
$mode
int
Details
visibility
public
final
false
static
false
throws

setUri

setUri( Zend_Uri|string $uri ) : Zend_Soap_AutoDiscover

Set the location at which the WSDL file will be availabe.

Arguments
$uri
Zend_Uristring
Details
visibility
public
final
false
static
false
see
Zend_Soap_Exception
throws

toXml

toXml( ) : string

Proxy to WSDL toXml() function

Output
string
Details
visibility
public
final
false
static
false
throws
Documentation was generated by DocBlox.