MIOLO25
Carregando...
Procurando...
Nenhuma entrada encontrada
Referência à classe PhpWsdl

Membros públicos

 PhpWsdl ( $nameSpace=null, $endPoint=null, $cacheFolder=null, $file=null, $name=null, $methods=null, $types=null, $outputOnRequest=false, $runServer=false)
 
 __construct ( $nameSpace=null, $endPoint=null, $cacheFolder=null, $file=null, $name=null, $methods=null, $types=null, $outputOnRequest=false, $runServer=false)
 
 IsWsdlRequested ()
 
 IsHtmlRequested ()
 
 IsPhpRequested ()
 
 IsSoapRequest ()
 
 IsOnlyGlobal ()
 
 DetermineConfiguration ()
 
 DetermineEndPoint ()
 
 DetermineNameSpace ()
 
 IsFileInList ($file)
 
 CreateWsdl ($reCreate=false, $optimizer=false)
 
 ParseSource ($init=false, $str=null)
 
 OutputWsdl ($withHeaders=true)
 
 OutputWsdlOnRequest ($andExit=true)
 
 OutputHtml ($withHeaders=true, $echo=true, $cache=true)
 
 SortObjectsByName ($obj)
 
 OutputHtmlOnRequest ($andExit=true)
 
 OutputPhp ($withHeaders=true, $echo=true, $options=Array(), $cache=true)
 
 OutputPhpOnRequest ($andExit=true)
 
 RunServer ($wsdlFile=null, $class=null, $andExit=true, $forceNoWsdl=false)
 
 GetWsdlUri ()
 
 GetPhpUri ()
 
 GetDocUri ()
 
 GetMethod ($name)
 
 GetType ($name)
 
 GetCacheFileName ($endpoint=null)
 
 CacheFileExists ($file=null)
 
 IsCacheValid ($file=null)
 
 GetWsdlFromCache ($file=null, $force=false, $nounserialize=false)
 
 WriteWsdlToCache ($wsdl=null, $endpoint=null, $file=null, $force=false)
 
 IsCacheDifferent ()
 
 TidyCacheFolder ($mineOnly=false, $cleanUp=false, $wsdlFile=null)
 

Membros públicos estáticos

static CreateInstance ( $nameSpace=null, $endPoint=null, $cacheFolder=null, $file=null, $name=null, $methods=null, $types=null, $outputOnRequest=false, $runServer=false)
 
static RunQuickMode ($file=null)
 
static DisableCache ($allCaching=true)
 
static EnableCache ($folder=null, $timeout=null)
 
static CreateWsdlHeader ($data)
 
static CreateWsdlTypeSchema ($data)
 
static CreateWsdlMessages ($data)
 
static CreateWsdlPorts ($data)
 
static CreateWsdlBindings ($data)
 
static CreateWsdlService ($data)
 
static CreateWsdlFooter ($data)
 
static CreateWsdlOptimize ($data)
 
static OptimizeXml ($xml)
 
static FormatXml ($xml)
 
static InterpretService ($data)
 
static CreateHtmlGeneral ($data)
 
static CreateHtmlIndex ($data)
 
static CreateHtmlMethods ($data)
 
static CreateHtmlComplexTypes ($data)
 
static IsCacheFolderWriteAble ($folder=null)
 
static TranslateType ($type)
 
static CallHook ($name, $data=null)
 
static RegisterHook ($hook, $name, $data)
 
static UnregisterHook ($hook, $name=null)
 
static HasHookHandler ($hook)
 
static Debug ($str)
 

