Main Page | Packages | Class Tree | Index | Help

xp.services

class XMLService

Object
  |
  +--xp.services.XMLService

Implemented Interfaces: IService

class XMLService
extends Object

Provides script access to xml service method calls.

Using to construct a new XMLService object.
The XMLService component lets you access remote methods exposed by a server.
A xml service method may accept parameters and return a result.


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Field Summary

public
allowResolve: Boolean
Controls whether this service can bind to undefined operations*

public
logEnabled: Boolean
Is logging enabled

Property Summary

public
name: String (read, write)
Gets the name of this service*

public
url: String (read, write)
Gets the url this service is bound to*

Constructor

public
XMLService ( url: String, name: String)
Create a new service

Method Summary

public
addOperation ( operation: String ): Void
Binds an operation to this service*

public
addRequestFilter ( filter: IServiceFilter ): Void
Add a request filter*

public
addResponseFilter ( filter: IServiceFilter ): Void
Add a response filter*

public
execute ( operation: String, params: Object ): Object
Execute an operation*

public
onCallFault ( pendingCall ): Void
Callback handler from the PendingCall onFault event*

public
onCallResult ( pendingCall ): Void
Callback handler from the PendingCall onResult event*

public
toString ( ): String
about info*



Field Documentation

allowResolve

public var allowResolve: Boolean
Controls whether this service can bind to undefined operations*

logEnabled

public var logEnabled: Boolean
Is logging enabled


Property Documentation

name

public name: String (read, write)
Gets the name of this service*

url

public url: String (read, write)
Gets the url this service is bound to*


Constructor Documentation

XMLService

public function XMLService(url: String,
 name: String)
Create a new service

Parameters:
url
name
The name of the service

Method Documentation

addOperation

public function addOperation(operation: String): Void
Binds an operation to this service*

Specified by:
addOperation in interface IService

addRequestFilter

public function addRequestFilter(filter: IServiceFilter): Void
Add a request filter*

Specified by:

addResponseFilter

public function addResponseFilter(filter: IServiceFilter): Void
Add a response filter*

Specified by:

execute

public function execute(operation: String,
 params: Object): Object
Execute an operation*

Specified by:
execute in interface IService

onCallFault

public function onCallFault(pendingCall): Void
Callback handler from the PendingCall onFault event*

Specified by:
onCallFault in interface IService

onCallResult

public function onCallResult(pendingCall): Void
Callback handler from the PendingCall onResult event*

Specified by:
onCallResult in interface IService

toString

public function toString(): String
about info*


The documentation was generated from the following file:


Generated on 10/30/2005 9:34:02 PM by AS2Doc