mn8 Language Reference | Index    

XMLRPCClient

SUMMARY: NO ATTRIBUTES  NO ELEMENTS  CONSTRUCTORS SUMMARY  NO OPERATORS  METHODS SUMMARYDETAIL: NO ATTRIBUTES  NO ELEMENTS  CONSTRUCTOR DETAILS  NO OPERATORS  METHOD DETAILS

Description

This is a simple XMLRPC client concept.
With this concept you can invoke methods to execute on XMLRPC server.

Usage

A simple way to connect to a XMLRPC server on your computer (default settings) using the host: localhost, port: 10300, user: guest and password: guest:

            $rpc typeof XMLRPCClient
            #To connect a XMLRPC server using a scpecific URL:
            $rpc = XMLRPCClient.create( URL )
            #where the URL is: xmlrpc://user:password@host:port/

            # Connecting to DataStore you can use the following parapeters
	        $params typeof Series
  	        $params.add($sep)
            # $sep is SEP command
 	        $params.add("XMLDB")
            # database name
 	        $params.add("guest")
            # user name
	        $params.add("guest")
            # user password to acces database
        

After you have a connection $rpc you need to execute a command on the server:

            $concept = $rpc.executeCmd( method, parameters)
       
where: - the "method" is the method name ont XMLRPC server - the "parameters" is a Series concept and you need to add it the method parameters (see below the variable $params) - the $concept is the returned concept from the method

Version: 0.1
Authors:Antal Attila
Szabo Csaba
Inherits: Concept

Constructor List

create (String $url)
top

Method List

ConceptexecuteCmd (String $method, Series $params)
top
Methods inherited from: Concept
cloneConcept, extendsConcept, fromXML, getAllInheritedConcepts, getConceptAttribute, getConceptAttributeField, getConceptAttributeFields, getConceptAttributes, getConceptConstructors, getConceptElement, getConceptElementField, getConceptElementFields, getConceptElements, getConceptLabel, getConceptMethod, getConceptMethods, getConceptOperators, getConceptType, getConceptsAtPath, getErrorHandler, getInheritedConcepts, hasConceptAttribute, hasConceptElement, hasConceptMethod, hasPath, isHidden, loadContent, setConceptLabel, setErrorHandler, setHidden, setShowEmpty, showEmpty, toTXT, toXML

Detailed Constructor Info

create (String $url)
Parameters:
$url :Complete URL string, like "xmlrpc://user:password@host:port/"
Exceptions:
unsupportedProtocol :
(Error)
If the protocol is unsupported by XMLRPCClient.
badURL :
(Error)
If the URL is not valid.

Create the XMLRPC connection to the server specified in the parameter

top

Detailed Method Info

executeCmd (String $method, Series $params)
Parameters:
$method :The method name on the XMLRPC server
$params :This Series concept holds the parameters to the method
Returns: Concept
Exceptions:
executeFailed :
(Error)
If unable to execute method on XMLRPC server.

This method executes the specified method on the XMLRPC server and returns XMLRPC supported concept.

top