我有一个visualforce页面呈现,它使用DocuSign SOAP来发送。我需要通过testArea SOAP在pdf上添加一个DocuSign字段和选择列表。
在这个链接中,我发现选项卡参数有文本标签字段和列表标签字段。
如何在代码中编写这两个字段。我的假设应该是这样。
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文档中有一个错误。->实例验证错误:“Text”不是TabTypeCode的有效值。faultcode=soap:Client faultactor=
发布于 2018-05-18 18:18:45
对于TextTab,type必须是Custom,CustomTabType应该是Text。要添加TextTab和下拉列表,XML如下所示:
<ns:Tab>
<ns:DocumentID>32093411</ns:DocumentID>
<ns:RecipientID>45399085</ns:RecipientID>
<ns:PageNumber>1</ns:PageNumber>
<ns:XPosition>124</ns:XPosition>
<ns:YPosition>261</ns:YPosition>
<ns:Type>Custom</ns:Type>
<ns:TabLabel>Text b5a8927a-4f93-4288-b280-d15023b1b834</ns:TabLabel>
<ns:CustomTabType>Text</ns:CustomTabType>
</ns:Tab>
<ns:Tab>
<ns:DocumentID>32093411</ns:DocumentID>
<ns:RecipientID>45399085</ns:RecipientID>
<ns:PageNumber>1</ns:PageNumber>
<ns:XPosition>349</ns:XPosition>
<ns:YPosition>261</ns:YPosition>
<ns:Type>Custom</ns:Type>
<ns:Name>Red;Blue</ns:Name>
<ns:TabLabel>Dropdown e7f5ad78-9e10-4339-b342-023a729549b7</ns:TabLabel>
<ns:CustomTabType>List</ns:CustomTabType>
<ns:CustomTabListItems>Red;Blue</ns:CustomTabListItems>
<ns:CustomTabListValues>Red;Blue</ns:CustomTabListValues>
</ns:Tab>发布于 2018-05-18 20:26:03
为了扩展Amit的回答:如果使用DocuSign SOAP,我相信您需要类似于文本选项卡的内容:
tab1.Type = "Custom"
tab1.CustomTabType = "Text"挑选名单将是:
tab2.Type = "Custom"
tab2.CustomTabType = "List"
tab2.Name = "Red;Green;Blue"作为列表,使用分号分隔的名称值填充选项。
https://stackoverflow.com/questions/50416624
复制相似问题