从flex在sharepoint列表中插入新项

时间:2011-07-19 11:26:29

标签: flex sharepoint caml

我尝试使用sharepoint-as3-connector(http://code.google.com/p/sharepoint-as3-connector)从flex在sharepoint列表中插入新项目。但我得到了以下错误。

Response XML:<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Body>
<UpdateListItemsResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/">
  <UpdateListItemsResult>
    <Results>
      <Result ID="1,UpdateList.NEW">
        <ErrorCode>0x8102000a</ErrorCode>
        <ErrorText>Invalid URL Parameter

提供的URL包含无效的命令或值。请再次检查网址。                                   

下面的

是用肥皂网址制作的标题。

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"     xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
<UpdateListItems xmlns="http://schemas.microsoft.com/sharepoint/soap/">
  <listName>
    TestList
  </listName>
  <updates>
    <Batch OnError="Continue">
      <Method ID="1" Cmd="UpdateList.NEW">
        <Field Name="ows_LinkTitle">
          222222
        </Field>
      </Method>
    </Batch>
  </updates>
</UpdateListItems>

请帮忙!

1 个答案:

答案 0 :(得分:0)

错误消息点亮:您在Cmd元素的Method属性中指定了无效命令。

根据MSDN article for the Method elementCmd的有效值为:

  • 删除
  • 更新

我没有使用“sharepoint-as3-connector”的经验,我想它可以让你的生活更轻松。但是,可能值得查看Lists Web服务(特别是UpdateListItems method)的MSDN文档,以便了解SharePoint的期望。 SharePoint是一朵精致的花,不能严厉处理;你必须确切地知道它想要让它快乐的东西。

MSDN上的一个很好的演练:How to: Update List Items

相关问题