任何人都可以帮助我使用 REST api 调用从 DocuSign 获取权威副本。我无法找到任何资源来获取权威副本。尝试使用 DocuSign SOAP API(JAVA SDK 网络示例)。获取连接时出现以下错误。ul 30, 2013 2:30:46 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass 信息:创建服务{ http://www.docusign.net/API/Credential}CredentialSoapService 来自 com.sun.xml.bind.v2.model.impl.PropertyInfoImpl.calcXmlName(PropertyInfoImpl.java:287) 的 com.sun.xml.bind 的 net.docusign.credential.CredentialSoap java.lang.NullPointerException 类。 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(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) 在 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 的 java.security.AccessController.doPrivileged(Native Method) 的 com.sun.xml.bind.v2.runtime.JAXBContextImpl$3.run(JAXBContextImpl.java:350)。 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.createContext(ContextFactory.java:55) 在 sun.reflect。位于 sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 的 NativeMethodAccessorImpl.invoke0(Native Method) 在 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) 在 org.apache.cxf.common.jaxb.JAXBContextCache.getCachedContextAndSchemas(JAXBContextCache.java:172) 在 org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:330) 在 org.apache.cxf.service.factory 的 org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContextAndSchemas(JAXBDataBinding.java:464) .AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86) 在 org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:478) 在 org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java :690) 在 org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:252) 的 org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:540)。 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) 在 net.docusign.sample.CredentialFactory.getCredential(CredentialFactory.java:38) 在 net.docusign.sample.DocuSignExpore.getToken(DocuSignExpore.java:20) 在 net.docusign.sample.DocuSignExpore.main(DocuSignExpore.爪哇:25)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) 在 org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:93) 在 net.docusign.sample.CredentialFactory.getCredential(CredentialFactory.java:38) ) 在 net.docusign.sample.DocuSignExpore.getToken(DocuSignExpore.java:20) 在 net.docusign.sample.DocuSignExpore.main(DocuSignExpore.java:25)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) 在 org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:93) 在 net.docusign.sample.CredentialFactory.getCredential(CredentialFactory.java:38) ) 在 net.docusign.sample.DocuSignExpore.getToken(DocuSignExpore.java:20) 在 net.docusign.sample.DocuSignExpore.main(DocuSignExpore.java:25)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) 在 net.docusign.sample.DocuSignExpore.getToken(DocuSignExpore.java:20) 在 net.docusign.sample.DocuSignExpore.main(DocuSignExpore.java:25)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) 在 net.docusign.sample.DocuSignExpore.getToken(DocuSignExpore.java:20) 在 net.docusign.sample.DocuSignExpore.main(DocuSignExpore.java:25)主要(DocuSignExpore.java:25)主要(DocuSignExpore.java:25)
问问题
844 次
1 回答
0
SOAP API 指南有几页描述了如何获取权威副本。基本上,这不仅仅是一个 API 调用,而是您需要进行的几个 API 调用。我不确定是什么导致了您上面列出的错误,没有足够的信息进行调试,但以下内容应该可以帮助您完成这项工作。
基本思想是,您需要先提取信封,然后获得一个密钥,以便您解密文档。我相信当你获得钥匙的时候,就是从源位置删除信封的时候,这样你现在就拥有了唯一的权威副本。
以下页面详细解释了这些调用:
AuthoritativeCopyExportDocuments
此外,以下页面还有一些您应该了解的与权威副本相关的重要规则
于 2013-07-30T21:39:38.957 回答