Search in sources :

Example 16 with RaServiceUnavailable

use of com.liumapp.digitalsign.test.ca.tianwei.error.RaServiceUnavailable in project spring-cloud-digital-sign by SpringForAll.

the class UserAPIServiceSoapBindingStub method synchroTemplate.

public AccountConfigResult synchroTemplate(String accountHash) throws java.rmi.RemoteException, RaServiceUnavailable {
    if (super.cachedEndpoint == null) {
        throw new org.apache.axis.NoEndPointException();
    }
    org.apache.axis.client.Call _call = createCall();
    _call.setOperation(_operations[11]);
    _call.setUseSOAPAction(true);
    _call.setSOAPActionURI("");
    _call.setEncodingStyle(null);
    _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
    _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
    _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
    _call.setOperationName(new QName("http://service.ra.tca.topca.cn/", "synchroTemplate"));
    setRequestHeaders(_call);
    setAttachments(_call);
    try {
        java.lang.Object _resp = _call.invoke(new java.lang.Object[] { accountHash });
        if (_resp instanceof java.rmi.RemoteException) {
            throw (java.rmi.RemoteException) _resp;
        } else {
            extractAttachments(_call);
            try {
                return (AccountConfigResult) _resp;
            } catch (java.lang.Exception _exception) {
                return (AccountConfigResult) org.apache.axis.utils.JavaUtils.convert(_resp, AccountConfigResult.class);
            }
        }
    } catch (org.apache.axis.AxisFault axisFaultException) {
        if (axisFaultException.detail != null) {
            if (axisFaultException.detail instanceof java.rmi.RemoteException) {
                throw (java.rmi.RemoteException) axisFaultException.detail;
            }
            if (axisFaultException.detail instanceof RaServiceUnavailable) {
                throw (RaServiceUnavailable) axisFaultException.detail;
            }
        }
        throw axisFaultException;
    }
}
Also used : QName(javax.xml.namespace.QName) RaServiceUnavailable(com.liumapp.digitalsign.test.ca.tianwei.error.RaServiceUnavailable)

Aggregations

RaServiceUnavailable (com.liumapp.digitalsign.test.ca.tianwei.error.RaServiceUnavailable)16 QName (javax.xml.namespace.QName)16 CertInfo (com.liumapp.digitalsign.test.ca.tianwei.cert.CertInfo)3 QueryCertResult (com.liumapp.digitalsign.test.ca.tianwei.query.QueryCertResult)3