Page 1 of 1

Anyone have XMLRPC working?

Posted: Thu Oct 02, 2003 10:38 pm
by bullvi
Has anyone had any luck with getting serendipity_xmlrpc.php to work? I've tried Zempt, and wbloggar, and neither can parse serendipity. The features say supports MT, and Blogger xml, however, I've never gotten any other tool to work either blogger, blogman, mozblog, etc. etc..

Posted: Thu Oct 02, 2003 11:08 pm
by tomsommer
Do you get any errors?

Posted: Sat Oct 04, 2003 7:16 am
by bullvi
tomsommer wrote:Do you get any errors?
Whoops..

Zempt says:
"Error! Invalid XML {<methodResponse> not found)

wbloggar doesn't give a detailed error.

Zempt is specifically for Moveable Type weblogs. wbloggar is for just about everything.

I'm running the Oct3 build of S9y.

This is actually a bug report.

Posted: Mon Oct 06, 2003 8:52 pm
by bullvi
I've been trying to find out why serendipity_xmlrpc isn't working.

I ran tcpdump on my system and watched the transaction, turns out there is an error being generated by the xmlrpc parser:
2003-10-06
13:44:26.288852
66.77.29.177.http > 12.247.242.45.3667
P1:f0(e9) k 29 win d2(DF)E<8A><99>@@N<81>BM-PS[XO<9A><8A>6P JHTTP/1.1 200 OK
Date: Mon, 06 Oct 2003 18:44:26 GMT
Server: Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_fastcgi/2.2.10 mod_perl/1.24_01 PHP/4.2.2 FrontPage/5.0.2 mod_ssl/2.8.12 OpenSSL/0.9.6b
X-Powered-By: PHP/4.2.2
Set-Cookie: PHPSESSID=9d212957339f62b9625e9c48396eb856; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Transfer-Encoding: chunked
Content-Type: text/html

ad
<br />
<b>Fatal error</b>: Call to a member function on a non-object in <b>/home/virtual/site21/fst/var/www/html/mutant/serendipity_xmlrpc.php</b> on line <b>128</b><br />

0
I have the full dump file, and can send it to anyone that wants it. I'd upload it to the forums, but it doesn't accept uploads.

Further, I'd love to help fix it, but I've not been able to figure it out.

Posted: Mon Oct 06, 2003 9:45 pm
by tomsommer
Thanks for the help, I'll look into it within a few days

Posted: Mon Oct 06, 2003 9:52 pm
by bullvi
tomsommer wrote:Thanks for the help, I'll look into it within a few days
Thanks Tom, I got the data to be formatted a little smaller.. Here it is.
> ngrep -s 9999 -t host xxx.xxx.xxx.xxx and tcp port 80
interface: eth0 (xxx.xxx.xxx.xxx/255.255.255.224)
filter: ip and ( host xxx.xxx.xxx.xxx and tcp port 80 )
####
T 2003/10/06 14:44:08.369808 xxx.xxx.xxx.xxx:4146 -> xxx.xxx.xxx.xxx:80 [AP]
POST /mutant/serendipity_xmlrpc.php HTTP/1.1..User-Agent: Zempt0.3.0702.1...Host: www.XXmyblog.comXX..Pragma: no-cache..Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*..Content
-Type: text/xml..Content-Length: 219....
##
T 2003/10/06 14:44:08.380905 xxx.xxx.xxx.xxx:4146 -> xxx.xxx.xxx.xxx:80 [AP]
<?xml version="1.0"?>..<methodCall><methodName>blogger.getUsersBlogs</methodName><params><param><value>appKey</value></param><param><value>XXuserXX</value></param><param><value>XXpassXX</value></p
a
ram></params></methodCall>
##
T 2003/10/06 14:44:08.492608 xxx.xxx.xxx.xxx:80 -> xxx.xxx.xxx.xxx:4146 [AP]
HTTP/1.1 200 OK..Date: Mon, 06 Oct 2003 19:44:08 GMT..Server: Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_fastcgi/2.2.10 mod_perl/1.24_01 PHP/4.2.2 FrontPage/5.0.2 mod_ssl/2.8.12 OpenSSL/0.9.6b..
X-Powered-By: PHP/4.2.2..Set-Cookie: PHPSESSID=70054e074c70dfd459cc484e4ad18679; path=/..Expires: Thu, 19 Nov 1981 08:52:00 GMT..Cache-Control: no-store, no-cache, must-revalidate, post-check=0
, pre-check=0..Pragma: no-cache..Transfer-Encoding: chunked..Content-Type: text/xml.Content-length: 588....24c..<?xml version="1.0"?>.<!-- DEBUG INFO:..0 - new XML_RPC_Value("appKey", 'string')
.1 - new XML_RPC_Value("mutant", 'string') .2 - new XML_RPC_Value("XXpassXX", 'string') ...-->.<methodResponse>.<params>.<param>.<value><array>.<data>.<value><struct>.<member><name>url</name>.<v
alue><string>http://www.XXmyblog.comXX/mutant/</stri ... <string>Mu
tant Mumblings</string></value>.</member>.</struct></value>.</data>.</array></value>.</param>.</params>.</methodResponse>..0....
#######
T 2003/10/06 14:44:11.698972 xxx.xxx.xxx.xxx:4147 -> xxx.xxx.xxx.xxx:80 [AP]
POST /mutant/serendipity_xmlrpc.php HTTP/1.1..User-Agent: Zempt0.3.0702.1...Host: www.XXmyblog.comXX..Pragma: no-cache..Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*..Content
-Type: text/xml..Content-Length: 211....
##
T 2003/10/06 14:44:11.748942 xxx.xxx.xxx.xxx:4147 -> xxx.xxx.xxx.xxx:80 [AP]
<?xml version="1.0"?>..<methodCall><methodName>mt.getCategoryList</methodName><params><param><value>1</value></param><param><value>XXuserXX</value></param><param><value>XXpassXX</value></param></p
a
rams></methodCall>
##
T 2003/10/06 14:44:11.867999 xxx.xxx.xxx.xxx:80 -> xxx.xxx.xxx.xxx:4147 [A]
HTTP/1.1 200 OK..Date: Mon, 06 Oct 2003 19:44:11 GMT..Server: Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_fastcgi/2.2.10 mod_perl/1.24_01 PHP/4.2.2 FrontPage/5.0.2 mod_ssl/2.8.12 OpenSSL/0.9.6b..
X-Powered-By: PHP/4.2.2..Set-Cookie: PHPSESSID=24d6b1e2714d9fb54aadd7e8dc35dca3; path=/..Expires: Thu, 19 Nov 1981 08:52:00 GMT..Cache-Control: no-store, no-cache, must-revalidate, post-check=0
, pre-check=0..Pragma: no-cache..Transfer-Encoding: chunked..Content-Type: text/xml.Content-length: 1451....5ab..<?xml version="1.0"?>.<!-- DEBUG INFO:..0 - new XML_RPC_Value("1", 'string') .1
- new XML_RPC_Value("mutant", 'string') .2 - new XML_RPC_Value("XXpassXX", 'string') ...-->.<methodResponse>.<params>.<param>.<value><array>.<data>.<value><struct>.<member><name>categoryId</name>
.<value><string>5</string></value>.</member>.<member><name>categoryName</name>.<value><string>Gamma World</string></value>.</member>.</struct></value>.<value><struct>.<member><name>categoryId</
name>.<value><string>3</string></value>.</member>.<member><name>categoryName</name>.<value><string>Geekz</string></value>.</member>.</struct></value>.<value><struct>.<member><name>categoryId</n
ame>.<value><string>1</string></value>.</member>.<member><name>categoryName</name>.<value><string>General</string></value>.</member>.</struct></value>.<value><struct>.<member><name>categoryId</
name>.<value><string>6</string></value>.</member>.<member><name>categoryName</name>.<value><string>Personal</
#
T 2003/10/06 14:44:11.868033 xxx.xxx.xxx.xxx:80 -> xxx.xxx.xxx.xxx:4147 [AP]
string></value>.</member>.</struct></value>.<value><struct>.<member><name>categoryId</name>.<value><string>2</string></value>.</member>.<member><name>categoryName</name>.<value><string>PHP</str
ing></value>.</member>.</struct></value>.<value><struct>.<member><name>categoryId</name>.<value><string>4</string></value>.</member>.<member><name>categoryName</name>.<value><string>Politics</s
tring></value>.</member>.</struct></value>.</data>.</array></value>.</param>.</params>.</methodResponse>..0....
########
T 2003/10/06 14:44:11.928802 xxx.xxx.xxx.xxx:4148 -> xxx.xxx.xxx.xxx:80 [AP]
POST /mutant/serendipity_xmlrpc.php HTTP/1.1..User-Agent: Zempt0.3.0702.1...Host: www.XXmyblog.comXX..Pragma: no-cache..Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*..Content
-Type: text/xml..Content-Length: 96....
##
T 2003/10/06 14:44:11.953762 xxx.xxx.xxx.xxx:4148 -> xxx.xxx.xxx.xxx:80 [AP]
<?xml version="1.0"?>..<methodCall><methodName>mt.supportedTextFilters</methodName></methodCall>
##
T 2003/10/06 14:44:12.083356 xxx.xxx.xxx.xxx:80 -> xxx.xxx.xxx.xxx:4148 [AP]
HTTP/1.1 200 OK..Date: Mon, 06 Oct 2003 19:44:11 GMT..Server: Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_fastcgi/2.2.10 mod_perl/1.24_01 PHP/4.2.2 FrontPage/5.0.2 mod_ssl/2.8.12 OpenSSL/0.9.6b..
X-Powered-By: PHP/4.2.2..Set-Cookie: PHPSESSID=8d6fe2fbc34ff511e4d57b8d99613120; path=/..Expires: Thu, 19 Nov 1981 08:52:00 GMT..Cache-Control: no-store, no-cache, must-revalidate, post-check=0
, pre-check=0..Pragma: no-cache..Transfer-Encoding: chunked..Content-Type: text/html....ad ..<br />.<b>Fatal error</b>: Call to a member function on a non-object in <b>/home/virtual/site21/fst
/var/www/html/mutant/serendipity_xmlrpc.php</b> on line <b>128</b><br />...0....
###exit
36 received, 0 dropped

Posted: Fri Oct 10, 2003 7:10 pm
by tomsommer
try the CVS now

tested with Kung-Log (mt/metaweblog hybrid)

Posted: Sun Oct 12, 2003 8:35 pm
by gschlossnagle
would appreciate feedback from anyone using a pure Blogger API tool.

Posted: Tue Oct 14, 2003 1:03 am
by bullvi
WOO!!

The Zempt and W.bloggar both connect now, they can't pull previous posts, or post, but they do connect!! WHOO!

I'll look for a pure blogger api tool to test with.

Still odd behavior w/ 0.6-pl3

Posted: Thu Aug 19, 2004 5:01 pm
by Scoshi
I'm still seeing badly formatted posts with 0.6. The title doesn't get parsed out as an entity, and the body content (if I look through the web author interface after attempting an XML-RPC post) looks like:

<<title>>TITLE HERE<</title>>BODY HERE

It appears that some encoding's occuring that's messing up the parse ...

... any suggestions?

Further details

Posted: Thu Aug 19, 2004 5:39 pm
by Scoshi
I just tried BlogJet (in BloggerAPI mode) and see the same behavior exhibited when using w.bloggar:
  • - Title doesn't get separated
    - Body includes munged XML fragment (including title)
I don't think it's the serendipity_xmlrpc.php file ... it seems to be the XML-RPC message parser (in PEAR).

Maybe I'm whacked.
:shock:[/list]

Title in body and entry is draft

Posted: Sat Aug 21, 2004 7:04 am
by Awfki
I've just found s9y and this is a feature I very much want.

I tried wbloggar and Frequency and both put the title in with the body and fail to actually publish the entry. It does shows up as a draft entry.

If there's a way to make this work I would appreciate it if someone will clue me in.

Thanks[/quote]

Ok ... I've got a partial fix

Posted: Sat Aug 21, 2004 6:21 pm
by Scoshi
Well ... I've done some digging and isolated the problem.

1) There's a known bug in the PEAR::XML_RPC package (http://pear.php.net/bugs/bug.php?id=987) that generates the 'double coded' character entities. I've resolved that (sort of) for the Bloggar new and update methods (haven't had a chance to test the rest).

2) The serendipity_xmlrpc.php file doesn't strip the title element off properly in Blogger mode (more acurately, it doesn't do it at all). This I've also fixed, as well as correcting the "only posts as draft" issue.

I'm going through the motions of "joining the family" so I can get these changes back to the developers. If you want a copy of the patched file (in the meantime), let me know.

-Scott

It seems to work with w.bloggar as Movable Type

Posted: Tue Sep 21, 2004 10:53 pm
by Awfki
It seems to work with w.bloggar as Movable Type. I've only played with it for about 10 minutes but since I told w.bloggar it was Movable Type I've been able to add entries. The title even goes in correctly.

:P

Posted: Fri Oct 01, 2004 1:59 pm
by romulus
hmm posting seems to work with wbloggar and as movabletype, but I can't download any existing posts. When I try to open an existing post I get an error message: "Ungültiger Prozeduraufruf" (sorry only in german).

Hmm ...