我正在使用Adobe EchoSign Web服务在vb.net中创建SendDocument函数.我在VB.net中使用EchoSign API尝试了这个解决方案,但没有运气.
我收到了一个错误
"String"类型的值无法转换为"secure.echosign.com.ArrayOfString"
在我的代码中.recipients = recipients(0)
Public Sub SendDocument(ByVal apiKey, ByVal fileName, ByVal formFieldLayerTemplateKey, ByVal recipient)
Dim recipients() As String = recipient
Dim docRecipient As RecipientInfo = New RecipientInfo()
With docRecipient
.email = recipient
.fax = "800-123-4567"
.role = RecipientRole.SIGNER
End With
Dim docCreationInfo As DocumentCreationInfo = New DocumentCreationInfo()
With docCreationInfo
.recipients = docRecipient(0)
.name = Path.GetFileName(File.Name)
.message = TestMessage
.fileInfos = fileInfos
.signatureType = SignatureType.ESIGN
.signatureFlow = SignatureFlow.SENDER_SIGNATURE_NOT_REQUIRED
End With
Run Code Online (Sandbox Code Playgroud)
当我尝试.recipients = recipients …
我目前正在尝试构建一个后端系统,即没有用户界面应该使用 Echosign 将文档发送出去进行签名。
用于配置 Oath 令牌的页面需要重定向 URL,但显然我的应用程序没有 UI,因此也没有重定向 URL。
显然,我现在可以深入研究整个 OAuth 世界,但我希望快速使用他们的 API,而无需先了解 OAuth 的所有来龙去脉。所有示例似乎都基于 Web 界面场景,而我的情况并非如此。
任何指针将不胜感激。
我正在开发一个Adobe Echosign演示C#winforms应用程序.我的代码是他们的命令行代码的直接副本(有修改),但是,我的代码在传输数据后返回错误.
这是命令行代码EchoSign的作品
public static void sendDocument(string apiKey, string fileName, string formFieldLayerTemplateKey, string recipient)
{
FileStream file = getTestPdfFile(fileName);
secure.echosign.com.FileInfo[] fileInfos = new secure.echosign.com.FileInfo[1];
fileInfos[0] = new secure.echosign.com.FileInfo(fileName, null, file);
SenderInfo senderInfo = null;
string[] recipients = new string[1];
recipients[0] = recipient;
DocumentCreationInfo documentInfo = new DocumentCreationInfo(
recipients,
testPrefix + Path.GetFileName(file.Name),
testMessage,
fileInfos,
SignatureType.ESIGN,
SignatureFlow.SENDER_SIGNATURE_NOT_REQUIRED
);
if (formFieldLayerTemplateKey != null)
{
secure.echosign.com.FileInfo[] formFieldLayerTemplates = new secure.echosign.com.FileInfo[1];
formFieldLayerTemplates[0] = new secure.echosign.com.FileInfo(formFieldLayerTemplateKey);
documentInfo.formFieldLayerTemplates = formFieldLayerTemplates;
}
DocumentKey[] documentKeys; …Run Code Online (Sandbox Code Playgroud) 如何以编程方式从 WSDL 文件中获取复杂类型?
我必须从 Adobe 回声符号中获取复杂类型。 https://secure.echosign.com/services/EchoSignDocumentService19?wsdl
关于这个主题已经有一些问题,但没有一个有用的答案。所以,我再次提出这个问题。
这是我写的代码,但没有运气。
public class wsdlReader {
public static void main(String[] args) {
try {
WSDLFactory factory = WSDLFactory.newInstance();
WSDLReader reader = factory.newWSDLReader();
reader.setFeature("javax.wsdl.verbose", false);
reader.setFeature("javax.wsdl.importDocuments", true);
Definition def = reader.readWSDL(null, "https://secure.echosign.com/services/EchoSignDocumentService19?wsdl");
Map services = def.getServices();
Iterator servicesIterator = services.values().iterator();
def.getTypes();
while (servicesIterator.hasNext())
{
Service service = (Service) servicesIterator.next();
Map ports = service.getPorts();
Iterator portsIterator = ports.keySet().iterator();
while (portsIterator.hasNext())
{
String strPort = portsIterator.next().toString();
Port port = service.getPort(strPort);
Binding binding = port.getBinding();
PortType portType …Run Code Online (Sandbox Code Playgroud) 我希望将echosign或docusign与我们的zoho crm整合.这样就可以将合同中的信息转移到我们的crm中.我们目前使用Zoho CRM是否有人知道这是否可能?如果是这样我在哪里可以找到任何可以做到这一点的人,因为我对编程一无所知?
谢谢
好吧,我对使用 API 的理解有限
我试图掌握 Adobe Sign API 并遇到了死胡同,在那里的测试页面上我已经输入了这个并且它有效
但我不知道如何在 C# 中做到这一点
我已经尝试了以下方法,但知道它缺少 OAuth 的东西,我只是不确定接下来要尝试什么。顺便说一句 foo.GetAgreementCreationInfo() 只是获取屏幕截图中的字符串,我只是将其移出因为它又大又丑
var foo = new Models();
var client = new RestClient("https://api.na1.echosign.com/api/rest/v5");
// client.Authenticator = new HttpBasicAuthenticator(username, password);
var request = new RestRequest("agreements/{AgreementCreationInfo}", Method.POST);
request.AddParameter("name", "value"); // adds to POST or URL querystring based on Method
request.AddUrlSegment("AgreementCreationInfo", foo.GetAgreementCreationInfo()); // replaces matching token in request.Resource
IRestResponse response = client.Execute(request);
var content = response.Content; // raw content as string
Run Code Online (Sandbox Code Playgroud)