장애인표지조회 추가

main
이범준 2 months ago
parent 8cbbb95630
commit 16fdc88bdd

@ -118,10 +118,57 @@ public class PissController extends AbstractController {
@PostMapping(name="장애인표지조회", value="rid/ynservice/swsdn/DisabledParkingYnService")
@ResponseBody
public String DisabledParkingYnService(HttpServletRequest hreq, @RequestBody HashMap<String, Object> map) {
public String DisabledParkingYnService(HttpServletRequest hreq, @RequestBody String xml) {
System.out.println("RequestBody");
System.out.println(xml);
return "";
String reqEncStart = "<getDisabledParkingYn xmlns=\"http://ccais.mopas.go.kr/dh/rid/services/swsdn/DisabledParkingYn/types\">";
String reqEncEnd = "</getDisabledParkingYn>";
String reqEncString = xml.split(reqEncStart)[1].split(reqEncEnd)[0];
String reqDecString = "";
reqEncString = reqEncString.trim();
boolean encYn = false;
if(reqEncString.startsWith("<")) {
reqDecString = reqEncString;
} else {
encYn = true;
//...
}
String reqVhrno = reqDecString.split("<CARS_NO>")[1].split("</CARS_NO>")[0];
String parkingBsblYn = "N";
if(reqVhrno.endsWith("9")) {
parkingBsblYn = "Y";
}
String resDecString = "";
resDecString += "<CARS_NO>"+reqVhrno+"</CARS_NO>";
resDecString += "<PARKING_PSBL_YN>"+parkingBsblYn+"</PARKING_PSBL_YN>";
resDecString += "<BOHUN_PARKING_PSBL_YN>N</BOHUN_PARKING_PSBL_YN>";
String resEncString = "";
if(!encYn) {
resEncString = resDecString;
} else {
//...
}
String result = "";
result += "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
result += "<Envelope xmlns=\"http://schemas.xmlsoap.org/soap/envelope/\">";
result += "<Header>";
result += "</Header>";
result += "<Body>";
result += "<getDisabledParkingYnResponse xmlns=\"http://ccais.mopas.go.kr/dh/rid/services/swsdn/DisabledParkingYn/types\">";
result += resEncString;
result += "</getDisabledParkingYnResponse>";
result += "</Body>";
result += "</Envelope>";
return result;
}
@PostMapping(name="운전면허증", value="unknown/License")

Loading…
Cancel
Save