Campos de Dados

 $Name
 
 $Docs =null
 
 $NameSpace =null
 
 $EndPoint =null
 
 $WsdlUri =null
 
 $PhpUri =null
 
 $DocUri =null
 
 $SoapServerOptions =null
 
 $Files =Array()
 
 $Types =null
 
 $Methods =null
 
 $Optimize =true
 
 $WSDL =null
 
 $HTML =null
 
 $PHP =null
 
 $ParseDocs =true
 
 $IncludeDocs =true
 
 $ForceOutputWsdl =false
 
 $ForceNotOutputWsdl =false
 
 $ForceOutputHtml =false
 
 $ForceNotOutputHtml =false
 
 $HtmlHeadLine =null
 
 $ForceOutputPhp =false
 
 $ForceNotOutputPhp =false
 
 $SourcesParsed =false
 
 $ConfigurationDetermined =false
 
 $SoapServer =null
 
 $RequireLogin =false
 

Atributos Públicos Estáticos

static $VERSION ='2.3'
 
static $AutoRun =false
 
static $Config =Array()
 
static $ProxyObject =null
 
static $ProxyServer =null
 
static $UseProxyWsdl =false
 
static $BasicTypes
 
static $NonNillable
 
static $CacheFolder =null
 
static $CacheFolderWriteAble =null
 
static $CacheTime =3600
 
static $CacheAllWsdl =false
 
static $classRx ='/^.*class\s+([^\s]+)\s*\{.*$/is'
 
static $HTML2PDFLicenseKey =null
 
static $HTML2PDFAPI ='http://online.htmltopdf.de/'
 
static $HTML2PDFSettings =Array()
 
static $DebugInfo =Array()
 
static $Debugging =false
 
static $DebugFile =null
 
static $DebugBackTrace =false
 
static $NameSpaces =null
 

Descrição detalhada

PhpWsdl class

Autor
Andreas Zimmermann
Versão
2.3

Documentação dos Construtores & Destrutor

◆ __construct()

__construct ( $nameSpace = null,
$endPoint = null,
$cacheFolder = null,
$file = null,
$name = null,
$methods = null,
$types = null,
$outputOnRequest = false,
$runServer = false )

Documentação das funções

◆ CacheFileExists()

CacheFileExists ( $file = null)

Determine if the cache file exists

Parâmetros
string$fileThe WSDL cache filename or NULL to use the default (default: NULL)
Retorna
boolean Are the cache files present?

◆ CallHook()

static CallHook ( $name,
$data = null )
static

Call a hook function

Parâmetros
string$nameThe hook name
mixed$dataThe parameter (default: NULL)
Retorna
boolean Response

◆ CreateHtmlComplexTypes()

static CreateHtmlComplexTypes ( $data)
static

Create complex types list

Parâmetros
array$dataThe information object
Retorna
boolean Response

◆ CreateHtmlGeneral()

static CreateHtmlGeneral ( $data)
static

Create general information

Parâmetros
array$dataThe information object
Retorna
boolean Response

◆ CreateHtmlIndex()

static CreateHtmlIndex ( $data)
static

Create table of contents

Parâmetros
array$dataThe information object
Retorna
boolean Response

◆ CreateHtmlMethods()

static CreateHtmlMethods ( $data)
static

Create method list

Parâmetros
array$dataThe information object
Retorna
boolean Response

◆ CreateInstance()

static CreateInstance ( $nameSpace = null,
$endPoint = null,
$cacheFolder = null,
$file = null,
$name = null,
$methods = null,
$types = null,
$outputOnRequest = false,
$runServer = false )
static

Create an instance of PhpWsdl Note: The quick mode by giving TRUE as first parameter is deprecated and will be removed from version 3.0. Use PhpWsdl::RunQuickMode() instead

Parâmetros
string | boolean$nameSpaceNamespace or NULL to let PhpWsdl determine it, or TRUE to run everything by determining all configuration -> quick mode (default: NULL)
string | string[]$endPointEndpoint URI or NULL to let PhpWsdl determine it - or, in quick mode, the webservice class filename(s) (default: NULL)
string$cacheFolderThe folder for caching WSDL or NULL to use the systems default (default: NULL)
string | string[]$fileFilename or array of filenames or NULL (default: NULL)
string$nameWebservice name or NULL to let PhpWsdl determine it (default: NULL)
PhpWsdlMethod[]$methodsArray of methods or NULL (default: NULL)
PhpWsdlComplex[]$typesArray of complex types or NULL (default: NULL)
boolean$outputOnRequestOutput WSDL on request? (default: FALSE)
boolean | string | object | array$runServerRun SOAP server? (default: FALSE)
Retorna
PhpWsdl The PhpWsdl object

