|
@ -95,6 +95,10 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
// 调用失败
|
|
|
throw new Exception(xml.substring(xml.indexOf(":") + 1, xml.length()));
|
|
|
}
|
|
|
else if (StringUtils.startsWith(xml, "Error")) {
|
|
|
// 调用失败
|
|
|
throw new Exception(xml.substring(xml.indexOf(":") + 1, xml.length()));
|
|
|
}
|
|
|
Document document = DocumentHelper.parseText(xml);
|
|
|
Element root = document.getRootElement();
|
|
|
List<?> child = root.elements();
|
|
@ -137,6 +141,10 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
// 调用失败
|
|
|
throw new Exception(xml.substring(xml.indexOf(":") + 1, xml.length()));
|
|
|
}
|
|
|
else if (StringUtils.startsWith(xml, "Error")) {
|
|
|
// 调用失败
|
|
|
throw new Exception(xml.substring(xml.indexOf(":") + 1, xml.length()));
|
|
|
}
|
|
|
Document document = DocumentHelper.parseText(xml);
|
|
|
Element root = document.getRootElement();
|
|
|
List<?> child = root.elements();
|
|
@ -192,6 +200,10 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
// 调用失败
|
|
|
throw new Exception(xml.substring(xml.indexOf(":") + 1, xml.length()));
|
|
|
}
|
|
|
else if (StringUtils.startsWith(xml, "Error")) {
|
|
|
// 调用失败
|
|
|
throw new Exception(xml.substring(xml.indexOf(":") + 1, xml.length()));
|
|
|
}
|
|
|
Document document = DocumentHelper.parseText(xml);
|
|
|
Element root = document.getRootElement();
|
|
|
List<?> child = root.elements();
|
|
@ -285,6 +297,10 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
// 调用失败
|
|
|
throw new Exception(xml.substring(xml.indexOf(":") + 1, xml.length()));
|
|
|
}
|
|
|
else if (StringUtils.startsWith(xml, "Error")) {
|
|
|
// 调用失败
|
|
|
throw new Exception(xml.substring(xml.indexOf(":") + 1, xml.length()));
|
|
|
}
|
|
|
Document document = DocumentHelper.parseText(xml);
|
|
|
Element root = document.getRootElement();
|
|
|
List<?> child = root.elements();
|
|
@ -375,6 +391,10 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
// 调用失败
|
|
|
throw new Exception(xml.substring(xml.indexOf(":") + 1, xml.length()));
|
|
|
}
|
|
|
else if (StringUtils.startsWith(xml, "Error")) {
|
|
|
// 调用失败
|
|
|
throw new Exception(xml.substring(xml.indexOf(":") + 1, xml.length()));
|
|
|
}
|
|
|
Document document = DocumentHelper.parseText(xml);
|
|
|
Element root = document.getRootElement();
|
|
|
List<?> child = root.elements();
|
|
@ -548,6 +568,10 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
// 调用失败
|
|
|
throw new Exception(xml.substring(xml.indexOf(":") + 1, xml.length()));
|
|
|
}
|
|
|
else if (StringUtils.startsWith(xml, "Error")) {
|
|
|
// 调用失败
|
|
|
throw new Exception(xml.substring(xml.indexOf(":") + 1, xml.length()));
|
|
|
}
|
|
|
if (xml.toLowerCase().startsWith("ok")) {
|
|
|
return true;
|
|
|
} else {
|
|
@ -589,6 +613,10 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
// 调用失败
|
|
|
throw new Exception(xml.substring(xml.indexOf(":") + 1, xml.length()));
|
|
|
}
|
|
|
else if (StringUtils.startsWith(xml, "Error")) {
|
|
|
// 调用失败
|
|
|
throw new Exception(xml.substring(xml.indexOf(":") + 1, xml.length()));
|
|
|
}
|
|
|
Document document = DocumentHelper.parseText(xml);
|
|
|
Element root = document.getRootElement();
|
|
|
List<?> child = root.elements();
|
|
@ -685,6 +713,10 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
// 调用失败
|
|
|
throw new Exception(xml.substring(xml.indexOf(":") + 1, xml.length()));
|
|
|
}
|
|
|
else if (StringUtils.startsWith(xml, "Error")) {
|
|
|
// 调用失败
|
|
|
throw new Exception(xml.substring(xml.indexOf(":") + 1, xml.length()));
|
|
|
}
|
|
|
|
|
|
Document document = DocumentHelper.parseText(xml);
|
|
|
Element root = document.getRootElement();
|
|
@ -764,6 +796,10 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
// 调用失败
|
|
|
throw new Exception(xml.substring(xml.indexOf(":") + 1, xml.length()));
|
|
|
}
|
|
|
else if (StringUtils.startsWith(xml, "Error")) {
|
|
|
// 调用失败
|
|
|
throw new Exception(xml.substring(xml.indexOf(":") + 1, xml.length()));
|
|
|
}
|
|
|
Document document = DocumentHelper.parseText(xml);
|
|
|
Element root = document.getRootElement();
|
|
|
List<?> child = root.elements();
|
|
@ -872,6 +908,10 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
// 调用失败
|
|
|
throw new Exception(xml.substring(xml.indexOf(":") + 1, xml.length()));
|
|
|
}
|
|
|
else if (StringUtils.startsWith(xml, "Error")) {
|
|
|
// 调用失败
|
|
|
throw new Exception(xml.substring(xml.indexOf(":") + 1, xml.length()));
|
|
|
}
|
|
|
Document document = DocumentHelper.parseText(xml);
|
|
|
Element root = document.getRootElement();
|
|
|
List<?> child = root.elements();
|