Skip to content

Commit fe56745

Browse files
committed
changes
1 parent 65d61b1 commit fe56745

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

jerseyClient/src/main/java/com/jerseyClient/RestClient.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ public Response getValidResp() {
7575
ObjectMapper mapper = new ObjectMapper();
7676
mapData = mapper.readValue(output, HashMap.class);
7777

78+
String responseXML = mapData.get("xml");
79+
validateXMLSchema(
80+
Intializer.getPropertyValue(Helper.getTagValue(responseXML, Constants.XSD_NAME_PATH_TAG)),
81+
responseXML);
82+
7883
// parse XML here to fetch xsd name
7984
writeToFile(bw, mapData, "");
8085
}
@@ -89,6 +94,8 @@ public Response getValidResp() {
8994
private void writeToFile(BufferedWriter bw, Map<String, String> mapData, String errorMessage) {
9095
// write to file
9196
try {
97+
bw.newLine();
98+
bw.newLine();
9299
bw.write(mapData.get("name"));
93100
bw.newLine();
94101
bw.write("=====================================================================================");
@@ -101,7 +108,9 @@ private void writeToFile(BufferedWriter bw, Map<String, String> mapData, String
101108
bw.write("Error Received ===>>>");
102109
bw.newLine();
103110
bw.write("=====================================================================================");
111+
bw.newLine();
104112
bw.write(errorMessage);
113+
bw.newLine();
105114
bw.write("=====================================================================================");
106115
}
107116
bw.close();

0 commit comments

Comments
 (0)