2013-07-30 87 views
0

任何人都可以幫助我從DocuSign使用REST API調用獲取權威副本。我無法找到任何資源來獲取權威副本。試用DocuSign SOAP API(JAVA SDK網頁示例)。獲得連接時出現錯誤。 UL 30,2013下午2時30分46秒org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass 信息:創建服務{} http://www.docusign.net/API/Credential從類net.docusign.credential.CredentialSoap 顯示java.lang.NullPointerException 在CredentialSoapService 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(ElementPropertyI nfoImpl.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) 在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.d oPrivileged(原生方法) 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.Context Finder.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.createJAXBContextAndSchemas(JAXBDataBinding.java:464) 在org.apache .cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:330) at org.apache.cxf.service.factory.Abs tractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86) 在org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:478) 在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) 在org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205) 在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) 在org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:93) 在net.docusign.sample.CredentialFactory.getCredential(CredentialFactory.java:38)在net.docusign.sampl上的 e.DocuSignExpore.getToken(DocuSignExpore.java:20) 在net.docusign.sample.DocuSignExpore.main(DocuSignExpore.java:25)權威複製DocuSign REST API

回答

0

SOAP API guide有描述如何得到權威複本幾頁。基本上,這不僅僅是一個API調用,而是你需要做的幾個API調用。我不確定是什麼原因導致了上面列出的錯誤,沒有足夠的信息來進行調試,但是下面的內容可以幫助您實現這一目標。

其基本思想是您需要首先提取信封,然後獲取允許您解密文檔的密鑰。我相信當你獲得密鑰時,信封從源位置刪除,以便你現在擁有唯一的權威副本。

以下頁面詳細講解了電話:

ExportAuthoritativeCopy

AuthoritativeCopyExportDocuments

AcknowledgeAuthoritativeCopyExport

AuthoritativeCopyExportStatus

此外,下面的頁面有相關授權拷貝一些重要的規則你應該知道流量約

Rules for Authoritative Copy

+0

我想知道,是的DocuSign提供任何REST API爲授權副本檢索。 – user2635390

+0

對不起,但您似乎可以通過將給定信封上的* authoritativeCopy *屬性設置爲true來啓用通過REST API進行權威性複製。只能通過SOAP檢索副本。不知道這是否會改變。 – Ergin