◆ CreateWsdl()

CreateWsdl ( $reCreate = false,
$optimizer = false )

Create the WSDL

Parâmetros
boolean$reCreateDon't use the cached WSDL? (default: FALSE)
boolean$optimizeIf TRUE, override the PhpWsdl->Optimizer property and force optimizing (default: FALSE)
Retorna
string The UTF-8 encoded WSDL as string

◆ CreateWsdlBindings()

static CreateWsdlBindings ( $data)
static

Create bindings

Parâmetros
array$dataData array
Retorna
boolean Response

◆ CreateWsdlFooter()

static CreateWsdlFooter ( $data)
static

Create footer

Parâmetros
array$dataData array
Retorna
boolean Response

◆ CreateWsdlHeader()

static CreateWsdlHeader ( $data)
static

Create header

Parâmetros
array$dataData array
Retorna
boolean Response

◆ CreateWsdlMessages()

static CreateWsdlMessages ( $data)
static

Create messages

Parâmetros
array$dataData array
Retorna
boolean Response

◆ CreateWsdlOptimize()

static CreateWsdlOptimize ( $data)
static

Optimize WSDL

Parâmetros
array$dataData array
Retorna
boolean Response

◆ CreateWsdlPorts()

static CreateWsdlPorts ( $data)
static

Create port types

Parâmetros
array$dataData array
Retorna
boolean Response

◆ CreateWsdlService()

static CreateWsdlService ( $data)
static

Create service port

Parâmetros
array$dataData array
Retorna
boolean Response

◆ CreateWsdlTypeSchema()

static CreateWsdlTypeSchema ( $data)
static

Create type schema

Parâmetros
array$dataData array
Retorna
boolean Response

◆ Debug()

static Debug ( $str)
static

Add a debugging message

Parâmetros
string$strThe message to add to the debug protocol

◆ DetermineConfiguration()

DetermineConfiguration ( )

Determine the configuration

Retorna
boolean Succeed?

◆ DetermineEndPoint()

DetermineEndPoint ( )

Determine the endpoint URI

◆ DetermineNameSpace()

DetermineNameSpace ( )

Determine the namespace

◆ DisableCache()

static DisableCache ( $allCaching = true)
static

Disble caching

Parâmetros
bool$allCachingDo not only set the timeout to zero? (default: TRUE)

◆ EnableCache()

static EnableCache ( $folder = null,
$timeout = null )
static

Enable caching

Parâmetros
string$folderThe cache folder or NULL to use a system temporary directory (default: NULL)
int$timeoutThe caching timeout in seconds or NULL to use the previous value or the default (3600) (default: NULL)

◆ FormatXml()

static FormatXml ( $xml)
static

Format XML human readable

Parâmetros
string$xmlThe XML
Retorna
string Human readable XML

◆ GetCacheFileName()

GetCacheFileName ( $endpoint = null)

Get the cache filename

Parâmetros
string$endpointThe endpoint URI or NULL to use the PhpWsdl->EndPoint property (default: NULL)
Retorna
string The cache filename or NULL, if caching is disabled

◆ GetDocUri()

GetDocUri ( )

Get the HTML documentation URI

Retorna
string The Uri

◆ GetMethod()

GetMethod ( $name)

Find a method

Parâmetros
string$nameThe method name
Retorna
PhpWsdlMethod The method object or NULL

◆ GetPhpUri()

GetPhpUri ( )

Get the PHP download URI

Retorna
string The URI

◆ GetType()

GetType ( $name)

Find a complex type

Parâmetros
string$nameThe type name
Retorna
PhpWsdlComplex The type object or NULL

◆ GetWsdlFromCache()

GetWsdlFromCache ( $file = null,
$force = false,
$nounserialize = false )

