PRADO Component Framework for PHP 5
  • Home
  • About
  • Testimonials
  • Demos
  • Download
  • Documentation
  • Forum
  • Development
  • Tutorials
  • Class Docs
  • API Manual
  • Wiki

Packages

  • None
  • System
    • Caching
    • Collections
    • Data
      • ActiveRecord
        • Relations
        • Scaffold
          • InputBuilder
      • Commom
        • Sqlite
      • Common
        • Mssql
        • Mysql
        • Oracle
        • Pgsql
        • Sqlite
      • DataGateway
      • SqlMap
        • Configuration
        • Statements
    • Exceptions
    • I18N
    • IO
    • Security
    • Util
    • Web
      • Javascripts
      • Services
      • UI
        • ActiveControls
        • WebControls
    • Xml
  • Wsat
    • pages
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class TXmlRpcProtocol

TXmlRpcProtocol class

TXmlRpcProtocol is a class that implements XML-Rpc protocol in TRpcService. It's basically a wrapper to the xmlrpc_server_* family of php methods.

TRpcProtocol
Extended by TXmlRpcProtocol
Package: System\Web\Services
Copyright: 2010 Bigpoint GmbH
License: http://www.pradosoft.com/license/
Author: Robin J. Rogge <rrogge@bigpoint.net>
Version: $Id$
Since: 3.2
Located at Web/Services/TRpcService.php
Methods summary
public
# __construct( )

Constructor

Constructor

public
# __destruct( )

Destructor

Destructor

public
# addMethod( string $methodName, array $methodDetails )

Registers a new RPC method and handler details

Registers a new RPC method and handler details

Parameters

$methodName
string
$methodName
$methodDetails
array
$handlerDetails containing the callback handler

Overrides

TRpcProtocol::addMethod()
public string
# callMethod( string $requestPayload )

Handles the RPC request

Handles the RPC request

Parameters

$requestPayload
string
$requestPayload

Returns

string
XML RPC response
public string
# createErrorResponse( TRpcException $exception )

Turns the given exception into an XML RPC fault

Turns the given exception into an XML RPC fault

Parameters

$exception
TRpcException
$exception

Returns

string
XML RPC fault
public
# createResponseHeaders( THttpResponse $response )

Sets the correct response headers

Sets the correct response headers

Parameters

$response
THttpResponse
$response
public array
# decode( string $data )

Decodes XML encoded data into PHP data

Decodes XML encoded data into PHP data

Parameters

$data
string
$data in XML format

Returns

array
PHP data
public string
# encode( mixed $data )

Encodes PHP data into XML data

Encodes PHP data into XML data

Parameters

$data
mixed
PHP data

Returns

string
XML encoded PHP data
Methods inherited from TRpcProtocol
callApiMethod()
Properties inherited from TRpcProtocol
$rpcMethods
Terms of Service | Contact Us
PRADO v3.2.4 API Manual API documentation generated by ApiGen 2.8.0
Copyright © 2006-2014 by the PRADO Group.
Powered by PRADO