diff --git a/src_tenwa/com/tenwa/lease/app/quartzmession/QueryCommercialVehicleModeListAction.java b/src_tenwa/com/tenwa/lease/app/quartzmession/QueryCommercialVehicleModeListAction.java index 42c668f88..61814fc7c 100644 --- a/src_tenwa/com/tenwa/lease/app/quartzmession/QueryCommercialVehicleModeListAction.java +++ b/src_tenwa/com/tenwa/lease/app/quartzmession/QueryCommercialVehicleModeListAction.java @@ -50,7 +50,7 @@ public class QueryCommercialVehicleModeListAction implements Job{ }else{ fromVersion = versionResult.getAttribute("currentversion").toString(); } - String url = InitSecondHandCarConfig.PREFIX+"?fromVersion=" + String url = InitSecondHandCarConfig.PREFIX+"/service/common/eval?fromVersion=" +fromVersion+"&oper=exportCommercialModel"+"&token="+InitSecondHandCarConfig.TOKEN+""; String responseResult = VehicleAppraisementUtil.getResponseResult(url); //使用fastjson解析接口返回的json数据 diff --git a/src_tenwa/com/tenwa/lease/app/quartzmession/QueryPassengerVehicleModeListAction.java b/src_tenwa/com/tenwa/lease/app/quartzmession/QueryPassengerVehicleModeListAction.java index 1249e1a55..306ec3180 100644 --- a/src_tenwa/com/tenwa/lease/app/quartzmession/QueryPassengerVehicleModeListAction.java +++ b/src_tenwa/com/tenwa/lease/app/quartzmession/QueryPassengerVehicleModeListAction.java @@ -51,7 +51,7 @@ public class QueryPassengerVehicleModeListAction implements Job{ }else{ fromVersion = versionResult.getAttribute("currentversion").toString(); } - String url = InitSecondHandCarConfig.PREFIX+"?fromVersion=" + String url = InitSecondHandCarConfig.PREFIX+"/service/common/eval?fromVersion=" +fromVersion+"&oper="+InitSecondHandCarConfig.OPER+"&token="+InitSecondHandCarConfig.TOKEN+""; String responseResult = VehicleAppraisementUtil.getResponseResult(url); diff --git a/src_tenwa/com/tenwa/lease/app/quartzmession/QueryVehicleModeListAction.java b/src_tenwa/com/tenwa/lease/app/quartzmession/QueryVehicleModeListAction.java index 9f39da11a..730a32393 100644 --- a/src_tenwa/com/tenwa/lease/app/quartzmession/QueryVehicleModeListAction.java +++ b/src_tenwa/com/tenwa/lease/app/quartzmession/QueryVehicleModeListAction.java @@ -47,7 +47,7 @@ public class QueryVehicleModeListAction implements Job{ }else{ fromVersion = versionResult.getAttribute("currentversion").toString(); } - String url = InitSecondHandCarConfig.PREFIX+"?fromVersion=" + String url = InitSecondHandCarConfig.PREFIX+"/service/common/eval?fromVersion=" +fromVersion+"&oper="+InitSecondHandCarConfig.OPER+"&token="+InitSecondHandCarConfig.TOKEN+""; String responseResult = VehicleAppraisementUtil.getResponseResult(url); diff --git a/src_tenwa/com/tenwa/lease/flow/project/validate/NciicClient.java b/src_tenwa/com/tenwa/lease/flow/project/validate/NciicClient.java index 79dee5a11..d1fce24fa 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/validate/NciicClient.java +++ b/src_tenwa/com/tenwa/lease/flow/project/validate/NciicClient.java @@ -21,7 +21,7 @@ import org.codehaus.xfire.util.dom.DOMOutHandler; public class NciicClient { - public static final String SERVICE_URL = "https://ws.nciic.org.cn/nciic_ws/services/"; + public static final String SERVICE_URL = "https://ws.nciic.org.cn:8084/nciic_ws/services/"; /*public NciicClient() { }*/ public static void main(String[] args) throws MalformedURLException { @@ -42,7 +42,9 @@ public class NciicClient { long time = System.currentTimeMillis(); //调用生产环境接口时,需要采用https ProtocolSocketFactory easy = new EasySSLProtocolSocketFactory(); - Protocol protocol = new Protocol("https", easy, 443); + + Protocol protocol = new Protocol("https", easy, 8084); + Protocol.registerProtocol("https", protocol); //--核心服务NciicServices Service serviceModel = new ObjectServiceFactory().create(ServiceInf.class, serviceName, null, null); diff --git a/src_tenwa/com/tenwa/lease/util/VehicleAppraisementUtil.java b/src_tenwa/com/tenwa/lease/util/VehicleAppraisementUtil.java index 6e81c5868..aaa54d9ff 100644 --- a/src_tenwa/com/tenwa/lease/util/VehicleAppraisementUtil.java +++ b/src_tenwa/com/tenwa/lease/util/VehicleAppraisementUtil.java @@ -10,7 +10,7 @@ import com.amarsoft.app.awe.config.InitSecondHandCarConfig; public class VehicleAppraisementUtil { public static String getVehicleAppraisementResponse(String modelId,String zone,String regDate,String mile){ - String urlStr = "http://"+InitSecondHandCarConfig.PREFIX+".che300.com/service/getUsedCarPrice?" + String urlStr = InitSecondHandCarConfig.PREFIX+"/service/getUsedCarPrice?" +"token="+InitSecondHandCarConfig.TOKEN+"&modelId="+modelId +"®Date="+regDate+"&mile="+mile+"&zone="+zone+""; String result = VehicleAppraisementUtil.getResponseResult(urlStr);