Get the WSDL from the cache

Parâmetros
string$fileThe WSDL cache filename or NULL to use the default (default: NULL)
boolean$forceForce this even if the cache is timed out? (default: FALSE)
boolean$nounserializeDon't unserialize the PhpWsdl* objects? (default: FALSE)
Retorna
string The cached WSDL

◆ GetWsdlUri()

GetWsdlUri ( )

Get the WSDL download URI

Retorna
string The Uri

◆ HasHookHandler()

static HasHookHandler ( $hook)
static

Determine if a hook has a registered handler

Parâmetros
string$hookThe hook name
Retorna
boolean Has handler?

◆ InterpretService()

static InterpretService ( $data)
static

Interpret the @service keyword

Parâmetros
$dataThe parser data
Retorna
boolean Response

◆ IsCacheDifferent()

IsCacheDifferent ( )

Determine if the cache is different from the current version of your webservice handler class. Status: Untested

Retorna
boolean Differences detected?

◆ IsCacheFolderWriteAble()

static IsCacheFolderWriteAble ( $folder = null)
static

Determine if the cache folder is writeable

Parâmetros
string$folderThe folder or NULL to use the static property CacheFolder (default: NULL)
Retorna
boolean Writeable?

◆ IsCacheValid()

IsCacheValid ( $file = null)

Determine if the existing cache files are still valid

Parâmetros
string$fileThe WSDL cache filename or NULL to use the default (default: NULL)
Retorna
boolean Valid?

◆ IsFileInList()

IsFileInList ( $file)

Determine if a file is included in the list of files

Parâmetros
string$fileThe filename
Retorna
boolean In the list?

◆ IsHtmlRequested()

IsHtmlRequested ( )

Determine if HTML was requested by the client

Retorna
boolean HTML requested?

◆ IsOnlyGlobal()

IsOnlyGlobal ( )

Determine if only global methods are served

Retorna
boolean Only global methods?

◆ IsPhpRequested()

IsPhpRequested ( )

Determine if PHP was requested by the client

Retorna
boolean PHP requested?

◆ IsSoapRequest()

IsSoapRequest ( )

Determine if this request is a SOAP request

Retorna
boolean

◆ IsWsdlRequested()

IsWsdlRequested ( )

Determine if WSDL was requested by the client

Retorna
boolean WSDL requested?

◆ OptimizeXml()

static OptimizeXml ( $xml)
static

Remove tabs and newline from XML

Parâmetros
string$xmlThe unoptimized XML
Retorna
string The optimized XML

◆ OutputHtml()

OutputHtml ( $withHeaders = true,
$echo = true,
$cache = true )

Output the HTML to the client

Parâmetros
boolean$withHeadersSend HTML headers? (default: TRUE)
boolean$echoPrint HTML (default: TRUE)
boolean$cacheCache the result (default: TRUE);
Retorna
string The HTML

◆ OutputHtmlOnRequest()

OutputHtmlOnRequest ( $andExit = true)

Output the HTML to the client, if requested

Parâmetros
boolean$andExitExit after sending HTML? (default: TRUE)
Retorna
boolean Has the HTML been sent to the client?

◆ OutputPhp()

OutputPhp ( $withHeaders = true,
$echo = true,
$options = Array(),
$cache = true )

Output the PHP SOAP client source for this webservice

Parâmetros
boolean$withHeadersSend text headers? (default: TRUE)
boolean$echoPrint source (default: TRUE)
array$optionsOptions array (default: array)
boolean$cacheCache the result (default: TRUE);
Retorna
string PHP source

◆ OutputPhpOnRequest()

OutputPhpOnRequest ( $andExit = true)

Output the PHP SOAP client source for this webservice, if requested

Parâmetros
boolean$andExitExit after sending the PHP source?
Retorna
boolean PHP sent?

◆ OutputWsdl()

OutputWsdl ( $withHeaders = true)

Output the WSDL to the client

Parâmetros
boolean$withHeadersOutput XML headers? (default: TRUE)

