PXMLRPC Class Reference

#include <pxmlrpc.h>

Inheritance diagram for PXMLRPC:

PObject List of all members.

Public Types

enum  {
  CannotCreateRequestXML = 100, CannotParseResponseXML, CannotParseRequestXML, HTTPPostFailed,
  CannotReadResponseContentBody, ResponseRootNotMethodResponse, ResponseEmpty, ResponseUnknownFormat,
  ParamNotValue, ScalarWithoutElement, ParamNotStruct, MemberIncomplete,
  MemberUnnamed, FaultyFault, RequestHasWrongDocumentType, RequestHasNoMethodName,
  RequestHasNoParms, MethodNameIsEmpty, UnknownMethod, ParamNotArray,
  UserFault = 1000
}

Public Member Functions

 PXMLRPC (const PURL &url, unsigned options=0)
void SetTimeout (const PTimeInterval &_timeout)
BOOL MakeRequest (const PString &method)
BOOL MakeRequest (const PString &method, PXMLRPCBlock &response)
BOOL MakeRequest (PXMLRPCBlock &request, PXMLRPCBlock &response)
BOOL MakeRequest (const PString &method, const PXMLRPCStructBase &args, PXMLRPCStructBase &reply)
PString GetFaultText () const
PINDEX GetFaultCode () const

Static Public Member Functions

static BOOL ISO8601ToPTime (const PString &iso8601, PTime &val, int tz=PTime::GMT)
static PString PTimeToISO8601 (const PTime &val)

Protected Member Functions

BOOL PerformRequest (PXMLRPCBlock &request, PXMLRPCBlock &response)

Protected Attributes

PURL url
PINDEX faultCode
PString faultText
PTimeInterval timeout
unsigned options

Member Enumeration Documentation

anonymous enum

Enumerator:
CannotCreateRequestXML 
CannotParseResponseXML 
CannotParseRequestXML 
HTTPPostFailed 
CannotReadResponseContentBody 
ResponseRootNotMethodResponse 
ResponseEmpty 
ResponseUnknownFormat 
ParamNotValue 
ScalarWithoutElement 
ParamNotStruct 
MemberIncomplete 
MemberUnnamed 
FaultyFault 
RequestHasWrongDocumentType 
RequestHasNoMethodName 
RequestHasNoParms 
MethodNameIsEmpty 
UnknownMethod 
ParamNotArray 
UserFault 


Constructor & Destructor Documentation

PXMLRPC::PXMLRPC ( const PURL url,
unsigned  options = 0 
)


Member Function Documentation

void PXMLRPC::SetTimeout ( const PTimeInterval _timeout  )  [inline]

BOOL PXMLRPC::MakeRequest ( const PString method  ) 

BOOL PXMLRPC::MakeRequest ( const PString method,
PXMLRPCBlock response 
)

BOOL PXMLRPC::MakeRequest ( PXMLRPCBlock request,
PXMLRPCBlock response 
)

BOOL PXMLRPC::MakeRequest ( const PString method,
const PXMLRPCStructBase args,
PXMLRPCStructBase reply 
)

PString PXMLRPC::GetFaultText (  )  const [inline]

PINDEX PXMLRPC::GetFaultCode (  )  const [inline]

static BOOL PXMLRPC::ISO8601ToPTime ( const PString iso8601,
PTime val,
int  tz = PTime::GMT 
) [static]

static PString PXMLRPC::PTimeToISO8601 ( const PTime val  )  [static]

BOOL PXMLRPC::PerformRequest ( PXMLRPCBlock request,
PXMLRPCBlock response 
) [protected]


Member Data Documentation

PURL PXMLRPC::url [protected]

PINDEX PXMLRPC::faultCode [protected]

PString PXMLRPC::faultText [protected]

PTimeInterval PXMLRPC::timeout [protected]

unsigned PXMLRPC::options [protected]


The documentation for this class was generated from the following file:
Generated on Fri Mar 7 06:25:07 2008 for PTLib by  doxygen 1.5.1