2014-10-06 37 views
1

我试图设置一个连接监听器。我目前正在使用在Azure上托管的C#WCF服务。我能够打我的服务方法,但从每次docusign的响应为空。在日志中,信封状态xml具有值,但它只是未发送或未正确反序列化。我不知道我在做什么错误,似乎没有任何地方的SOAP实现的任何可靠的例子。谁能帮忙?该WSDL在这里可以查看http://docusignconnectservice.azurewebsites.net/Service.svc?wsdlDocuSign Connect响应每次都为空

服务Implentation

public string DocuSignConnectUpdate(DocuSignAPI.DocuSignEnvelopeInformation  envelopeInformation) 
    { 

     string envelopeId = ""; 

      if (envelopeInformation == null) return "Envelope is null"; 
      else return envelopeInformation.EnvelopeStatus.EnvelopeID; 
    } 

服务合同

[ServiceContract(Namespace = "http://www.docusign.net/API/3.0")] 
public interface IService 
{ 

    [OperationContract] 
    [XmlSerializerFormatAttribute] 
    string DocuSignConnectUpdate(DocuSignAPI.DocuSignEnvelopeInformation envelopeInformation); 

    [OperationContract] 
    string HelloWorld(string inputString); 

的DocuSign日志条目

10/6/2014 1:30:12 AM Envelope Data:<?xml version="1.0" encoding="utf-8"?><DocuSignEnvelopeInformation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.docusign.net/API/3.0"><EnvelopeStatus><RecipientStatuses><RecipientStatus><Type>Signer</Type><Email>email</Email><UserName>Username</UserName><RoutingOrder>1</RoutingOrder><Sent>2014-10-05T17:49:36.58</Sent><DeclineReason xsi:nil="true" /><Status>Sent</Status><RecipientIPAddress /><CustomFields /><AccountStatus>Active</AccountStatus><RecipientId>2a10b0ab-63f1-4df9-9258-36b97b5db120</RecipientId></RecipientStatus></RecipientStatuses><TimeGenerated>2014-10-05T18:30:09.644588</TimeGenerated><EnvelopeID>6d7692e6-3f5c-4889-914f-942b2bd83447</EnvelopeID><Subject> Signature Request on Document</Subject><UserName>Username</UserName><Email>email</Email><Status>Sent</Status><Created>2014-10-05T17:49:35.503</Created> <Sent>2014-10-05T17:49:36.613</Sent><ACStatus>Original</ACStatus><ACStatusDate>2014-10-05T17:49:35.503</ACStatusDate><ACHolder></ACHolder><ACHolderEmail></ACHolderEmail><ACHolderLocation>DocuSign</ACHolderLocation><SigningLocation>Online</SigningLocation><SenderIPAddress>ip </SenderIPAddress><EnvelopePDFHash /><CustomFields /><AutoNavigation>true</AutoNavigation><EnvelopeIdStamping>true</EnvelopeIdStamping><AuthoritativeCopy>false</AuthoritativeCopy><DocumentStatuses><DocumentStatus><ID>1</ID><Name>F_1040.pdf</Name><TemplateName /><Sequence>1</Sequence></DocumentStatus></DocumentStatuses></EnvelopeStatus></DocuSignEnvelopeInformation> 10/6/2014 1:30:12 AM Response: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><DocuSignConnectUpdateResponse xmlns="http://www.docusign.net/API/3.0"><DocuSignConnectUpdateResult>Envelope is null</DocuSignConnectUpdateResult></DocuSignConnectUpdateResponse></s:Body> </s:Envelope>

+0

您的http侦听器从DocuSign接收的原始POST正文是什么样的?你应该能够通过像Fiddler这样的工具捕捉并检查它的内容,这应该有助于弄清楚为什么不正确反序列化... – Ergin 2014-10-07 20:18:36

+0

你有没有得到这个解决?我们遇到了同样的问题。 – TyCobb 2014-12-02 20:09:17

回答