本文介绍了权威复制DocuSign REST API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮助我使用REST API调用从DocuSign获取权威副本。我找不到任何资源来获取权威副本。使用DocuSign SOAP API(JAVA SDK网络示例)进行了尝试。获得连接时出现以下错误。
ul 30,2013 2:30:46 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
信息:创建服务{}来自类net.docusign.credential.CredentialSoap
java.lang.NullPointerException $ b $的凭据SoapService b在com.sun.xml.bind.v2.model.impl.PropertyInfoImpl.calcXmlName(PropertyInfoImpl.java:287)
在com.sun.xml.bind.v2.model.impl.PropertyInfoImpl.calcXmlName(PropertyInfoImpl .java:260)com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl.getTypes(ElementPropertyInfoImpl.java:100)
com.sun.xml.bind.v2.model .impl.RuntimeElementPropertyInfoImpl.getTypes(RuntimeElementPropertyInfoImpl.java:50)com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl $ 1.size(ElementPropertyInfoImpl.java:42)
在Java。 util.AbstractList $ Itr.hasNext(未知来源)
在com.sun.xml.bind.v2.model.impl.Mo com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:49)的delBuilder.getClassInfo(ModelBuilder.java:139)
com.sun.xml的
。 bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:41)
在com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189)
在com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:204)
在com.sun.xml.bind.v2.runtime.JAXBContextImpl $ 3.run(JAXBContextImpl。 java:352)com.sun.xml.bind.v2.runtime.JAXBContextImpl $ 3.run(JAXBContextImpl.java:350)
java.security.AccessController.doPrivileged(本机方法)
$在com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:349)
在com.sun.xml.bind.v2.runtime.JAXBContextImpl。(JAXBContextImpl.java:215 )com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76)的
com.sun.xml.bind.v2.ContextFactory.cr的
eateContext(ContextFactory.java:55)
在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)
在sun.reflect.NativeMethodAccessorImpl.invoke(未知源)
在sun.reflect.DelegatingMethodAccessorImpl .invoke(未知来源)
在java.lang.reflect.Method.invoke(未知来源)
在javax.xml.bind.ContextFinder.newInstance(未知来源)在Javax.xml的
.bind.ContextFinder.find(未知来源)javax.xml.bind.JAXBContext.newInstance(未知来源)
在org.apache.cxf.common.jaxb.JAXBContextCache $ 2.run(JAXBContextCache。 java:267)org.apache.cxf.common.jaxb.JAXBContextCache $ 2.run(JAXBContextCache.java:265)
java.security.AccessController.doPrivileged(本机方法)
在org.apache.cxf.common.jaxb.JAXBContextCache.createContext(JAXBContextCache.java:265)
在org.apache.cxf.common.jaxb.JAXBContextCache.getCachedContextAndSchemas(JAXBContextCache.java:172)
在org.apache.cxf.jax b.JAXBDataBinding.createJAXBContextAndSchemas(JAXBDataBinding.java:464)
在org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:330)
在org.apache.cxf.service.factory。 org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:478)
(位于org.apache.cxf.jaxws.support)处的AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86)
JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:690)
在org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:540)在org.apache.cxf.service.factory的
。 ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:252)
在org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205)
在org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory。 createEndpoint(AbstractWSDLBasedE ndpointFactory.java:102)org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:90)
在org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java: 156)org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:156)
org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:93)
$ b在net.docusign.sample.CredentialFactory.getCredential(CredentialFactory.java:38)
在net.docusign.sample.DocuSignExpore.getToken(DocuSignExpore.java:20)
在net.docusign.sample .DocuSignExpore.main(DocuSignExpore.java:25)

Can anyone help me on getting Authoritative copy from DocuSign using REST api call. I am not able to find any resources to get the authoritative copy. Tried using DocuSign SOAP API(JAVA SDK web example). got below error while getting the connection.ul 30, 2013 2:30:46 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClassINFO: Creating Service {http://www.docusign.net/API/Credential}CredentialSoapService from class net.docusign.credential.CredentialSoapjava.lang.NullPointerException at com.sun.xml.bind.v2.model.impl.PropertyInfoImpl.calcXmlName(PropertyInfoImpl.java:287) at com.sun.xml.bind.v2.model.impl.PropertyInfoImpl.calcXmlName(PropertyInfoImpl.java:260) at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl.getTypes(ElementPropertyInfoImpl.java:100) at com.sun.xml.bind.v2.model.impl.RuntimeElementPropertyInfoImpl.getTypes(RuntimeElementPropertyInfoImpl.java:50) at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.size(ElementPropertyInfoImpl.java:42) at java.util.AbstractList$Itr.hasNext(Unknown Source) at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:139) at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:49) at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:41) at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189) at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:204) at com.sun.xml.bind.v2.runtime.JAXBContextImpl$3.run(JAXBContextImpl.java:352) at com.sun.xml.bind.v2.runtime.JAXBContextImpl$3.run(JAXBContextImpl.java:350) at java.security.AccessController.doPrivileged(Native Method) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:349) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:215) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:55) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at javax.xml.bind.ContextFinder.newInstance(Unknown Source) at javax.xml.bind.ContextFinder.find(Unknown Source) at javax.xml.bind.JAXBContext.newInstance(Unknown Source) at org.apache.cxf.common.jaxb.JAXBContextCache$2.run(JAXBContextCache.java:267) at org.apache.cxf.common.jaxb.JAXBContextCache$2.run(JAXBContextCache.java:265) at java.security.AccessController.doPrivileged(Native Method) at org.apache.cxf.common.jaxb.JAXBContextCache.createContext(JAXBContextCache.java:265) at org.apache.cxf.common.jaxb.JAXBContextCache.getCachedContextAndSchemas(JAXBContextCache.java:172) at org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContextAndSchemas(JAXBDataBinding.java:464) at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:330) at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86) at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:478) at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:690) at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:540) at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:252) at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205) at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102) at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:90) at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:156) at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:156) at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:93) at net.docusign.sample.CredentialFactory.getCredential(CredentialFactory.java:38) at net.docusign.sample.DocuSignExpore.getToken(DocuSignExpore.java:20) at net.docusign.sample.DocuSignExpore.main(DocuSignExpore.java:25)

推荐答案

中有几页描述了如何获取权威副本。基本上,这不仅仅是一个API调用,而是您需要进行的多个API调用。我不确定是什么原因导致了您在上面列出的错误,没有足够的信息进行调试,但是以下内容应该可以帮助您正常工作。

The SOAP API guide has a few pages that describe how to get the Authoritative Copy. Basically, it's not just one API call but several that you need to make. I'm not sure what's causing the error you've listed above, not enough info to debug, but the following should help you get this working.

基本思想是您需要先提取信封,然后获取一个密钥,该密钥可以解密文档。我相信当您获得密钥时是从源位置删除信封的时间,因此您现在拥有的是唯一的一个权威副本。

The basic idea is that you need to extract the envelope first, then you obtain a key that allows you to decrypt the docs. I believe when you obtain the key is when the envelope is deleted from the source location, so that you now have the one and only authoritative copy.

以下各页说明了详细呼叫:

The following pages explain the calls in detail:

此外,下一页有一些重要规则与您应该了解的权威副本相关

Also, the following page has some important rules related to Authoritative copy that you should know about

这篇关于权威复制DocuSign REST API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 05:49