ATOM XML is not accepted by IBM Connections Server



我想将此XML(由C#SyndicationItem生成)发布到IBM Connections 4.0 OAuth EndPoint:

https://HOSTNAME/forums/oauth/atom/respots?主题Uuid=ee5878b5-65d4-4d44-8192-367e49c30e91

服务器返回错误400,错误请求。这个XML可能出了什么问题?

设置Bearer和ContentType标头。

<entry xmlns:thr="http://purl.org/syndication/thread/1.0"     xmlns="http://www.w3.org/2005/Atom">
  <id>uuid:3201e3e0-2d17-4f8c-9f69-22bd7cbb1443;id=1</id>
<title
type="text">re: test voor topic</title>
<updated>2013-08-14T15:27:43Z</updated>
<content
type="text">fetre</content>
<category
scheme="http://www.ibm.com/xmlns/prod/sn/type"
term="forum-reply" xmlns=""></category>
<in-reply-to
ref="urn:lsid:ibm.com:forum:ee5878b5-65d4-4d44-8192-367e49c30e91"
href="https://HOSTNAME/forums/atom/topic?topicUuid=ee5878b5-65d4-4d44-8192-367e49c30e91" 
xmlns="http://purl.org/syndication/thread/1.0"></in-reply-to>
</entry>

有两件事需要仔细检查1) 我想知道在atom条目中是否需要id元素,在Connections论坛API文档的示例中,没有提供id2) 我注意到你在中使用了主题uuid

ref="urn:lsid:ibm.com:论坛:ee5878b5-65d4-4d44-8192-367e49c30e91"

,事实上,您应该使用正确的论坛uuid,而不是主题id。

最新更新