|
@@ -13,11 +13,6 @@ import org.w3c.dom.Element;
|
|
|
import org.w3c.dom.Node;
|
|
|
import org.w3c.dom.NodeList;
|
|
|
|
|
|
-import java.io.BufferedReader;
|
|
|
-import java.io.IOException;
|
|
|
-import java.io.InputStreamReader;
|
|
|
-import java.io.OutputStream;
|
|
|
-import java.net.MalformedURLException;
|
|
|
import java.sql.Timestamp;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.ArrayList;
|
|
@@ -30,18 +25,8 @@ public class WebServiceUtil {
|
|
|
private static final Logger log = LoggerFactory.getLogger(WebServiceUtil.class);
|
|
|
private static final SimpleDateFormat SDF1_DATE_SHORT = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
private static final SimpleDateFormat SDF = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
- private static final SimpleDateFormat SDF_TIME2 = new SimpleDateFormat("yyyy-MM-dd HH:mm");
|
|
|
- public static final String PATIENTMETHODNAME = "GetPatientHospitalInfo";
|
|
|
- public static final String OPERATORMETHODNAME = "GetStaffDict";
|
|
|
- public static final String DISPATCHMETHODNAME = "GetToPerformPrescribeRecord";
|
|
|
- public static final String RESULTMETHODNAME = "SendBloodGlucoseRecord";
|
|
|
- public static final String END_POINT_URL = "http://192.168.3.199:8693/Select-Service?wsdl";
|
|
|
- public static final String END_POINT_URL_RESULT = "http://192.168.3.199:8693/Common-Service?wsdl";
|
|
|
- public static final String PREFIX = "soap12";
|
|
|
- public static final String NAMESPACE = "http://www.zysoft.com/";
|
|
|
- public static final String SOAPACTIONURI = "http://www.zysoft.com/CallInterface";
|
|
|
- public static final String METHODNAME = "CallInterface";
|
|
|
- public static final String TAGNAME = "zys:payload";
|
|
|
+ public static final String END_POINT_URL = "http://192.168.8.225:8693/Select-Service?wsdl";
|
|
|
+ public static final String END_POINT_URL_RESULT = "http://192.168.8.225:8693/Common-Service?wsdl";
|
|
|
|
|
|
public WebServiceUtil() {
|
|
|
}
|
|
@@ -57,7 +42,7 @@ public class WebServiceUtil {
|
|
|
String msgBodyQuest = patientBuildmsgBodyXml(deptCode);
|
|
|
String[] inputNames = new String[]{"msgHeader", "msgBody"};
|
|
|
String[] inputValues = new String[]{msgHeaderQuest, msgBodyQuest};
|
|
|
- Document document = SoapUtil.GeneratorWebserviceBySoap("soap12", "http://192.168.3.199:8693/Select-Service?wsdl", "http://www.zysoft.com/", "CallInterface", "http://www.zysoft.com/CallInterface", inputNames, inputValues, "zys:payload");
|
|
|
+ Document document = SoapUtil.GeneratorWebserviceBySoap("soap12", END_POINT_URL, "http://www.zysoft.com/", "CallInterface", "http://www.zysoft.com/CallInterface", inputNames, inputValues, "zys:payload");
|
|
|
if (document != null) {
|
|
|
Element element = document.getDocumentElement();
|
|
|
NodeList nodeList = element.getElementsByTagName("returnContent");
|
|
@@ -141,7 +126,7 @@ public class WebServiceUtil {
|
|
|
String msgBodyQuest = operatorBuildmsgBodyXml();
|
|
|
String[] inputNames = new String[]{"msgHeader", "msgBody"};
|
|
|
String[] inputValues = new String[]{msgHeaderQuest, msgBodyQuest};
|
|
|
- Document document = SoapUtil.GeneratorWebserviceBySoap("soap12", "http://192.168.3.199:8693/Select-Service?wsdl", "http://www.zysoft.com/", "CallInterface", "http://www.zysoft.com/CallInterface", inputNames, inputValues, "zys:payload");
|
|
|
+ Document document = SoapUtil.GeneratorWebserviceBySoap("soap12", END_POINT_URL, "http://www.zysoft.com/", "CallInterface", "http://www.zysoft.com/CallInterface", inputNames, inputValues, "zys:payload");
|
|
|
if (document != null) {
|
|
|
Element element = document.getDocumentElement();
|
|
|
NodeList nodeList1 = element.getElementsByTagName("returnContent");
|
|
@@ -179,7 +164,7 @@ public class WebServiceUtil {
|
|
|
String msgBodyQuest = dispatchBuildmsgBodyXml(visitNo);
|
|
|
String[] inputNames = new String[]{"msgHeader", "msgBody"};
|
|
|
String[] inputValues = new String[]{msgHeaderQuest, msgBodyQuest};
|
|
|
- Document document = SoapUtil.GeneratorWebserviceBySoap("soap12", "http://192.168.3.199:8693/Select-Service?wsdl", "http://www.zysoft.com/", "CallInterface", "http://www.zysoft.com/CallInterface", inputNames, inputValues, "zys:payload");
|
|
|
+ Document document = SoapUtil.GeneratorWebserviceBySoap("soap12", END_POINT_URL, "http://www.zysoft.com/", "CallInterface", "http://www.zysoft.com/CallInterface", inputNames, inputValues, "zys:payload");
|
|
|
if (document != null) {
|
|
|
Element element = document.getDocumentElement();
|
|
|
NodeList nodeList1 = element.getElementsByTagName("returnContent");
|
|
@@ -313,7 +298,7 @@ public class WebServiceUtil {
|
|
|
log.info("回传字符串:" + msgBodyQuest);
|
|
|
String[] inputNames = new String[]{"msgHeader", "msgBody"};
|
|
|
String[] inputValues = new String[]{msgHeaderQuest, msgBodyQuest};
|
|
|
- response = SoapUtil.GeneratorWebserviceBySoapResultUpload("soap12", "http://192.168.3.199:8693/Common-Service?wsdl", "http://www.zysoft.com/", "CallInterface", "http://www.zysoft.com/CallInterface", inputNames, inputValues, "zys:payload");
|
|
|
+ response = SoapUtil.GeneratorWebserviceBySoapResultUpload("soap12", END_POINT_URL_RESULT, "http://www.zysoft.com/", "CallInterface", "http://www.zysoft.com/CallInterface", inputNames, inputValues, "zys:payload");
|
|
|
} catch (Exception var12) {
|
|
|
log.error("doReplyResult fail ", var12);
|
|
|
}
|