Main Page | Packages | Class Tree | Index | Help

xp.data

class WSConnector

Object
  |
  +--xp.system.DispatcherObject
        |
        +--xp.data.Connector
              |
              +--xp.data.WSConnector


class WSConnector
extends Connector

Provides script and scriptless access to web service method calls.

Using a Web Service Definition Language (WSDL) file that defines the web service, constructs a new WebService object.
The WSConnector component lets you access remote methods exposed by a server using the industry-standard Simple Object Access Protocol (SOAP).
A web service method may accept parameters and return a result.
The WSConnector can be either created as a component on the stage or as an object using new WSConnector Event summary for the WSConnector class
The following table lists events of the WSConnector class.





EventTypeDescription
xp.events.ModelChangedEventmodeChangedBroadcast when the data model changes.
xp.events.EventresultBroadcast after a result param has been received from teh server.
xp.events.EventsendBroadcast after a send has been initiated.
xp.events.RPCStatusEventstatusBroadcast when the connector status changes.
xp.events.RPCValidateParamsEventvalidateBroadcast before a send when the call params need to be validated.


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Field Summary

public
operation: String
Indicates the name of an operation that appears within the SOAP port in a WSDL file.

public
params: Object
Specifies data that will be sent to the server when the next trigger() operation is executed.

public static
services
holds a global ref to service objects created by all instances, as service only gets created once

Fields inherited from class xp.data.Connector

logEnabled, multipleSimultaneousAllowed, results, suppressInvalidCalls

Fields inherited from class xp.system.DispatcherObject

parent

Property Summary

public
WSDLURL: String (read, write)
Specifies the URL of the WSDL file that defines the web service operation.

Properties inherited from class xp.data.Connector

callsInProgress, currentItem

Constructor

public
WSConnector ( WSDLURL: String)
Create a new WSConnector instance

Method Summary

public
trigger ( ): Boolean
Initiates a call to a web service.

Methods inherited from class xp.data.Connector

onFault, onResult, validateCall

Methods inherited from class xp.system.DispatcherObject

addEventListener, removeEventListener, routeEvent



Field Documentation

operation

public var operation: String
Indicates the name of an operation that appears within the SOAP port in a WSDL file.

params

public var params: Object
Specifies data that will be sent to the server when the next trigger() operation is executed.

Specifies data that will be sent to the server when the next trigger() operation is executed.

services

public static var services
holds a global ref to service objects created by all instances, as service only gets created once


Property Documentation

WSDLURL

public WSDLURL: String (read, write)
Specifies the URL of the WSDL file that defines the web service operation.


Constructor Documentation

WSConnector

public function WSConnector(WSDLURL: String)
Create a new WSConnector instance

Parameters:
WSDLURL
The url of the WSDL file

Method Documentation

trigger

public function trigger(): Boolean
Initiates a call to a web service.


The documentation was generated from the following file:


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