◆ OutputWsdlOnRequest()

OutputWsdlOnRequest ( $andExit = true)

Output the WSDL to the client, if requested

Parâmetros
boolean$andExitExit after sending WSDL? (default: TRUE)
Retorna
boolean Has the WSDL been sent to the client?

◆ ParseSource()

ParseSource ( $init = false,
$str = null )

Parse source files for WSDL definitions in comments

Parâmetros
boolean$initEmpty the Methods and the Types properties? (default: FALSE)
string$strSource string or NULL to parse the defined files (default: NULL)

◆ PhpWsdl()

PhpWsdl ( $nameSpace = null,
$endPoint = null,
$cacheFolder = null,
$file = null,
$name = null,
$methods = null,
$types = null,
$outputOnRequest = false,
$runServer = false )

PhpWsdl constructor Note: The quick mode by giving TRUE as first parameter is deprecated and will be removed from version 3.0. Use PhpWsdl::RunQuickMode() instead

Parâmetros
string | boolean$nameSpaceNamespace or NULL to let PhpWsdl determine it, or TRUE to run everything by determining all configuration -> quick mode (default: NULL)
string | string[]$endPointEndpoint URI or NULL to let PhpWsdl determine it - or, in quick mode, the webservice class filename(s) (default: NULL)
string$cacheFolderThe folder for caching WSDL or NULL to use the systems default (default: NULL)
string | string[]$fileFilename or array of filenames or NULL (default: NULL)
string$nameWebservice name or NULL to let PhpWsdl determine it (default: NULL)
PhpWsdlMethod[]$methodsArray of methods or NULL (default: NULL)
PhpWsdlComplex[]$typesArray of complex types or NULL (default: NULL)
boolean$outputOnRequestOutput WSDL on request? (default: FALSE)
boolean | string | object | array$runServerRun SOAP server? (default: FALSE)

The current PhpWsdl server

◆ RegisterHook()

static RegisterHook ( $hook,
$name,
$data )
static

Register a hook

Parâmetros
string$hookThe hook name
string$nameThe call name
mixed$dataThe hook call data

◆ RunQuickMode()

static RunQuickMode ( $file = null)
static

Run the PhpWsdl SOAP server in quick mode

Parâmetros
string | string[]$fileThe webservice handler class file or a list of files or NULL (default: NULL)

◆ RunServer()

RunServer ( $wsdlFile = null,
$class = null,
$andExit = true,
$forceNoWsdl = false )

Run the PHP SoapServer

Parâmetros
string$wsdlFileThe WSDL file name or NULL to let PhpWsdl decide (default: NULL)
string | object | array$classThe class name to serve, the classname and class as array or NULL (default: NULL)
boolean$andExitExit after running the server? (default: TRUE)
boolean$forceNoWsdlForce no WSDL usage? (default: FALSE);
Retorna
boolean Did the server run?

◆ SortObjectsByName()

SortObjectsByName ( $obj)

Sort objects by name

Parâmetros
PhpWsdlComplex[] | PhpWsdlMethod[]$obj
Retorna
PhpWsdlComplex[]|PhpWsdlMethod[] Sorted objects

◆ TidyCacheFolder()

TidyCacheFolder ( $mineOnly = false,
$cleanUp = false,
$wsdlFile = null )

Delete cache files from the cache folder

Parâmetros
boolean$mineOnlyOnly delete the cache files for this definition? (default: FALSE)
boolean$cleanUpOnly delete the cache files that are timed out? (default: FALSE)
string$wsdlFileThe WSDL filename (default: NULL)
Retorna
string[] The deleted filenames

◆ TranslateType()

static TranslateType ( $type)
static

Translate a type name for WSDL

Parâmetros
string$typeThe type name
Retorna
string The translates type name

◆ UnregisterHook()

static UnregisterHook ( $hook,
$name = null )
static

Unregister a hook

Parâmetros
string$hookThe hook name
string$nameThe call name or NULL to unregister the whole hook

◆ WriteWsdlToCache()

