|
From: Brian L. <bl...@hc...> - 2000-12-13 17:54:40
|
Hey again. I've done a little more research into my problem with XML-RPC
and Meerkat. I'm trying to use the xmlrpc Tcl package. I'm beginning to
think the problem lies in the PHP XML-RPC server, but it is aggravated by
the Tcl package's insistence in putting in the DOCTYPE tag.
Here are the raw messages:
(from the PHP client: new xmlrpcmsg("system.listMethods") )
<?xml version="1.0"?>
<methodCall>
<methodName>system.listMethods</methodName>
<params>
</params>
</methodCall>
(from the Tcl client: xmlrpc::call $meerkat_server "system.listMethods" )
<?xml version='1.0'?>
<!DOCTYPE methodCall>
<methodCall>
<methodName>system.listMethods</methodName>
<params/>
</methodCal>
Note that there are two differences: the way the empty params tag is
specified, and the addition of the <!DOCTYPE methodCall> tag in the Tcl
version. The error I get back from the server using the Tcl client is
<?xml version="1.0"?>
<methodResponse>
<fault>
<value>
<struct>
<member>
<name>faultCode</name>
<value><int>103</int></value>
</member>
<member>
<name>faultString</name>
<value><string>XML error: no element found at line 1</string></value>
</member>
</struct>
</value>
</fault>
</methodResponse>
So, my question is "who's right"? Is the Tcl client correct in putting in
the DOCTYPE element, or is the PHP server correct in returning an error?
Thanks,
B
_____________________________________________________________________________
B r i a n L a l o r bl...@hc...
http://hcirisc.cs.binghamton.edu/~blalor Spam me not.
To get my pgp key, put "get pgp key" in the subject of your message
Coach: What'll it be, Normie?
Norm: Just the usual, Coach. I'll have a froth of beer and a snorkel.
-- Cheers, King of the Hill
|