|
@ -25,8 +25,6 @@ public class PrescriptionCAService {
|
|
|
private String MODIFY_PASSWD = "XMCAF_SOFT_ModifyRealNameSoftCertCalledPasswd"; //修改实名软证书调用保护口令
|
|
|
private String VERIFY_SIGN = "XMCA3_JMSVR_verifySignOnMultiServer"; //验证签名(带多服务器负载均衡)
|
|
|
|
|
|
private String caUrl = SystemConfig.getInstance().getCAUrl();
|
|
|
private String caNamespace = SystemConfig.getInstance().getCANamespace();
|
|
|
private String unifiedCallInterface = "XMCA6_UnifiedCallInterface";
|
|
|
@Autowired
|
|
|
private LogService logService;
|
|
@ -58,8 +56,12 @@ public class PrescriptionCAService {
|
|
|
/**
|
|
|
* CA认证服务二次封装
|
|
|
*/
|
|
|
private String postCAServer(String urlString,String namespace,String api, Map<String,String> params) throws Exception
|
|
|
private String postCAServer(String api, Map<String,String> params) throws Exception
|
|
|
{
|
|
|
|
|
|
String urlString = SystemConfig.sysPropertiesSets.get("ca_url");
|
|
|
String namespace = SystemConfig.sysPropertiesSets.get("ca_namespace");
|
|
|
|
|
|
String msgBody = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" +
|
|
|
"<root>\n";
|
|
|
if(params!=null && params.size()>0)
|
|
@ -96,7 +98,7 @@ public class PrescriptionCAService {
|
|
|
params.put("strUserIdcardNum",strUserIdcardNum);
|
|
|
|
|
|
body = objectMapper.writeValueAsString(params);
|
|
|
re = postCAServer(caUrl, caNamespace, action, params);
|
|
|
re = postCAServer(action, params);
|
|
|
|
|
|
if(StringUtil.isEmpty(re))
|
|
|
{
|
|
@ -145,7 +147,7 @@ public class PrescriptionCAService {
|
|
|
|
|
|
|
|
|
body = objectMapper.writeValueAsString(params);
|
|
|
re = postCAServer(caUrl,caNamespace,action, params);
|
|
|
re = postCAServer(action, params);
|
|
|
|
|
|
if(StringUtil.isEmpty(re))
|
|
|
{
|
|
@ -193,7 +195,8 @@ public class PrescriptionCAService {
|
|
|
params.put("strUserIdcardNum",strUserIdcardNum);
|
|
|
|
|
|
body = objectMapper.writeValueAsString(params);
|
|
|
re = postCAServer(caUrl, caNamespace, action, params);
|
|
|
|
|
|
re = postCAServer(action, params);
|
|
|
|
|
|
if(StringUtil.isEmpty(re))
|
|
|
{
|
|
@ -241,7 +244,7 @@ public class PrescriptionCAService {
|
|
|
params.put("strNewCalledPasswd",strNewCalledPasswd);
|
|
|
|
|
|
body = objectMapper.writeValueAsString(params);
|
|
|
re = postCAServer(caUrl, caNamespace, action, params);
|
|
|
re = postCAServer(action, params);
|
|
|
|
|
|
if(StringUtil.isEmpty(re))
|
|
|
{
|
|
@ -294,7 +297,7 @@ public class PrescriptionCAService {
|
|
|
params.put("strOriginalData",strOriginalData);
|
|
|
|
|
|
body = objectMapper.writeValueAsString(params);
|
|
|
re = postCAServer(caUrl,caNamespace,action, params);
|
|
|
re = postCAServer(action, params);
|
|
|
|
|
|
if(StringUtil.isEmpty(re))
|
|
|
{
|