如何使用java将信封状态更改为“void”?

时间:2014-12-16 00:26:29

标签: java docusignapi

DNS和SVC都具有某种调度系统,并且当调度系统达到某个幻数时,docusign接口必须使包络的状态无效。我只需要java方法将状态更改为“void”。我知道文件不能拒绝和完成。但是虚空是我正在发展的必要条件。

1 个答案:

答案 0 :(得分:0)

我讨厌陈述显而易见的,但只是寻找" void"在SOAPREST api文档中,您都会看到它。

<强> SOAP:

SOAPAction: "http://www.docusign.net/API/3.0/VoidEnvelope"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
 <soap:Body>
 <VoidEnvelope xmlns="http://www.docusign.net/API/3.0">
 <EnvelopeID>string</EnvelopeID>
 <Reason>string</Reason>
 </VoidEnvelope>
 </soap:Body>
</soap:Envelope>

<强> REST:

PUT https://{server}/restapi/{apiVersion}/accounts/{accountId}/envelopes/
{envelopeId}
X-DocuSign-Authentication:
<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
{
"status":"voided",
"voidedReason":"voided for incorrect recipient"
}