Topic: Does ME work with Apple Leopard OS X Server Wiki's AtomPub

Hello - I tried connecting a trial of marsedit with the atompub url of Apple's Wiki. According to their docs:

You can use an AtomPub-enabled client to log in, publish, update, or delete
wiki and blog entries. Configure AtomPub clients to use this service address:
http://domain_name/groups/group_name/atompub

That's all the info there is, so I tried that, but marsedit seems to not like that URL very much.

Anything I can try to make this work? Is there any more information I could suss out?

Regards
Rick Cogley

--
Rick Cogley - Tokyo, Japan
Personal - http://rick.cogley.info
Company - http://www.esolia.com

Re: Does ME work with Apple Leopard OS X Server Wiki's AtomPub

Hi Rick - MarsEdit doesn't (YET) support general purpose AtomPub. It's something I'm adding soon.

I know that Leopard's WikiServer also supports MetaWeblog, which MarsEdit does support. I'm not sure if it supports it for the Wiki pages or just for the blog.  If you search on MarsEdit in the Wiki help I think you'll actually find some information about using MarsEdit and it might mention it there. Apple was kind enough to put MarsEdit into the documentation.

Re: Does ME work with Apple Leopard OS X Server Wiki's AtomPub

Thank you, Daniel. Works like a charm. I must say, I did not even notice there was online help, but there is. I had been reading the Apple PDFs on the subject but there you are. Here is a quote from the in-wiki Help on Apple Wiki from Leopard Server:

Apple Help wrote:

Using a blog editing application

In addition to using the regular web-based interface to edit the content of your blog, you can use a blog editing application such as MarsEdit or ecto. These are desktop applications that run on your computer and communicate with the blog software to create, edit, and manage pages. One advantage of these types of programs is that you can write content when you're not connected to the blog server, and then upload the page when you're finished.

To access your blog, use an applicatioin that works with the Metaweblog API. Use the following information to configure the editor:

    * RPC Access Point: http://serverDNSname/RPC2
    * Username or Blog ID: Your user name or the name of your group

To configure MarsEdit:

    * RPC access point: http://serverDNSName/RPC2
    * blogid for user blog: users/username/weblog
    * blogid for a group blog: groups/groupname/weblog

For more information, see the MarsEdit website, the ecto website, and the Metaweblog API specification.

Hope this helps someone.

--
Rick Cogley - Tokyo, Japan
Personal - http://rick.cogley.info
Company - http://www.esolia.com

Re: Does ME work with Apple Leopard OS X Server Wiki's AtomPub

Thanks for sharing!  I take it then that the RPC interface works only for blog entries, and not for Wiki entries?

Re: Does ME work with Apple Leopard OS X Server Wiki's AtomPub

I just tested it, and it works for wiki entries as well which is nice.

RPC access point - http://your-leopard-wiki-server/RPC2
blogid for group wiki - groups/groupname/wiki
... where, groupname is the "shortname" in Leopard's Open Directory, set via the "Workgroup Manager" application.

Regards
Rick

--
Rick Cogley - Tokyo, Japan
Personal - http://rick.cogley.info
Company - http://www.esolia.com

Re: Does ME work with Apple Leopard OS X Server Wiki's AtomPub

The above is nice, but how does one get the media entries to work with Apple's wikiserver?  I can make text posts just fine, but can't figure out how to upload image, etc., for inclusion.  Is this a limitation on the wikiserver end?

Re: Does ME work with Apple Leopard OS X Server Wiki's AtomPub

Scienceman: when you try to upload images, what happens?  Can you peek in the Network Log (from Window menu in MarsEdit).  If you clear it first, and then upload an image, it should show only the log from the image upload process.

Daniel

Re: Does ME work with Apple Leopard OS X Server Wiki's AtomPub

Slightly edited to remove the account and server ID and to shorten the portion corresponding to the image, here are the contents of the network log:

