2014-09-02 25 views
0

我試圖複製在這裏找到示例代碼: https://www.docusign.com/p/APIGuide/APIGuide.htm#Sending%20Group/Create%20and%20Send.htm的DocuSign CreateAndSendEnvelope「GUID不能爲空」

我複製了C#代碼來構建信封,只是調整我的環境..樣本文件,電子郵件地址等等。當我執行此我得到以下異常:

處理錯誤發生:System.ServiceModel.FaultException:至少包含一個無效參數的 請求。 Guid不能爲null。

服務器堆棧跟蹤:在 System.ServiceModel.Channels.ServiceChannel.HandleReply在 System.ServiceModel.Channels.ServiceChannel.Call(字符串動作(ProxyOperationRuntime 操作,ProxyRpc & RPC), 布爾單向,ProxyOperationRuntime操作,在 System.ServiceModel.Channels.ServiceChannel.Call(字符串動作對象[]插件, 對象[]奏,時間跨度超時), 布爾單向,ProxyOperationRuntime操作中,在系統 對象[]插件, 對象[]奏) .ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage 方法dCall,ProxyOperationRuntime操作)在 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(即時聊天 消息)[0]時

異常重新拋出:在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(即時聊天 reqMsg,即時聊天retMsg)在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData & MSGDATA,的Int32類型)在 SampleApp.DSAPIService.DSAPIServiceSoap.CreateAndSendEnvelope(包絡 信封)

有沒有人看過這個問題?我查看了API參考上的Envelope,Recipient,Document和Tab類型,並沒有看到任何是guid的字段。

回答

0

我發現了這個問題。它看起來像我錯過了設置Envelope.AccountId字段。