我正在使用Docusign Soap API传递信封。运行良好。但是SMS身份验证不起作用。
电话身份验证正在正常工作。我正在使用演示Docusign帐户,并且在读取的一个线程中,需要启用SMS。我检查了Docusign设置,但在“管理员” >>“设置” >>“身份验证”
下找不到任何选项pdfRecipient.RequireIDLookup = true;
//Phone Numbers
DocuSignAPI.ArrayOfString phoneNumbers = new DocuSignAPI.ArrayOfString();
phoneNumbers.SenderProvidedNumber = new List<String>{'4081231234'};
//Phone Authentication - WORKING
/* pdfRecipient.IDCheckConfigurationName = 'Phone Auth $';
DocuSignAPI.RecipientPhoneAuthentication phoneAuthentication = new DocuSignAPI.RecipientPhoneAuthentication();
phoneAuthentication.RecipMayProvideNumber = true;
phoneAuthentication.SenderProvidedNumbers = phoneNumbers;
pdfRecipient.PhoneAuthentication = phoneAuthentication; */
//SMS Authentication - NOT WORKING
pdfRecipient.IDCheckConfigurationName = 'SMS Auth $';
DocuSignAPI.RecipientSMSAuthentication smsAuthentication = new DocuSignAPI.RecipientSMSAuthentication();
smsAuthentication.SenderProvidedNumbers = phoneNumbers;
pdfRecipient.SMSAuthentication = smsAuthentication;
它应该传递信封,但会收到此错误消息-“” Web服务标注失败:WebService返回SOAP错误:指定了收件人SMS身份验证,但信息丢失。 faultcode = soap:Client faultactor = https://demo.docusign.net/api/3.0/dsapi.asmx“”
我还要传递accountId,receiverName,receiverId,receiverEmail。
答案 0 :(得分:0)
我认为您的代码仅将电话号码添加到第一个列表,而不是这样的smsAuth列表:
RecipientSMSAuthentication smsAuth = new RecipientSMSAuthentication();
smsAuth.SenderProvidedNumbers = new List<String>();
smsAuth.SenderProvidedNumbers.Add("4155551212");