Docusign 凭证中的代理 API
Proxy in Docusign Credential API
按照位于 Docusign SDK 的示例
https://github.com/docusign/DocuSign-SOAP-SDK
正在尝试实现凭据API,代码如下所列
public LoginResult getCredentialAPI() {
CredentialSoap credApi = new CredentialFactory().getCredential(credentialURL);
LoginResult result = credApi.login("[" + integratorKey + "]" + username, password, true);
return result;
}
我收到连接超时错误,原因是我必须使用代理连接设置来建立连接,我在哪里添加服务器 URL 和代理连接端口。 class 凭据工厂列在下面
public class CredentialFactory {
/**
* Builds the API interface in order to use the Docusign Credential API.
*
* @param webserviceEndpoint the endpoint for the credential webservice
* @return the credential api stub
*/
public CredentialSoap getCredential(String webserviceEndpoint) {
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
setupService(factory, webserviceEndpoint);
CredentialSoap credentialProxy = (CredentialSoap) factory.create();
return credentialProxy;
}
/**
* Set service class and webservice url.
*
* @param factory
* @param webserviceEndpoint the endpoint for the credential webservice
*/
protected void setupService(JaxWsProxyFactoryBean factory, String webserviceEndpoint) {
factory.setServiceClass(CredentialSoap.class);
factory.setAddress(webserviceEndpoint);
}
}
代理设置依赖于堆栈。所以设置通常低于 SOAP 调用的级别。您使用的是什么堆栈?
从您的变量名来看,您使用的是 JAX-WS。在这种情况下,请参阅
按照位于 Docusign SDK 的示例 https://github.com/docusign/DocuSign-SOAP-SDK
正在尝试实现凭据API,代码如下所列
public LoginResult getCredentialAPI() {
CredentialSoap credApi = new CredentialFactory().getCredential(credentialURL);
LoginResult result = credApi.login("[" + integratorKey + "]" + username, password, true);
return result;
}
我收到连接超时错误,原因是我必须使用代理连接设置来建立连接,我在哪里添加服务器 URL 和代理连接端口。 class 凭据工厂列在下面
public class CredentialFactory {
/**
* Builds the API interface in order to use the Docusign Credential API.
*
* @param webserviceEndpoint the endpoint for the credential webservice
* @return the credential api stub
*/
public CredentialSoap getCredential(String webserviceEndpoint) {
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
setupService(factory, webserviceEndpoint);
CredentialSoap credentialProxy = (CredentialSoap) factory.create();
return credentialProxy;
}
/**
* Set service class and webservice url.
*
* @param factory
* @param webserviceEndpoint the endpoint for the credential webservice
*/
protected void setupService(JaxWsProxyFactoryBean factory, String webserviceEndpoint) {
factory.setServiceClass(CredentialSoap.class);
factory.setAddress(webserviceEndpoint);
}
}
代理设置依赖于堆栈。所以设置通常低于 SOAP 调用的级别。您使用的是什么堆栈?
从您的变量名来看,您使用的是 JAX-WS。在这种情况下,请参阅