こんにちは。初めて質問させて頂きます。
以下の環境で作業しています。
Windows Server 2008
SharePoint 2007
InfoPath2007(2003互換、VB.NET)
SharePointサイト上にフォームライブラリを2つ作成し(Doc1,Doc2)
Doc1のInfoPathフォームからDoc2のアイテムの列を変更する処理を行うのですが、
様々な制約があり、InfoPathのVSTAにSharePoint Webサービス(Lists.asmx)の参照を追加し、
UpdateListItemsメソッドを使用して処理を実装しています。
再現性は低いのですが、処理中に(Try-CatchのException.Messageで)
「Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.」
というエラーが発生する時があります。
ソースコードは以下の通りです。(ザックリですが)
Try
Using listsService As New SPLists.Lists() ← SPLists:参照追加したWebサービス
listsService.Credentials = System.Net.CredentialCache.DefaultCredentials
listsService.Url = _strSiteUrl & "_vti_bin/Lists.asmx"
' チェックアウトする
<省略:更新内容作成(elBatch)>
' アイテムを更新する
Dim ndReturn As Xml.XmlNode = listsService.UpdateListItems(_strListName, elBatch)
' チェックインを行う
End Using
Catch ex As Exception
Me.thisXDocument.UI.Alert(ex.Message)
End Try
どなたか原因・解決策をご存知の方がいらしましたら、
ご教授の方、宜しくお願い致します。