PHP Class Prado\Web\Services\TSoapServer

TSoapServer is a wrapper of the PHP SoapServer class. It associates a SOAP provider class to the SoapServer object. It also manages the URI for the SOAP service and WSDL.
Since: 3.1
Author: Qiang Xue ([email protected])
Inheritance: extends Prado\TApplicationComponent
Afficher le fichier Open project: pradosoft/prado

Méthodes publiques

Méthode Description
fault ( $title, $details = '', $code = 'SERVER', $actor = '', $name = '' ) Generate a SOAP fault message.
getActor ( ) : string
getClassMaps ( ) : string
getEncoding ( ) : string
getID ( ) : string
getProvider ( ) : string
getRequestedMethod ( ) : string Soap method guessed from the SOAP message received.
getSessionPersistent ( ) : boolean
getUri ( ) : string
getVersion ( ) : string
getWsdl ( ) : string Returns the WSDL content of the SOAP server.
getWsdlUri ( ) : string
run ( ) Handles the SOAP request.
setActor ( $value )
setClassMaps ( $classes ) : string
setEncoding ( $value )
setID ( $id )
setProvider ( $provider )
setSessionPersistent ( $value )
setUri ( $uri )
setVersion ( $value )
setWsdlUri ( $value )

Méthodes protégées

Méthode Description
createServer ( ) : SoapServer Creates the SoapServer instance.
getOptions ( ) : array
guessMethodCallRequested ( string $class ) Guess the SOAP method request from the actual SOAP message

Method Details

createServer() protected méthode

Creates the SoapServer instance.
protected createServer ( ) : SoapServer
Résultat SoapServer

fault() public méthode

Generate a SOAP fault message.
public fault ( $title, $details = '', $code = 'SERVER', $actor = '', $name = '' )

getActor() public méthode

public getActor ( ) : string
Résultat string actor of the SOAP service

getClassMaps() public méthode

public getClassMaps ( ) : string
Résultat string comma delimit list of complex type classes.

getEncoding() public méthode

public getEncoding ( ) : string
Résultat string encoding of the SOAP service

getID() public méthode

public getID ( ) : string
Résultat string the ID of the SOAP server

getOptions() protected méthode

protected getOptions ( ) : array
Résultat array options for creating SoapServer instance

getProvider() public méthode

public getProvider ( ) : string
Résultat string the SOAP provider class (in namespace format)

getRequestedMethod() public méthode

Soap method guessed from the SOAP message received.
public getRequestedMethod ( ) : string
Résultat string soap method request, null if not found.

getSessionPersistent() public méthode

public getSessionPersistent ( ) : boolean
Résultat boolean whether the SOAP service is persistent within session. Defaults to false.

getUri() public méthode

public getUri ( ) : string
Résultat string the URI for the SOAP service

getVersion() public méthode

public getVersion ( ) : string
Résultat string SOAP version, defaults to empty (meaning not set).

getWsdl() public méthode

If {@link getWsdlUri WsdlUri} is set, its content will be returned. If not, the {@link setProvider Provider} class will be investigated and the WSDL will be automatically genearted.
public getWsdl ( ) : string
Résultat string the WSDL content of the SOAP server

getWsdlUri() public méthode

public getWsdlUri ( ) : string
Résultat string the URI for WSDL

guessMethodCallRequested() protected méthode

Guess the SOAP method request from the actual SOAP message
protected guessMethodCallRequested ( string $class )
$class string current handler class.

run() public méthode

Handles the SOAP request.
public run ( )

setActor() public méthode

public setActor ( $value )

setClassMaps() public méthode

public setClassMaps ( $classes ) : string
Résultat string comma delimit list of class names

setEncoding() public méthode

public setEncoding ( $value )

setID() public méthode

public setID ( $id )

setProvider() public méthode

public setProvider ( $provider )

setSessionPersistent() public méthode

public setSessionPersistent ( $value )

setUri() public méthode

public setUri ( $uri )

setVersion() public méthode

public setVersion ( $value )

setWsdlUri() public méthode

public setWsdlUri ( $value )