Objective c 目标C中的SharePoint CopyIntoItems SOAP消息

Objective c 目标C中的SharePoint CopyIntoItems SOAP消息,objective-c,web-services,sharepoint,http,soap,Objective C,Web Services,Sharepoint,Http,Soap,我正试图通过我目前正在编写的Mac应用程序以编程方式将文件上载到SharePoint。我可以使用GetListItems Web服务检索文件列表,所有身份验证等都可以正常工作。我自己形成SOAP消息,如下所示: 起初我以为我只是错误地编写了Objective C端,但我一直在使用Firefox的HTTP请求扩展“Poster”,仍然无法让它工作 我在海报中构建的soap消息是: <?xml version="1.0" encoding="utf-8"?> <soap:Envel

我正试图通过我目前正在编写的Mac应用程序以编程方式将文件上载到SharePoint。我可以使用GetListItems Web服务检索文件列表,所有身份验证等都可以正常工作。我自己形成SOAP消息,如下所示:

起初我以为我只是错误地编写了Objective C端,但我一直在使用Firefox的HTTP请求扩展“Poster”,仍然无法让它工作

我在海报中构建的soap消息是:

<?xml version="1.0" encoding="utf-8"?>
<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>
    <CopyIntoItems xmlns="http://schemas.microsoft.com/sharepoint/soap/">
      <SourceUrl>http://null</SourceUrl>
      <DestinationUrls>
        <string>myurl.com/Shared Documents/Documents/TestingFile.txt</string>
      </DestinationUrls>
      <Stream>VGVzdGluZyB0ZXN0aW5n</Stream>
    </CopyIntoItems>
  </soap:Body>
</soap:Envelope>
然后结果告诉我和以前一样,除了这个位:

<CopyResult ErrorCode="Unknown" ErrorMessage="Object reference not set to an instance of an     
object."     
DestinationUrl="https://dbp.btfinancialgroup.com/Shared%20Documents/Papers/TestingFile.txt" 
/>
在所有这些场景中,请求末尾的目标中不存在该文件

我真的被卡住了,因为大多数在线建议都是为了解决C#问题,C#问题使用.net协议连接到SharePoint

有什么建议吗


感谢

帮助其他可能遇到此问题的人

事实证明,这根本不是我的代码的问题,我通过制作一个C#项目来尝试使用它提供给SharePoint的更好的连接,并与Microsoft支持人员进行了交谈,他们确认我的代码应该可以工作

最后,服务器上的映射不正确,这意味着web服务从未正确链接到URL。这导致“对象引用未设置为对象实例”错误


对于收到此错误消息的任何其他人来说,可能不仅仅是传递给web服务的值有问题,还需要检查服务器上设置的映射。微软的技术支持人员提到,ULS日志显然有助于缩小造成这种情况的原因。

你能分享如何将文件从iOS上传到SharePoint的obj-c源代码吗?非常感谢。
https://myurl.com/Shared Documents/Documents/TestingFile.txt
<CopyResult ErrorCode="Unknown" ErrorMessage="Object reference not set to an instance of an     
object."     
DestinationUrl="https://dbp.btfinancialgroup.com/Shared%20Documents/Papers/TestingFile.txt" 
/>
DestinationUrl="&quot;https://dbp.btfinancialgroup.com/Shared 
Documents/Papers/TestingFile.txt&quot;"