Post via XML-RPC - Plugin Question

Creating and modifying plugins.
Post Reply
abumgardner
Posts: 4
Joined: Sat Oct 20, 2007 3:51 am
Location: Owensboro, KY
Contact:

Post via XML-RPC - Plugin Question

Post by abumgardner »

I just installed the plugin thru the plugin manager without a problem. Now, should I see something when I go to:
http://MyHost/serendipity/serendipity_xmlrpc.php

Currently in Firefox it displays:
XML Parsing Error: no element found
Location: http://myhost/serendipity/serendipity_xmlrpc.php
Line Number 1, Column 1:

In Internet Explorer it displays:

The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

XML document must have a top level element. Error processing resource 'http://MyHost/serendipity/seren...



Should I be seeing something different?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Post via XML-RPC - Plugin Question

Post by garvinhicking »

Hi!

The URL is not meant to be viewed in your browser, the URL is meant for XML-RPC posting clients like ecto, marsedit etc.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
abumgardner
Posts: 4
Joined: Sat Oct 20, 2007 3:51 am
Location: Owensboro, KY
Contact:

Post by abumgardner »

Thanks. That is what I was looking for.

I am actually trying to get some data from another web application (www.bimactive.com) to post to my blog via xml/rpc and was just trying to determine which side the problem was on.

I will look at that application for further guidance.

Thanks again
abumgardner
Posts: 4
Joined: Sat Oct 20, 2007 3:51 am
Location: Owensboro, KY
Contact:

EditURI and RSD

Post by abumgardner »

I went back to the web service I was trying to post from and asked about what I could check for on my blog side to see why it wasn't able to validate my settings. Here is there response:
tries to validate your external blog settings, it's trying to figure out what blogging interface to use to talk to your blog. The first step in this process is that it retrieves your blog page and looks for an item on the page like this:

link rel="EditURI" type="application/rsd+xml" title="RSD" href="url to your blog's RSD file"

The server is looking for your RSD (Really Simple Discovery) XML file which describes the different blogging interfaces your blog supports. So, the first thing to do is check that your blog web page contains a reference to the RSD file. If it doesn't contain this reference, you'll need to include one.

Second, verify that the RSD file contains "api" references for either "MetaWeblog" or "Blogger". The BiM Active server looks for either of these supported blogging interfaces and picks one to use. If the RSD file does not contain a reference for either of these two, then it will not be able to validate your external blog settings.
From the documentation/faq it appears the Serendipity does support the "Blogger" interface. However, I don't see any references to the RSD XML file.

Any thoughts?

Thanks
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: EditURI and RSD

Post by garvinhicking »

Hi!

Serendipity does not have a "RSD" file. Sadly I've never used that, so I don't even know how it needs to look like.

s9y supports both metaWeblog and blogger API.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: EditURI and RSD

Post by garvinhicking »

Hi!

I just googled the format and added it to the XML-RPC plugin, you can download the updated file here:

http://php-blog.cvs.sourceforge.net/*ch ... ision=1.27

and put it in your directory.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
abumgardner
Posts: 4
Joined: Sat Oct 20, 2007 3:51 am
Location: Owensboro, KY
Contact:

Post by abumgardner »

Wow that was fast.

I grabbed the file and placed it in the appropriate directory. Is there anything else I need to do?

Is there a way I can view the contents of the generated page?

Thanks
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Uploading the file should be all you need to do! What is your URL? Then I can check if it worked...
Is there a way I can view the contents of the generated page?
Yes, you can open http://yourblog/ in the browser and check the HTML MEta tags, if it contains the RSD-link relation.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply