我有一个 visualforce 页面 renderAs pdf,它使用 DocuSign SOAP API 发送。我需要通过 DocuSign SOAP API 在 pdf 上添加一个 testArea 字段和选择列表。
我在此链接上发现选项卡参数具有文本选项卡字段和列表选项卡字段。
我如何在代码中编写这两个字段。我的假设应该是这样的。
DocuSignAPI.Tab tab1 = new DocuSignAPI.Tab();
tab1.Type_x = 'Text';
tab1.RecipientID = 1;
tab1.DocumentID = 1;
tab1.AnchorTabItem = new DocuSignAPI.AnchorTab();
tab1.AnchorTabItem.AnchorTabString = 'bio:';
envelope.Tabs = new DocuSignAPI.ArrayOfTab();
envelope.Tabs.Tab = new DocuSignAPI.Tab[1];
envelope.Tabs.Tab[0] = tab1;
当我发送它时,我收到此错误
异常 - System.CalloutException:Web 服务调用失败:WebService 返回 SOAP 错误:服务器无法读取请求。---> XML 文档中有错误。---> 实例验证错误:“文本”不是 TabTypeCode 的有效值。故障代码=soap:客户端故障=