XMLRPC URL handler concept for all URIs starting with "xmlrpc://"
and "xmlrpcs://" (for secure connection).
With this concept you can invoke methods to execute on XMLRPC server.
URL format is :
xmlrpc://<userName>:<password>@<hostName>:<port>/<separator><handlerName>.<methodName>?<parameters>
The separator
is used to separe the path and the handler name, eg:
xmlrpc://localhost/_Date.getToday
Possible options :
-
user
- use this option to specify userName for XMLRPC server connection.
-
pwd
- use this option to specify passwd for XMLRPC server connection.
If these options are specified then the userName
and the passwd
will be overwrited in the URL.
Execute a SEP command on XMLRPC server.
$x FROM "xmlrpc://user:passwd@host:port/_handler.method?sep=SEPCommand&db=DBName&user=DBUser&pwd=DBPasswd"
print $x
Methods inherited from: Concept
cloneConcept, extendsConcept, fromXML, getAllInheritedConcepts, getConceptAttribute, getConceptAttributeField, getConceptAttributeFields, getConceptAttributes, getConceptConstructors, getConceptElement, getConceptElementField, getConceptElementFields, getConceptElements, getConceptLabel, getConceptMethod, getConceptMethods, getConceptOperators, getConceptType, getErrorHandler, getInheritedConcepts, getResourceURI, hasConceptAttribute, hasConceptElement, hasConceptMethod, hasPath, isHidden, loadContent, setConceptLabel, setErrorHandler, setHidden, setShowEmpty, showEmpty, toTXT, toXML, setResourceURI |
|
Methods inherited from: URIHandler
|
Creates the URL handler concept
Determines whether this implementation can handle the URI.
print XMLRPCHandler.acceptsURI("xmlrpc://guest:guest@localhost:10300/")
-- the result is --
true
Flag to close the connection.
$url = "xmlrpc://guest:guest@localhost:10300/_url.echo?msg='Hello!!!'"
$xmlrpc = XMLRPCHandler.create( $url )
if $xmlrpc.acceptsURI( $url ) then [
$m typeof Map
if ( $xmlrpc.initialize( $m ) ) then [
if ( $xmlrpc.openConnection ) then [
print $xmlrpc.getContent
$xmlrpc.closeConnection
]
]
]
Exceptions: |
connectionException :
(Error) | If unable to connect to XMLRPC server. |
Get the all informations from URL.
$url = "xmlrpc://guest:guest@localhost:10300/_url.echo?msg='Hello!!!'"
$xmlrpc = XMLRPCHandler.create( $url )
if $xmlrpc.acceptsURI( $url ) then [
$m typeof Map
if ( $xmlrpc.initialize( $m ) ) then [
if ( $xmlrpc.openConnection ) then [
print $xmlrpc.getContent
$xmlrpc.closeConnection
]
]
]
Parameters: |
$options : | Map concept with user and password informations |
|
Exceptions: |
badURLException :
(Error) | If the URL is not valid. |
Initializes the URL useing the user informations
$url = "xmlrpc://guest:guest@localhost:10300/_url.echo?msg='Hello!!!'"
$xmlrpc = XMLRPCHandler.create( $url )
if $xmlrpc.acceptsURI( $url ) then [
$m typeof Map
if ( $xmlrpc.initialize( $m ) ) then [
if ( $xmlrpc.openConnection ) then [
print $xmlrpc.getContent
$xmlrpc.closeConnection
]
]
]
Exceptions: |
connectionException :
(Error) | If unable to connect to XMLRPC server. |
Opens the XMLRPCClient connection
$url = "xmlrpc://guest:guest@localhost:10300/_url.echo?msg='Hello!!!'"
$xmlrpc = XMLRPCHandler.create( $url )
if $xmlrpc.acceptsURI( $url ) then [
$m typeof Map
if ( $xmlrpc.initialize( $m ) ) then [
if ( $xmlrpc.openConnection ) then [
print $xmlrpc.getContent
$xmlrpc.closeConnection
]
]
]
Parameters: |
$value : | The new value to be set. |
|
Rerurn false.