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

Class: Services_Webservice

Source Location: /Services_Webservice-0.6.0/vacation/Webservice.php

Class Overview


PEAR::Services_Webservice


Author(s):

Version:

  • @version@

Variables

Methods


Child classes:

Services_Webservice_Common
Services_Webservice implementation for common PHP-written backend
Services_Webservice_SOAP
Services_Webservice implementation for SOAP backend

Inherited Variables

Inherited Methods


Class Details

[line 36]
PEAR::Services_Webservice

The PEAR::Services_Webservice class creates web services from your classes



[ Top ]


Class Variables

$namespace =

[line 44]

Namespace of the web service
  • Access: public

Type:   string


[ Top ]

$protocol =

[line 52]

Protocol of the web service
  • Access: public

Type:   string


[ Top ]

$_classname =

[line 60]

Name of the class from which to create a web service from
  • Access: protected

Type:   string


[ Top ]

$_classnameInstance =  null

[line 68]

Class instance used by the web service
  • Access: protected

Type:   object


[ Top ]

$_initParams =  null

[line 76]

Parameter for the user's web service class
  • Access: protected

Type:   array


[ Top ]



Method Detail

__construct (Constructor)   [line 87]

Services_Webservice __construct( $class, $namespace, [ $options = null])

Constructor
  • Throws: Services_Webservice_NotClassException
  • Access: protected

Overridden in child classes as:

Services_Webservice_SOAP::__construct()
Constructor

Parameters:

   $class   — 
   $namespace   — 
   $options   — 

[ Top ]

factory   [line 117]

void &factory( string $driver, $class, $namespace, [ $options = null])

Returns a Services_Webservice server instance to handle incoming requests.
  • Throws: Services_Webservice_NotClassException
  • Throws: Services_Webservice_UnknownDriverException
  • Access: public

Parameters:

string   $driver   —  backend service type (for now only SOAP)
   $class   — 
   $namespace   — 
   $options   — 

[ Top ]

handle   [line 149]

void handle( )

Automatically handles the incoming request

The result depends on how the service was called and which backend is used.

  • Abstract:
  • Access: public

Overridden in child classes as:

Services_Webservice_ReST::handle()
Automatically handles the incoming request
Services_Webservice_SOAP::handle()
Automatically handles the incoming request

[ Top ]

init   [line 137]

void init( )

Initializes web service

The parameters passed to this method will be passed to your class constructor

  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:45:27 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.