Search in sources :

Example 16 with UserAPIServicePortTypeProxy

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

the class RaService method doScript.

/**
 * 调用自定义脚本(CA扩展机制)
 *
 * @throws JSONException
 */
public JSONObject doScript(String scriptName, String jsonMap) throws JSONException {
    JSONObject ret = new JSONObject();
    try {
        UserAPIServicePortTypeProxy proxy = axisUtil.getProxyNow();
        String result = proxy.doScript(scriptName, jsonMap);
        ret.put("code", "0");
        ret.put("msg", "");
        ret.put("result", result);
    } catch (Exception e) {
        ret.put("code", "20010101");
        ret.put("msg", errorCode.getErrorCode().get(20010101) + ":" + e.getMessage());
        return ret;
    }
    return ret;
}
Also used : JSONObject(org.json.JSONObject) UserAPIServicePortTypeProxy(com.liumapp.digitalsign.test.ca.tianwei.proxy.UserAPIServicePortTypeProxy) JSONException(org.json.JSONException)

Aggregations

UserAPIServicePortTypeProxy (com.liumapp.digitalsign.test.ca.tianwei.proxy.UserAPIServicePortTypeProxy)16 JSONException (org.json.JSONException)15 JSONObject (org.json.JSONObject)14 CertInfo (com.liumapp.digitalsign.test.ca.tianwei.cert.CertInfo)3 QueryCertResult (com.liumapp.digitalsign.test.ca.tianwei.query.QueryCertResult)3 AccountConfigResult (com.liumapp.digitalsign.test.ca.tianwei.user.AccountConfigResult)1