Network message sent: 2008-08-24 12:57:42 -0500
URL: http://(my server)/RPC2
Method name: metaWeblog.newMediaObject
Network reply received: 2008-08-24 12:57:43 -0500
URL: http://(my server)/RPC2
Method name: metaWeblog.newMediaObject
Status code: 200
Succeeded: NO
--Fault Error--
Fault code: 8002
Fault string: function metaWeblog.newMediaObject not valid

Traceback (most recent call last):
Failure: twisted.python.failure.DefaultException: function metaWeblog.newMediaObject not valid

Request text:
<?xml version="1.0" encoding="utf-8"?>
<methodCall>
    <methodName>metaWeblog.newMediaObject</methodName>
    <params>
        <param>
            <value><string>users/(username)/weblog</string></value>
            </param>
        <param>
            <value><string>(my username)</string></value>
            </param>
        <param>
            <value><string>[password]</string></value>
            </param>
        <param>
            <value>
            <struct>
            <member>
            <name>name</name>
            <value><string>images/testfile.png</string></value>
            </member>
            <member>
            <name>bits</name>
            <value><base64>iVBORw0KG... (long string of image contents)
            ...AASUVORK5CYII=</base64></value>
            </member>
            <member>
            <name>type</name>
            <value><string>image/png</string></value>
            </member>
            </struct>
            </value>
            </param>
        </params>
    </methodCall>

Response text:
<?xml version="1.0"?>
<methodResponse>
<fault>
<value><struct>
<member>
<name>faultCode</name>
<value><int>8002</int></value>
</member>
<member>
<name>faultString</name>
<value><string>function metaWeblog.newMediaObject not valid

Traceback (most recent call last):
Failure: twisted.python.failure.DefaultException: function metaWeblog.newMediaObject not valid
</string></value>
</member>
</struct></value>
</fault>
</methodResponse>

Re: Does ME work with Apple Leopard OS X Server Wiki's AtomPub

Thanks - the log is pretty straightforward, showing the server rejecting the cmomand "newMediaObject" which it needs to support in order to accept uploads via XMLRPC.

I haven't had a chance to test AtomPub with the Leopard Wiki yet, but since MarsEdit 2.2 supports AtomPub, it might be worth a shot. If you look in the WikiServer documentation it should have information about configuring for AtomPub.

I should really get around to installing Leopard Server and testing this myself. But if you get to trying it before I do, please let us know how the AtomPub support is working.

Daniel

Re: Does ME work with Apple Leopard OS X Server Wiki's AtomPub

Curious, is there some wiki that allows me to use MarsEdit to post stuff (including media)? I know nothing about AtomPub so this might be a silly question.

Re: Does ME work with Apple Leopard OS X Server Wiki's AtomPub

Hi Jem - AtomPub is just another mechanism for communication between MarsEdit and a blog. It's starting to gain a bit of popularity, and early support for it is in MarsEdit 2.2.

I don't know if other Wikis support it, but supposedly Apple's WikiServer in Leopard OS X Server does support AtomPub for managing both blogs and Wiki content.

Daniel

Re: Does ME work with Apple Leopard OS X Server Wiki's AtomPub

Any update on this?  What are the correct settings for use of MarsEdit with either Leopard or Snow Leopard Apple wikiserver web services?

Re: Does ME work with Apple Leopard OS X Server Wiki's AtomPub

I am looking for some helpful updates.
Please keep us posted.

Thanks

Re: Does ME work with Apple Leopard OS X Server Wiki's AtomPub

Hi guys - I'm sorry I haven't had a chance to install Mac OS X Server and test this. Generally speaking the demand for support of Apple Wikiserver is very low, so I tend to prioritize other issues.

This would be an ideal situation for a more technical MarsEdit user who DOES use Wikiserver to dig in and figure out what the details are.  I have heard there is some documentation in the Wikiserver help about setting it up with AtomPub clients, but as I said, I haven't had the chance to set up a test server and try it out myself.

Daniel