2014-04-24 85 views
0

我试图在IBM Connections 4.5中使用REST创建事件,我使用了IBM Connections API文档,但是当我发布请求时,错误500,并且不返回错误消息。我传递的Atom文档是:尝试使用REST API在IBM Connections中创建事件时出现错误500

<?xml version="1.0" encoding="UTF-8"?> 
<entry 
    xmlns="http://www.w3.org/2005/Atom" 
    xmlns:app="http://www.w3.org/2007/app" 
    xmlns:snx="http://www.ibm.com/xmlns/prod/sn"> 
<title type="text">ST0809</title> 
<content type="html"><![CDATA[ Description ]]></content> 
<category term="event" scheme="http://www.ibm.com/xmlns/prod/sn/type"></category> 
<snx:recurrence scheme="http://www.ibm.com/xmlns/prod/sn" custom="yes"> 
     <snx:period scheme="http://www.ibm.com/xmlns/prod/sn"> 
     <snx:startDate scheme="http://www.ibm.com/xmlns/prod/sn">2014-06-23T08:00:00.000Z</snx:startDate> 
     <snx:endDate scheme="http://www.ibm.com/xmlns/prod/sn">2014-06-23T09:00:00.000Z</snx:endDate> 
     </snx:period> 
</snx:recurrence> 
</entry> 

我张贴到URL “/社区/日历/ ATOM /日历/事件calendarUuid =?” 已填充明显的uuid。

任何人有任何想法?

回答

0

IBM文档中存在错误,但缺少一些内容(文档未提及snx:period)。

以下是工作版本,注意到allday已被添加。

<entry 
xmlns="http://www.w3.org/2005/Atom" 
xmlns:app="http://www.w3.org/2007/app" 
xmlns:snx="http://www.ibm.com/xmlns/prod/sn"> 
<title type="text">ST0809</title> 
<content type="html"><![CDATA[ Description ]]></content> 
<snx:allday>0</snx:allday> 
<category term="event" scheme="http://www.ibm.com/xmlns/prod/sn/type"></category> 
<snx:recurrence scheme="http://www.ibm.com/xmlns/prod/sn" custom="yes"> 
<snx:period scheme="http://www.ibm.com/xmlns/prod/sn"> 
<snx:startDate scheme="http://www.ibm.com/xmlns/prod/sn">2014-06-23T08:00:00.000Z</snx:startDate> 
<snx:endDate scheme="http://www.ibm.com/xmlns/prod/sn">2014-06-23T09:00:00.000Z</snx:endDate> 
</snx:period> 
</snx:recurrence> 
</entry> 
相关问题