Asp.net mvc 5 与MVC 5 Web应用程序的Docusign集成

Asp.net mvc 5 与MVC 5 Web应用程序的Docusign集成,asp.net-mvc-5,docusignapi,Asp.net Mvc 5,Docusignapi,我们正在尝试将docusign(嵌入式签名/嵌入式docusign控制台)与现有的mvc5web应用程序集成。我在寻找一个起点,突然发现了你的问题。我已经看过API演练(7,8,9),但我想知道如何开始。例如,我们需要指导用户填写一份申请表,以便他们在网站注册后填写并签名。签名后,我想将他们重定向回网站 如有任何提示或示例,将不胜感激 谢谢你,桑妮 下面是我的代码-它一直工作到最后一天(但从昨天起我得到了这个错误- “406-客户端浏览器不接受请求页面的MIME类型。 浏览器无法打开您正在查找的

我们正在尝试将docusign(嵌入式签名/嵌入式docusign控制台)与现有的mvc5web应用程序集成。我在寻找一个起点,突然发现了你的问题。我已经看过API演练(7,8,9),但我想知道如何开始。例如,我们需要指导用户填写一份申请表,以便他们在网站注册后填写并签名。签名后,我想将他们重定向回网站

如有任何提示或示例,将不胜感激

谢谢你,桑妮

下面是我的代码-它一直工作到最后一天(但从昨天起我得到了这个错误- “406-客户端浏览器不接受请求页面的MIME类型。 浏览器无法打开您正在查找的页面,因为它已被删除 浏览器不接受的文件扩展名。“

嵌入式签名 嵌入式签名正是通过
returnUrl
参数实现的。这还允许签名者在不注册DocuSign帐户的情况下进行签名,从而进一步简化流程

查看DocuSign's

请提供一些您尝试的代码。如果您到现在还没有尝试,请查看google并尝试一些东西,然后将Q放在这里。感谢@Andrewilson为我指明了正确的方向。我尝试了一个c#中的小型控制台应用程序(使用.Net Api记录)直到上周五,它似乎一直工作正常。我收到以下错误-“406-客户端浏览器不接受请求页面的MIME类型。您正在查找的页面无法被您的浏览器打开,因为它具有您的浏览器不接受的文件扩展名。”bool result=account.Login();此调用返回false,当我检查rest错误代码时,我收到了上述消息。我已编辑了我的原始帖子以添加代码段!非常感谢您的帮助!再次感谢!非常感谢!非常感谢!但我只要求一个澄清-正如我在问题中提到的,仅使用http all即可直到上周五…这周它才突然开始发送消息并停止工作..对这种不可预测的行为有什么解释吗?再次感谢!我不知道关于http为什么不再工作的任何解释,我知道文档总是说使用https。所以可能它以前是无意中工作的。我我已经编辑了我的问题,以包括我遇到的新问题。我已经设置了嵌入式签名-它从我的网站启动-文档正在通过,但标签没有显示,文档是自由形式签名。如果您对此有任何意见,请告诉我。谢谢!
    protected const string IntegratorKey = "XXX-XXX";
    protected const string Environment = "http://demo.docusign.net";
    static void Main(string[] args)
    {
        // Example #1...
        Console.WriteLine("Testing Walkthrough #7...");

        // configure application's integrator key, webservice url, and rest api version
        RestSettings.Instance.IntegratorKey = IntegratorKey;
        RestSettings.Instance.DocuSignAddress = Environment;
        RestSettings.Instance.WebServiceUrl = Environment + "/restapi/v2";

        docusign test = new docusign();
        test.EmbeddedSigning();
        Console.ReadLine(); // pause to show console output
    }

    private void EmbeddedSigning()
    {
        //*****************************************************************
        // ENTER VALUES FOR FOLLOWING VARIABLES!
        //*****************************************************************
        string AccountEmail = "s@something.com";
        string AccountPassword = "*****";
        string EnvelopeId = "xxxxxxx";              
        string RecipientEmail = "s@someone.com";
        string RecipientName = "someone";
        //*****************************************************************

        // user credentials 
        Account account = new Account();
        account.Email = AccountEmail;
        account.Password = AccountPassword;

        // make the login call (retrieves your baseUrl and accountId)
        bool result = account.Login();
        if (!result)
        {
            Console.WriteLine("Login API call failed for user {0}.\nError Code:  {1}\nMessage:  {2}", account.Email, account.RestError.errorCode, account.RestError.message);
            return;
        }

        // create envelope object and assign login info
        Envelope envelope = new Envelope();           
        envelope.Login = account;           
        // assign the envelope id that was passed in
        envelope.EnvelopeId = EnvelopeId;
        //add one signer (single recipient embedded signing currently supported in DocuSign .NET Client)
        envelope.Recipients = new Recipients()
        {
            signers = new Signer[]
            {
                new Signer()
                {
                    email = RecipientEmail,
                    name = RecipientName,
                    recipientId = "1",
                    clientUserId = "1"
                }
            }
        };            

        try
        {
            result = envelope.GetRecipientView("http://example.com/");
        }
        catch (Exception ex)
        {
            Console.WriteLine(ex.Message);
        }           
        Console.WriteLine(envelope.SenderViewUrl);

        Console.ReadLine();

        if (!result)
        {
            if (envelope.RestError != null)
            {
                Console.WriteLine("Error code:  {0}\nMessage:  {1}", envelope.RestError.errorCode, envelope.RestError.message);
                Console.ReadLine();
                return;
            }
            else
            {
                Console.WriteLine("Error encountered retrieving signing token, please review your envelope and recipient data.");
                return;
            }
        }
        else
        {
            // open the recipient view (SenderViewUrl field is re-used for the recipient URL)
            Process.Start(envelope.SenderViewUrl);
        }
    }