D
DougS
I am trying to implement a MetaWebLog api that words with Word 2007 blogs.
The xml my getRecentPosts method returns seems to be correct, but when I
click the "open existing" button in word 2007 blogs, the list of posts
returned is blank. Does anyone have sample xml returned by getRecentPosts
that word 2007 expects so I can check it against my xml? Here is a sample
response from my app:
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse xmlns:ex="http://ws.apache.org/xmlrpc/namespaces/extensions">
<params>
<param>
<value>
<array>
<data>
<value>
<struct>
<member>
<name>postid</name>
<value><i4>228</i4></value>
</member>
<member>
<name>title</name>
<value>Test Post</value>
</member>
<member>
<name>link</name>
<value>http://localhost:8080/dougs860/blog/article?blog.id=adminblog&thread.id=13</value>
</member>
<member>
<name>description</name>
<value>a <b>description;</b></value>
</member>
<member>
<name>categories</name>
<value><array><data/></array></value>
</member>
<member>
<name>dateCreated</name>
<value><ex:nil/></value>
</member>
</struct>
</value>
<value>
<struct>
<member>
<name>postid</name>
<value><i4>226</i4></value>
</member>
<member>
<name>title</name>
<value>Another Post From ScribeFire</value>
</member>
<member>
<name>link</name>
<value>http://localhost:8080/dougs860/blog/article?blog.id=adminblog&thread.id=12</value>
</member>
<member>
<name>description</name>
<value>Testing a new post</value>
</member>
<member>
<name>categories</name>
<value><array><data/></array></value>
</member>
<member>
<name>dateCreated</name>
<value><ex:nil/></value>
</member>
</struct>
</value>
<value>
<struct>
<member>
<name>postid</name>
<value><i4>223</i4></value>
</member>
<member>
<name>title</name>
<value>Another Post From Word 2007</value>
</member>
<member>
<name>link</name>
<value>http://localhost:8080/dougs860/blog/article?blog.id=adminblog&thread.id=10</value>
</member>
<member>
<name>description</name>
<value><p>Here is some text,
</p><p>in the body of a message,
</p><p>with some paragraph tags,
</p><p>and <a
href="http://www.extremeprogramming.org/rules/unittests.html" target=_blank>a
link</a>.</value>
</member>
<member>
<name>categories</name>
<value><array><data/></array></value>
</member>
<member>
<name>dateCreated</name>
<value><dateTime.iso8601>20080505T23:52:30</dateTime.iso8601></value>
</member>
</struct>
</value>
</data>
</array>
</value>
</param>
</params>
</methodResponse>
The xml my getRecentPosts method returns seems to be correct, but when I
click the "open existing" button in word 2007 blogs, the list of posts
returned is blank. Does anyone have sample xml returned by getRecentPosts
that word 2007 expects so I can check it against my xml? Here is a sample
response from my app:
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse xmlns:ex="http://ws.apache.org/xmlrpc/namespaces/extensions">
<params>
<param>
<value>
<array>
<data>
<value>
<struct>
<member>
<name>postid</name>
<value><i4>228</i4></value>
</member>
<member>
<name>title</name>
<value>Test Post</value>
</member>
<member>
<name>link</name>
<value>http://localhost:8080/dougs860/blog/article?blog.id=adminblog&thread.id=13</value>
</member>
<member>
<name>description</name>
<value>a <b>description;</b></value>
</member>
<member>
<name>categories</name>
<value><array><data/></array></value>
</member>
<member>
<name>dateCreated</name>
<value><ex:nil/></value>
</member>
</struct>
</value>
<value>
<struct>
<member>
<name>postid</name>
<value><i4>226</i4></value>
</member>
<member>
<name>title</name>
<value>Another Post From ScribeFire</value>
</member>
<member>
<name>link</name>
<value>http://localhost:8080/dougs860/blog/article?blog.id=adminblog&thread.id=12</value>
</member>
<member>
<name>description</name>
<value>Testing a new post</value>
</member>
<member>
<name>categories</name>
<value><array><data/></array></value>
</member>
<member>
<name>dateCreated</name>
<value><ex:nil/></value>
</member>
</struct>
</value>
<value>
<struct>
<member>
<name>postid</name>
<value><i4>223</i4></value>
</member>
<member>
<name>title</name>
<value>Another Post From Word 2007</value>
</member>
<member>
<name>link</name>
<value>http://localhost:8080/dougs860/blog/article?blog.id=adminblog&thread.id=10</value>
</member>
<member>
<name>description</name>
<value><p>Here is some text,
</p><p>in the body of a message,
</p><p>with some paragraph tags,
</p><p>and <a
href="http://www.extremeprogramming.org/rules/unittests.html" target=_blank>a
link</a>.</value>
</member>
<member>
<name>categories</name>
<value><array><data/></array></value>
</member>
<member>
<name>dateCreated</name>
<value><dateTime.iso8601>20080505T23:52:30</dateTime.iso8601></value>
</member>
</struct>
</value>
</data>
</array>
</value>
</param>
</params>
</methodResponse>