To convert XML File in to JSON include the following dependency
org.json
json
20140107
and you can Download Jar from Maven Repository here.
Then implement as:
String soapmessageString = "yourStringURLorFILE";
JSONObject soapDatainJsonObject = XML.toJSONObject(soapmessageString);
System.out.println(soapDatainJsonObject);