Commit a16d1dc34f74157be5408cd667f90bb836b7ab8b
1 parent
042ef818
青浦接口地址更换
Showing
3 changed files
with
6 additions
and
3 deletions
src/main/java/com/bsth/service/impl/TrafficManageServiceImpl.java
| @@ -514,7 +514,7 @@ public class TrafficManageServiceImpl implements TrafficManageService{ | @@ -514,7 +514,7 @@ public class TrafficManageServiceImpl implements TrafficManageService{ | ||
| 514 | sf.append("<SJDDSJ>"+scheduleRealInfo.getZdsjActual()+"</SJDDSJ>"); | 514 | sf.append("<SJDDSJ>"+scheduleRealInfo.getZdsjActual()+"</SJDDSJ>"); |
| 515 | sf.append("<DDZDLX>"+""+"</DDZDLX>"); | 515 | sf.append("<DDZDLX>"+""+"</DDZDLX>"); |
| 516 | sf.append("<LDSCBZ>"+0+"</LDSCBZ>"); | 516 | sf.append("<LDSCBZ>"+0+"</LDSCBZ>"); |
| 517 | - sf.append("<DDBZ>"+scheduleRealInfo.getRemarks()+"</DDBZ>"); | 517 | + sf.append("<DDBZ>").append(scheduleRealInfo.getRemarks() == null ? "" : scheduleRealInfo.getRemarks()).append("</DDBZ>"); |
| 518 | sf.append("</LD>"); | 518 | sf.append("</LD>"); |
| 519 | } | 519 | } |
| 520 | } | 520 | } |
| @@ -530,6 +530,7 @@ public class TrafficManageServiceImpl implements TrafficManageService{ | @@ -530,6 +530,7 @@ public class TrafficManageServiceImpl implements TrafficManageService{ | ||
| 530 | result = logRecord(results,logXlbmMap,logXlbmSuccessMap,logXlbmFailureMap,logSuccess,logFailure,str); | 530 | result = logRecord(results,logXlbmMap,logXlbmSuccessMap,logXlbmFailureMap,logSuccess,logFailure,str); |
| 531 | // 发送到青浦运管处 | 531 | // 发送到青浦运管处 |
| 532 | try { | 532 | try { |
| 533 | + logger.info("xml:"+StringEscapeUtils.unescapeHtml(str)); | ||
| 533 | com.bsth.webService.trafficManage.qp.Results res | 534 | com.bsth.webService.trafficManage.qp.Results res |
| 534 | = qp_ssop.setLD(userNameOther_qp,passwordOther_qp,StringEscapeUtils.unescapeHtml(str)); | 535 | = qp_ssop.setLD(userNameOther_qp,passwordOther_qp,StringEscapeUtils.unescapeHtml(str)); |
| 535 | logger.info("青浦路单是否上传成功:"+res.isSuccess()); | 536 | logger.info("青浦路单是否上传成功:"+res.isSuccess()); |
| @@ -546,6 +547,7 @@ public class TrafficManageServiceImpl implements TrafficManageService{ | @@ -546,6 +547,7 @@ public class TrafficManageServiceImpl implements TrafficManageService{ | ||
| 546 | results = ssop.setLD(userNameOther, passwordOther, StringEscapeUtils.unescapeHtml(str)); | 547 | results = ssop.setLD(userNameOther, passwordOther, StringEscapeUtils.unescapeHtml(str)); |
| 547 | // 发送到青浦运管处 | 548 | // 发送到青浦运管处 |
| 548 | try { | 549 | try { |
| 550 | + logger.info("xml:"+StringEscapeUtils.unescapeHtml(str)); | ||
| 549 | com.bsth.webService.trafficManage.qp.Results res | 551 | com.bsth.webService.trafficManage.qp.Results res |
| 550 | = qp_ssop.setLD(userNameOther_qp,passwordOther_qp,StringEscapeUtils.unescapeHtml(str)); | 552 | = qp_ssop.setLD(userNameOther_qp,passwordOther_qp,StringEscapeUtils.unescapeHtml(str)); |
| 551 | logger.info("青浦路单是否上传成功:"+res.isSuccess()); | 553 | logger.info("青浦路单是否上传成功:"+res.isSuccess()); |
| @@ -1159,6 +1161,7 @@ public class TrafficManageServiceImpl implements TrafficManageService{ | @@ -1159,6 +1161,7 @@ public class TrafficManageServiceImpl implements TrafficManageService{ | ||
| 1159 | 1161 | ||
| 1160 | // 发送到青浦运管处 | 1162 | // 发送到青浦运管处 |
| 1161 | try { | 1163 | try { |
| 1164 | + logger.info("xml:",sBuffer); | ||
| 1162 | com.bsth.webService.trafficManage.qp.Results res = | 1165 | com.bsth.webService.trafficManage.qp.Results res = |
| 1163 | qp_ssop.setSKB(userNameOther_qp,passwordOther_qp,sBuffer.toString()); | 1166 | qp_ssop.setSKB(userNameOther_qp,passwordOther_qp,sBuffer.toString()); |
| 1164 | logger.info("青浦时刻表上传结果:"+ res.isSuccess()); | 1167 | logger.info("青浦时刻表上传结果:"+ res.isSuccess()); |
src/main/java/com/bsth/webService/trafficManage/qp/WebServiceLocator.java
| @@ -22,7 +22,7 @@ public class WebServiceLocator extends org.apache.axis.client.Service implements | @@ -22,7 +22,7 @@ public class WebServiceLocator extends org.apache.axis.client.Service implements | ||
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | // Use to get a proxy class for WebServiceSoap | 24 | // Use to get a proxy class for WebServiceSoap |
| 25 | - private String WebServiceSoap_address = "http://www.tanway.cn:7280/yyws/services/WebServiceSoap"; | 25 | + private String WebServiceSoap_address = "http://qpgj.tanway.net:15335/yyws/services/WebServiceSoap"; |
| 26 | 26 | ||
| 27 | public String getWebServiceSoapAddress() { | 27 | public String getWebServiceSoapAddress() { |
| 28 | return WebServiceSoap_address; | 28 | return WebServiceSoap_address; |
src/main/java/com/bsth/webService/trafficManage/qp/WebServiceSoap.wsdl
| @@ -711,7 +711,7 @@ Built on Apr 22, 2006 (06:55:48 PDT)--> | @@ -711,7 +711,7 @@ Built on Apr 22, 2006 (06:55:48 PDT)--> | ||
| 711 | 711 | ||
| 712 | <wsdl:port binding="impl:WebServiceSoapSoapBinding" name="WebServiceSoap"> | 712 | <wsdl:port binding="impl:WebServiceSoapSoapBinding" name="WebServiceSoap"> |
| 713 | 713 | ||
| 714 | - <wsdlsoap:address location="http://www.tanway.cn:7280/yyws/services/WebServiceSoap"/> | 714 | + <wsdlsoap:address location="http://qpgj.tanway.net:15335/yyws/services/WebServiceSoap"/> |
| 715 | 715 | ||
| 716 | </wsdl:port> | 716 | </wsdl:port> |
| 717 | 717 |