@mozilla.org/xml-rpc/client;1

This component implements the following interfaces:

Constants

PRUint32 nsIXmlRpcClient.INT = 1
PRUint32 nsIXmlRpcClient.BOOLEAN = 2
PRUint32 nsIXmlRpcClient.STRING = 3
PRUint32 nsIXmlRpcClient.DOUBLE = 4
PRUint32 nsIXmlRpcClient.DATETIME = 5
PRUint32 nsIXmlRpcClient.ARRAY = 6
PRUint32 nsIXmlRpcClient.STRUCT = 7

Properties

readonly nsIXmlRpcFault nsIXmlRpcClient.fault

The most recent XML-RPC fault from returned from this server. null if the last call didn't return an XML-RPC fault.

readonly PRBool nsIXmlRpcClient.inProgress

Wether or not a call is in progress

readonly PRUint32 nsIXmlRpcClient.responseStatus

The most recent HTTP status code returned from this server null if the server was unreachable or not yet contacted.

readonly PRUint32 nsIXmlRpcClient.responseString

readonly nsISupports nsIXmlRpcClient.result

The most recent XML-RPC call result returned from this server. null if the last call didn't return a valid result

readonly nsIURL nsIXmlRpcClient.serverURL

The URL of the XML-RPC server

Methods

InterfaceMethod
nsIXmlRpcClient void asyncCall ( nsIXmlRpcClientListener listener , nsISupports ctxt , char* methodName , nsISupports arguments , PRUint32 count )
nsIXmlRpcClient void clearAuthentication ( char* username , char* password )
nsIXmlRpcClient void createType ( PRUint32 type , out nsIIDRef uuid , retval nsQIResult* result )
nsIInterfaceRequestor void getInterface ( nsIIDRef uuid , retval nsQIResult* result )
nsIXmlRpcClient void init ( char* serverURL )
nsIStreamListener void onDataAvailable ( nsIRequest request , nsISupports context , nsIInputStream inputStream , PRUint32 offset , PRUint32 count )
nsIXmlRpcClientListener void onError ( nsIXmlRpcClient client , nsISupports ctxt , nsresult status , PRUnichar* errorMsg )
nsIXmlRpcClientListener void onFault ( nsIXmlRpcClient client , nsISupports ctxt , nsIXmlRpcFault fault )
nsIXmlRpcClientListener void onResult ( nsIXmlRpcClient client , nsISupports ctxt , nsISupports result )
nsIRequestObserver void onStartRequest ( nsIRequest request , nsISupports context )
nsIRequestObserver void onStopRequest ( nsIRequest request , nsISupports context , nsresult statusCode )
nsIXmlRpcClient void setAuthentication ( char* username , char* password )

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com