XML-RPC problems in WP 2.00
-
I am testing new WP 2.00 with Post2Blog blogging client for Windows that uses MetaWeblog/MovableType XML-RPC API to make new posts and edit existing posts and it seems like extended entires are not supported anymore (WP 1.5.x works fine).
Problems:
1. When extended entry field is supplied in XML-RPC request then the whole entry is mixed with extended entry so no way to set extended entry via XML-RPC
2. When you edit post previously posted via XML-RPC then you can’t see <!–more–> tag that separates main and extended entry.I believe the problems are in the implementation for MetaWeblog.NewPost and MetaWeblog.EditPost methods so is there any bug-fixes or patches for this problem?
Example:
XML-RPC request to add edit/add new post:<?xml version=”1.0″?>
<methodCall>
<methodName>metaWeblog.editPost</methodName>
<params>
<param>
<value><string>97</string></value>
</param>
<param>
<value><string>USERNAME</string></value>
</param>
<param>
<value><string>PASSWORD</string></value>
</param>
<param>
<value>
<struct>
<member>
<name>title</name>
<value><string></string></value>
</member>
<member>
<name>description</name>
<value><string>main text</string></value>
</member>
<member>
<name>mt_text_more</name>
<value><string>more text goes here</string></value>
</member>
<member>
<name>mt_allow_comments</name>
<value><int>1</int></value>
</member>
<member>
<name>mt_allow_pings</name>
<value><int>1</int></value>
</member>
<member>
<name>mt_excerpt</name>
<value><string></string></value>
</member>
</struct>
</value>
</param>
<param>
<value><boolean>0</boolean></value>
</param>
</params>
</methodCall>Then download posted entry and you can see that returned “mt_text_more” field now is empty:
<?xml version=”1.0″?>
<methodResponse>
<params>
<param>
<value>
<data>
<value><struct>
<member><name>dateCreated</name><value><dateTime.iso8601>20060105T13:32:48</dateTime.iso8601></value></member>
<member><name>userid</name><value><string>2</string></value></member>
<member><name>postid</name><value><string>97</string></value></member>
<member><name>description</name><value><string>main textother text goes here</string></value></member>
<member><name>title</name><value><string></string></value></member>
<member><name>link</name><value><string>https://picturelli.com/Post2Blog_TestBlog/?p=97</string></value></member>
<member><name>permaLink</name><value><string>https://picturelli.com/Post2Blog_TestBlog/?p=97</string></value></member>
<member><name>categories</name><value><data>
<value><string>Sample Category 1</string></value>
</data></value></member>
<member><name>mt_excerpt</name><value><string></string></value></member>
<member><name>mt_text_more</name><value><string></string></value></member>
<member><name>mt_allow_comments</name><value><int>1</int></value></member>
<member><name>mt_allow_pings</name><value><int>1</int></value></member>
</struct></value>
</data>
</value>
</param>
</params>
</methodResponse>
- The topic ‘XML-RPC problems in WP 2.00’ is closed to new replies.