Class XMLRPC_Server
XML-RPC webservice, donīt use echo/print for webservice script, echo/print send back information to the XML-RPC host, don't forget to catch errors
- XMLRPC
-
XMLRPC_Server
Methods summary
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
integer
|
|
public
mixed
|
|
public
boolean
|
|
public
|
|
public
array
|
#
authenticate( string $realm = 'protected XML-RPC web service', mixed $abortHtml = null )
request the client to authenticate and return the user and password as array, if no authentication is send by client the function return HTTP Error 401 to the client and abort the script. |
public
|
#
unauthorized( string $realm = 'protected XML-RPC web service', mixed $abortHtml = null )
return HTTP Error 401 to the client and abort the script |
Methods inherited from XMLRPC
array2DataTag()
,
array2MemberTags()
,
cast()
,
dataTag2array()
,
memberTags2array()
Properties summary
private
|
$m_logger
|
#
null
|
private
string
|
$m_xml
|
#
""
|
private
array
|
$m_headers
|
#
array()
|
private
string
|
$m_obj_guid
|
#
""
|
public
mixed
|
$m_trace_delAfter
size before trace file will set to zero |
#
"1024K"
|
public
string
|
$m_trace_path
path for trace file |
#
""
|
public
string
|
$m_trace_file
filename of tracefile |
#
""
|
public
string
|
$m_errormsg
error message |
#
""
|
public
boolean
|
$m_validate_headers
validate the headers to XML-RPC spec. if true and set the memvar "m_errormsg", if method "getRAW" failed |
#
true
|
public
mixed
|
$m_gz_level
gz compression level, possibe values 0 - 9 | auto |
#
0
|
public
boolean
|
$m_gz_small_data
compress small data |
#
false
|
public
string
|
$m_gz_small_data_size
data smaller this size will nerver compressed |
#
"4K"
|
public
string
|
$m_trace_critical_section_id
enable critical section for write trace files |
#
null
|
public
string
|
$m_trace_critical_section_path
path to share the critical section for write trace files |
#
"./"
|
public
integer
|
$m_trace_critical_section_maxlock_ms
max lock time for zombie processes |
#
1000
|
public
integer
|
$m_trace_critical_section_sleep_ms
sleep for retry enter critical section |
#
10
|
public
boolean
|
$m_trace_sqlite
write the trace to a SQLite file instead of a text file |
#
false
|