WriteWsdlToCache ( $wsdl = null,
$endpoint = null,
$file = null,
$force = false )

Write WSDL to cache

Parâmetros
string$wsdlThe UTF-8 encoded WSDL string (default: NULL)
string$endpointThe SOAP endpoint or NULL to use the default (default: NULL)
string$fileThe target filename or NULL to use the default (default: NULL)
boolean$forceForce refresh (default: FALSE)
Retorna
boolean Succeed?

Documentação dos campos e atributos

◆ $AutoRun

$AutoRun =false
static

◆ $BasicTypes

$BasicTypes
static
Valor inicial:
=Array(
'anyType',
'anyURI',
'base64Binary',
'boolean',
'byte',
'date',
'decimal',
'double',
'duration',
'dateTime',
'float',
'gDay',
'gMonthDay',
'gYearMonth',
'gYear',
'hexBinary',
'int',
'integer',
'long',
'NOTATION',
'number',
'QName',
'short',
'string',
'time'
)

◆ $CacheAllWsdl

$CacheAllWsdl =false
static

◆ $CacheFolder

$CacheFolder =null
static

◆ $CacheFolderWriteAble

$CacheFolderWriteAble =null
static

◆ $CacheTime

$CacheTime =3600
static

◆ $classRx

$classRx ='/^.*class\s+([^\s]+)\s*\{.*$/is'
static

◆ $Config

$Config =Array()
static

◆ $ConfigurationDetermined

$ConfigurationDetermined =false

◆ $DebugBackTrace

$DebugBackTrace =false
static

◆ $DebugFile

$DebugFile =null
static

◆ $Debugging

$Debugging =false
static

◆ $DebugInfo

$DebugInfo =Array()
static

◆ $Docs

$Docs =null

◆ $DocUri

$DocUri =null

◆ $EndPoint

$EndPoint =null

◆ $Files

$Files =Array()

◆ $ForceNotOutputHtml

$ForceNotOutputHtml =false

◆ $ForceNotOutputPhp

$ForceNotOutputPhp =false

◆ $ForceNotOutputWsdl

$ForceNotOutputWsdl =false

◆ $ForceOutputHtml

$ForceOutputHtml =false

◆ $ForceOutputPhp

$ForceOutputPhp =false

◆ $ForceOutputWsdl

$ForceOutputWsdl =false

◆ $HTML

$HTML =null

◆ $HTML2PDFAPI

$HTML2PDFAPI ='http://online.htmltopdf.de/'
static

◆ $HTML2PDFLicenseKey

$HTML2PDFLicenseKey =null
static

◆ $HTML2PDFSettings

$HTML2PDFSettings =Array()
static

◆ $HtmlHeadLine

$HtmlHeadLine =null

◆ $IncludeDocs

$IncludeDocs =true

◆ $Methods

$Methods =null

◆ $Name

$Name

◆ $NameSpace

$NameSpace =null

◆ $NameSpaces

$NameSpaces =null
static

◆ $NonNillable

$NonNillable
static
Valor inicial:
=Array(
'boolean',
'decimal',
'double',
'float',
'int',
'integer',
'long',
'number',
'short'
)

◆ $Optimize

$Optimize =true

◆ $ParseDocs

$ParseDocs =true

◆ $PHP

$PHP =null

◆ $PhpUri

$PhpUri =null

◆ $ProxyObject

$ProxyObject =null
static

◆ $ProxyServer

$ProxyServer =null
static

◆ $RequireLogin

$RequireLogin =false

◆ $SoapServer

$SoapServer =null

◆ $SoapServerOptions

$SoapServerOptions =null

◆ $SourcesParsed

$SourcesParsed =false

◆ $Types

$Types =null

◆ $UseProxyWsdl

$UseProxyWsdl =false
static

◆ $VERSION

$VERSION ='2.3'
static

◆ $WSDL

$WSDL =null

◆ $WsdlUri

$WsdlUri =null

A documentação para esta classe foi gerada a partir do seguinte ficheiro: