Commit fe77b2c3ca4c4c63ace4c7714a82abf99ed00eb0

Authored by riecard
1 parent 673134ddd4

add soap apis

Showing 15 changed files with 995 additions and 18 deletions

platform-data-api/src/main/java/com/lyms/platform/data/web/result/DefaultResult.java View file @ fe77b2c
  1 +package com.lyms.platform.data.web.result;
  2 +
  3 +import javax.xml.bind.annotation.XmlAccessType;
  4 +import javax.xml.bind.annotation.XmlAccessorType;
  5 +import javax.xml.bind.annotation.XmlElement;
  6 +import javax.xml.bind.annotation.XmlRootElement;
  7 +import java.io.Serializable;
  8 +
  9 +/**
  10 + * Created by riecard on 16/3/21.
  11 + */
  12 +@XmlRootElement(name = "defaultResult")
  13 +@XmlAccessorType(XmlAccessType.FIELD)
  14 +public class DefaultResult implements Serializable {
  15 +
  16 + public DefaultResult(){}
  17 +
  18 + public DefaultResult(String errorcode, String errormsg) {
  19 + this.errorcode = errorcode;
  20 + this.errormsg = errormsg;
  21 + }
  22 +
  23 + @XmlElement(name = "errorcode", required = true)
  24 + private String errorcode;
  25 +
  26 + @XmlElement(name = "errormsg", required = true)
  27 + private String errormsg;
  28 +
  29 + public String getErrorcode() {
  30 + return errorcode;
  31 + }
  32 +
  33 + public void setErrorcode(String errorcode) {
  34 + this.errorcode = errorcode;
  35 + }
  36 +
  37 + public String getErrormsg() {
  38 + return errormsg;
  39 + }
  40 +
  41 + public void setErrormsg(String errormsg) {
  42 + this.errormsg = errormsg;
  43 + }
  44 +}
platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsBaseBean.java View file @ fe77b2c
  1 +package com.lyms.platform.data.web.webparam;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +/**
  6 + * Created by riecard on 16/3/20.
  7 + */
  8 +public class WsBaseBean implements Serializable {
  9 +
  10 +}
platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsDoctor.java View file @ fe77b2c
  1 +package com.lyms.platform.data.web.webparam;
  2 +
  3 +import javax.xml.bind.annotation.XmlAccessType;
  4 +import javax.xml.bind.annotation.XmlAccessorType;
  5 +import javax.xml.bind.annotation.XmlElement;
  6 +import javax.xml.bind.annotation.XmlRootElement;
  7 +
  8 +/**
  9 + * Created by riecard on 16/3/21.
  10 + */
  11 +@XmlRootElement
  12 +@XmlAccessorType(XmlAccessType.FIELD)
  13 +public class WsDoctor extends WsBaseBean {
  14 +
  15 + @XmlElement(name = "id", required = true)
  16 + private String id;
  17 + @XmlElement(name = "employeeId", required = true)
  18 + private String employeeId;
  19 + @XmlElement(name = "hospitalId", required = true)
  20 + private String hospitalId;
  21 + @XmlElement(name = "account", required = true)
  22 + private String account;
  23 + @XmlElement(name = "pwd", required = true)
  24 + private String pwd;
  25 + @XmlElement(name = "username", required = true)
  26 + private String username;
  27 + @XmlElement(name = "phone", required = true)
  28 + private String phone;
  29 +
  30 + public String getId() {
  31 + return id;
  32 + }
  33 +
  34 + public void setId(String id) {
  35 + this.id = id;
  36 + }
  37 +
  38 + public String getEmployeeId() {
  39 + return employeeId;
  40 + }
  41 +
  42 + public void setEmployeeId(String employeeId) {
  43 + this.employeeId = employeeId;
  44 + }
  45 +
  46 + public String getHospitalId() {
  47 + return hospitalId;
  48 + }
  49 +
  50 + public void setHospitalId(String hospitalId) {
  51 + this.hospitalId = hospitalId;
  52 + }
  53 +
  54 + public String getAccount() {
  55 + return account;
  56 + }
  57 +
  58 + public void setAccount(String account) {
  59 + this.account = account;
  60 + }
  61 +
  62 + public String getPwd() {
  63 + return pwd;
  64 + }
  65 +
  66 + public void setPwd(String pwd) {
  67 + this.pwd = pwd;
  68 + }
  69 +
  70 + public String getUsername() {
  71 + return username;
  72 + }
  73 +
  74 + public void setUsername(String username) {
  75 + this.username = username;
  76 + }
  77 +
  78 + public String getPhone() {
  79 + return phone;
  80 + }
  81 +
  82 + public void setPhone(String phone) {
  83 + this.phone = phone;
  84 + }
  85 +}
platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsEmergence.java View file @ fe77b2c
  1 +package com.lyms.platform.data.web.webparam;
  2 +
  3 +import javax.xml.bind.annotation.XmlAccessType;
  4 +import javax.xml.bind.annotation.XmlAccessorType;
  5 +import javax.xml.bind.annotation.XmlElement;
  6 +import javax.xml.bind.annotation.XmlRootElement;
  7 +
  8 +/**
  9 + * Created by riecard on 16/3/21.
  10 + */
  11 +@XmlRootElement
  12 +@XmlAccessorType(XmlAccessType.FIELD)
  13 +public class WsEmergence extends WsBaseBean {
  14 +
  15 + @XmlElement(name = "patientId", required = true)
  16 + private String patientId;
  17 + @XmlElement(name = "emergenceId", required = true)
  18 + private String emergenceId;
  19 + @XmlElement(name = "title", required = true)
  20 + private String title;
  21 + @XmlElement(name = "value", required = true)
  22 + private String value;
  23 + @XmlElement(name = "reference", required = true)
  24 + private String reference;
  25 + @XmlElement(name = "docNum", required = true)
  26 + private String docNum;
  27 + @XmlElement(name = "doctorName", required = true)
  28 + private String doctorName;
  29 + @XmlElement(name = "risk", required = true)
  30 + private String risk;
  31 + @XmlElement(name = "created", required = true)
  32 + private String created;
  33 + @XmlElement(name = "template", required = true)
  34 + private String template;
  35 +
  36 + public String getPatientId() {
  37 + return patientId;
  38 + }
  39 +
  40 + public void setPatientId(String patientId) {
  41 + this.patientId = patientId;
  42 + }
  43 +
  44 + public String getEmergenceId() {
  45 + return emergenceId;
  46 + }
  47 +
  48 + public void setEmergenceId(String emergenceId) {
  49 + this.emergenceId = emergenceId;
  50 + }
  51 +
  52 + public String getTitle() {
  53 + return title;
  54 + }
  55 +
  56 + public void setTitle(String title) {
  57 + this.title = title;
  58 + }
  59 +
  60 + public String getValue() {
  61 + return value;
  62 + }
  63 +
  64 + public void setValue(String value) {
  65 + this.value = value;
  66 + }
  67 +
  68 + public String getReference() {
  69 + return reference;
  70 + }
  71 +
  72 + public void setReference(String reference) {
  73 + this.reference = reference;
  74 + }
  75 +
  76 + public String getDocNum() {
  77 + return docNum;
  78 + }
  79 +
  80 + public void setDocNum(String docNum) {
  81 + this.docNum = docNum;
  82 + }
  83 +
  84 + public String getDoctorName() {
  85 + return doctorName;
  86 + }
  87 +
  88 + public void setDoctorName(String doctorName) {
  89 + this.doctorName = doctorName;
  90 + }
  91 +
  92 + public String getRisk() {
  93 + return risk;
  94 + }
  95 +
  96 + public void setRisk(String risk) {
  97 + this.risk = risk;
  98 + }
  99 +
  100 + public String getCreated() {
  101 + return created;
  102 + }
  103 +
  104 + public void setCreated(String created) {
  105 + this.created = created;
  106 + }
  107 +
  108 + public String getTemplate() {
  109 + return template;
  110 + }
  111 +
  112 + public void setTemplate(String template) {
  113 + this.template = template;
  114 + }
  115 +}
platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsHospitals.java View file @ fe77b2c
  1 +package com.lyms.platform.data.web.webparam;
  2 +
  3 +import javax.xml.bind.annotation.XmlAccessType;
  4 +import javax.xml.bind.annotation.XmlAccessorType;
  5 +import javax.xml.bind.annotation.XmlElement;
  6 +import javax.xml.bind.annotation.XmlRootElement;
  7 +
  8 +/**
  9 + * Created by riecard on 16/3/20.
  10 + */
  11 +@XmlRootElement
  12 +@XmlAccessorType(XmlAccessType.FIELD)
  13 +public class WsHospitals extends WsBaseBean {
  14 +
  15 + @XmlElement(name = "id", required = true)
  16 + private String id;
  17 + @XmlElement(name = "title", required = true)
  18 + private String title;
  19 + @XmlElement(name = "code", required = true)
  20 + private String code;
  21 + @XmlElement(name = "status", required = true)
  22 + private Integer status;
  23 +
  24 + public Integer getStatus() {
  25 + return status;
  26 + }
  27 +
  28 + public void setStatus(Integer status) {
  29 + this.status = status;
  30 + }
  31 +
  32 + public String getId() {
  33 + return id;
  34 + }
  35 +
  36 + public void setId(String id) {
  37 + this.id = id;
  38 + }
  39 +
  40 + public String getTitle() {
  41 + return title;
  42 + }
  43 +
  44 + public void setTitle(String title) {
  45 + this.title = title;
  46 + }
  47 +
  48 + public String getCode() {
  49 + return code;
  50 + }
  51 +
  52 + public void setCode(String code) {
  53 + this.code = code;
  54 + }
  55 +
  56 + @Override
  57 + public String toString() {
  58 + return "WsHospitals{" +
  59 + "id='" + id + '\'' +
  60 + ", title='" + title + '\'' +
  61 + ", code='" + code + '\'' +
  62 + '}';
  63 + }
  64 +}
platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsPatient.java View file @ fe77b2c
  1 +package com.lyms.platform.data.web.webparam;
  2 +
  3 +import javax.xml.bind.annotation.XmlAccessType;
  4 +import javax.xml.bind.annotation.XmlAccessorType;
  5 +import javax.xml.bind.annotation.XmlElement;
  6 +import javax.xml.bind.annotation.XmlRootElement;
  7 +
  8 +/**
  9 + * Created by riecard on 16/3/21.
  10 + */
  11 +@XmlRootElement
  12 +@XmlAccessorType(XmlAccessType.FIELD)
  13 +public class WsPatient extends WsBaseBean {
  14 + @XmlElement(name = "id", required = true)
  15 + private String id;
  16 + @XmlElement(name = "idNum", required = true)
  17 + private String idNum;
  18 + @XmlElement(name = "subId", required = true)
  19 + private String subId;
  20 + @XmlElement(name = "colors", required = true)
  21 + private String colors;
  22 + @XmlElement(name = "lastMenses", required = true)
  23 + private String lastMenses;
  24 + @XmlElement(name = "age", required = true)
  25 + private Integer age;
  26 + @XmlElement(name = "phone", required = true)
  27 + private String phone;
  28 + @XmlElement(name = "gender", required = true)
  29 + private Integer gender;
  30 + @XmlElement(name = "birth", required = true)
  31 + private String birth;
  32 + @XmlElement(name = "type", required = true)
  33 + private Integer type;
  34 + @XmlElement(name = "level", required = true)
  35 + private Integer level;
  36 + @XmlElement(name = "levelTitle", required = true)
  37 + private String levelTitle;
  38 + @XmlElement(name = "status", required = true)
  39 + private Integer status;
  40 + @XmlElement(name = "doctorId", required = true)
  41 + private String doctorId;
  42 + @XmlElement(name = "hospitalId", required = true)
  43 + private String hospitalId;
  44 +
  45 + public String getId() {
  46 + return id;
  47 + }
  48 +
  49 + public void setId(String id) {
  50 + this.id = id;
  51 + }
  52 +
  53 + public String getIdNum() {
  54 + return idNum;
  55 + }
  56 +
  57 + public void setIdNum(String idNum) {
  58 + this.idNum = idNum;
  59 + }
  60 +
  61 + public String getSubId() {
  62 + return subId;
  63 + }
  64 +
  65 + public void setSubId(String subId) {
  66 + this.subId = subId;
  67 + }
  68 +
  69 + public String getColors() {
  70 + return colors;
  71 + }
  72 +
  73 + public void setColors(String colors) {
  74 + this.colors = colors;
  75 + }
  76 +
  77 + public String getLastMenses() {
  78 + return lastMenses;
  79 + }
  80 +
  81 + public void setLastMenses(String lastMenses) {
  82 + this.lastMenses = lastMenses;
  83 + }
  84 +
  85 + public Integer getAge() {
  86 + return age;
  87 + }
  88 +
  89 + public void setAge(Integer age) {
  90 + this.age = age;
  91 + }
  92 +
  93 + public String getPhone() {
  94 + return phone;
  95 + }
  96 +
  97 + public void setPhone(String phone) {
  98 + this.phone = phone;
  99 + }
  100 +
  101 + public Integer getGender() {
  102 + return gender;
  103 + }
  104 +
  105 + public void setGender(Integer gender) {
  106 + this.gender = gender;
  107 + }
  108 +
  109 + public String getBirth() {
  110 + return birth;
  111 + }
  112 +
  113 + public void setBirth(String birth) {
  114 + this.birth = birth;
  115 + }
  116 +
  117 + public Integer getType() {
  118 + return type;
  119 + }
  120 +
  121 + public void setType(Integer type) {
  122 + this.type = type;
  123 + }
  124 +
  125 + public Integer getLevel() {
  126 + return level;
  127 + }
  128 +
  129 + public void setLevel(Integer level) {
  130 + this.level = level;
  131 + }
  132 +
  133 + public String getLevelTitle() {
  134 + return levelTitle;
  135 + }
  136 +
  137 + public void setLevelTitle(String levelTitle) {
  138 + this.levelTitle = levelTitle;
  139 + }
  140 +
  141 + public Integer getStatus() {
  142 + return status;
  143 + }
  144 +
  145 + public void setStatus(Integer status) {
  146 + this.status = status;
  147 + }
  148 +
  149 + public String getDoctorId() {
  150 + return doctorId;
  151 + }
  152 +
  153 + public void setDoctorId(String doctorId) {
  154 + this.doctorId = doctorId;
  155 + }
  156 +
  157 + public String getHospitalId() {
  158 + return hospitalId;
  159 + }
  160 +
  161 + public void setHospitalId(String hospitalId) {
  162 + this.hospitalId = hospitalId;
  163 + }
  164 +}
platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsReport.java View file @ fe77b2c
  1 +package com.lyms.platform.data.web.webparam;
  2 +
  3 +import javax.xml.bind.annotation.XmlAccessType;
  4 +import javax.xml.bind.annotation.XmlAccessorType;
  5 +import javax.xml.bind.annotation.XmlElement;
  6 +import javax.xml.bind.annotation.XmlRootElement;
  7 +
  8 +/**
  9 + * Created by riecard on 16/3/21.
  10 + */
  11 +@XmlRootElement
  12 +@XmlAccessorType(XmlAccessType.FIELD)
  13 +public class WsReport extends WsBaseBean {
  14 + @XmlElement(name = "id", required = true)
  15 + private String id;
  16 + @XmlElement(name = "patientId", required = true)
  17 + private String patientId;
  18 + @XmlElement(name = "employeeId", required = true)
  19 + private String employeeId;
  20 + @XmlElement(name = "doctorName", required = true)
  21 + private String doctorName;
  22 + @XmlElement(name = "type", required = true)
  23 + private Integer type;
  24 + @XmlElement(name = "hospitalTitle", required = true)
  25 + private String hospitalTitle;
  26 + @XmlElement(name = "patientName", required = true)
  27 + private String patientName;
  28 + @XmlElement(name = "physicalTime", required = true)
  29 + private String physicalTime;
  30 + @XmlElement(name = "age", required = false)
  31 + private Integer age;
  32 + @XmlElement(name = "weeks", required = false)
  33 + private Integer weeks;
  34 + @XmlElement(name = "imgs", required = true)
  35 + private String imgs;
  36 + @XmlElement(name = "result", required = true)
  37 + private String result;
  38 +
  39 + public String getId() {
  40 + return id;
  41 + }
  42 +
  43 + public void setId(String id) {
  44 + this.id = id;
  45 + }
  46 +
  47 + public String getPatientId() {
  48 + return patientId;
  49 + }
  50 +
  51 + public void setPatientId(String patientId) {
  52 + this.patientId = patientId;
  53 + }
  54 +
  55 + public String getEmployeeId() {
  56 + return employeeId;
  57 + }
  58 +
  59 + public void setEmployeeId(String employeeId) {
  60 + this.employeeId = employeeId;
  61 + }
  62 +
  63 + public String getDoctorName() {
  64 + return doctorName;
  65 + }
  66 +
  67 + public void setDoctorName(String doctorName) {
  68 + this.doctorName = doctorName;
  69 + }
  70 +
  71 + public Integer getType() {
  72 + return type;
  73 + }
  74 +
  75 + public void setType(Integer type) {
  76 + this.type = type;
  77 + }
  78 +
  79 + public String getHospitalTitle() {
  80 + return hospitalTitle;
  81 + }
  82 +
  83 + public void setHospitalTitle(String hospitalTitle) {
  84 + this.hospitalTitle = hospitalTitle;
  85 + }
  86 +
  87 + public String getPatientName() {
  88 + return patientName;
  89 + }
  90 +
  91 + public void setPatientName(String patientName) {
  92 + this.patientName = patientName;
  93 + }
  94 +
  95 + public String getPhysicalTime() {
  96 + return physicalTime;
  97 + }
  98 +
  99 + public void setPhysicalTime(String physicalTime) {
  100 + this.physicalTime = physicalTime;
  101 + }
  102 +
  103 + public Integer getAge() {
  104 + return age;
  105 + }
  106 +
  107 + public void setAge(Integer age) {
  108 + this.age = age;
  109 + }
  110 +
  111 + public Integer getWeeks() {
  112 + return weeks;
  113 + }
  114 +
  115 + public void setWeeks(Integer weeks) {
  116 + this.weeks = weeks;
  117 + }
  118 +
  119 + public String getImgs() {
  120 + return imgs;
  121 + }
  122 +
  123 + public void setImgs(String imgs) {
  124 + this.imgs = imgs;
  125 + }
  126 +
  127 + public String getResult() {
  128 + return result;
  129 + }
  130 +
  131 + public void setResult(String result) {
  132 + this.result = result;
  133 + }
  134 +}
platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsRisk.java View file @ fe77b2c
  1 +package com.lyms.platform.data.web.webparam;
  2 +
  3 +import javax.xml.bind.annotation.XmlAccessType;
  4 +import javax.xml.bind.annotation.XmlAccessorType;
  5 +import javax.xml.bind.annotation.XmlElement;
  6 +import javax.xml.bind.annotation.XmlRootElement;
  7 +
  8 +/**
  9 + * Created by riecard on 16/3/21.
  10 + */
  11 +@XmlRootElement
  12 +@XmlAccessorType(XmlAccessType.FIELD)
  13 +public class WsRisk extends WsBaseBean {
  14 +
  15 + @XmlElement(name = "patientId", required = true)
  16 + private String patientId;
  17 + @XmlElement(name = "content", required = true)
  18 + private String content;
  19 + @XmlElement(name = "diagnosis", required = true)
  20 + private String diagnosis;
  21 + @XmlElement(name = "guide", required = true)
  22 + private String guide;
  23 +
  24 + public String getPatientId() {
  25 + return patientId;
  26 + }
  27 +
  28 + public void setPatientId(String patientId) {
  29 + this.patientId = patientId;
  30 + }
  31 +
  32 + public String getContent() {
  33 + return content;
  34 + }
  35 +
  36 + public void setContent(String content) {
  37 + this.content = content;
  38 + }
  39 +
  40 + public String getDiagnosis() {
  41 + return diagnosis;
  42 + }
  43 +
  44 + public void setDiagnosis(String diagnosis) {
  45 + this.diagnosis = diagnosis;
  46 + }
  47 +
  48 + public String getGuide() {
  49 + return guide;
  50 + }
  51 +
  52 + public void setGuide(String guide) {
  53 + this.guide = guide;
  54 + }
  55 +}
platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsSickbedInfo.java View file @ fe77b2c
  1 +package com.lyms.platform.data.web.webparam;
  2 +
  3 +import javax.xml.bind.annotation.XmlAccessType;
  4 +import javax.xml.bind.annotation.XmlAccessorType;
  5 +import javax.xml.bind.annotation.XmlElement;
  6 +import javax.xml.bind.annotation.XmlRootElement;
  7 +
  8 +/**
  9 + * Created by riecard on 16/3/21.
  10 + */
  11 +@XmlRootElement
  12 +@XmlAccessorType(XmlAccessType.FIELD)
  13 +public class WsSickbedInfo extends WsBaseBean {
  14 +
  15 + @XmlElement(name = "hospitalId", required = true)
  16 + private String hospitalId;
  17 + @XmlElement(name = "wardCode", required = true)
  18 + private String wardCode;
  19 + @XmlElement(name = "wardName", required = true)
  20 + private String wardName;
  21 + @XmlElement(name = "deptCode", required = true)
  22 + private String deptCode;
  23 + @XmlElement(name = "deptName", required = true)
  24 + private String deptName;
  25 + @XmlElement(name = "roomNum", required = true)
  26 + private String roomNum;
  27 + @XmlElement(name = "bedNum", required = true)
  28 + private String bedNum;
  29 + @XmlElement(name = "status", required = true)
  30 + private Integer status;
  31 +
  32 + public String getHospitalId() {
  33 + return hospitalId;
  34 + }
  35 +
  36 + public void setHospitalId(String hospitalId) {
  37 + this.hospitalId = hospitalId;
  38 + }
  39 +
  40 + public String getWardCode() {
  41 + return wardCode;
  42 + }
  43 +
  44 + public void setWardCode(String wardCode) {
  45 + this.wardCode = wardCode;
  46 + }
  47 +
  48 + public String getWardName() {
  49 + return wardName;
  50 + }
  51 +
  52 + public void setWardName(String wardName) {
  53 + this.wardName = wardName;
  54 + }
  55 +
  56 + public String getDeptCode() {
  57 + return deptCode;
  58 + }
  59 +
  60 + public void setDeptCode(String deptCode) {
  61 + this.deptCode = deptCode;
  62 + }
  63 +
  64 + public String getDeptName() {
  65 + return deptName;
  66 + }
  67 +
  68 + public void setDeptName(String deptName) {
  69 + this.deptName = deptName;
  70 + }
  71 +
  72 + public String getRoomNum() {
  73 + return roomNum;
  74 + }
  75 +
  76 + public void setRoomNum(String roomNum) {
  77 + this.roomNum = roomNum;
  78 + }
  79 +
  80 + public String getBedNum() {
  81 + return bedNum;
  82 + }
  83 +
  84 + public void setBedNum(String bedNum) {
  85 + this.bedNum = bedNum;
  86 + }
  87 +
  88 + public Integer getStatus() {
  89 + return status;
  90 + }
  91 +
  92 + public void setStatus(Integer status) {
  93 + this.status = status;
  94 + }
  95 +}
platform-data-api/src/main/java/com/lyms/platform/data/web/ws/EmergenceServiceWsImpl.java View file @ fe77b2c
1 1 package com.lyms.platform.data.web.ws;
2 2  
3   -import java.util.ArrayList;
4   -import java.util.List;
5   -
6   -import javax.jws.WebService;
7   -
  3 +import com.lyms.platform.common.constants.WsConstants;
8 4 import com.lyms.platform.data.web.result.EmergenceResult;
9 5 import com.lyms.platform.data.web.result.Emergences;
10 6 import com.lyms.platform.data.web.ws.intf.IEmergenceServiceWs;
11 7  
12   -@WebService(endpointInterface = "com.lyms.platform.data.web.ws.intf.IEmergenceServiceWs")
  8 +import javax.jws.WebService;
  9 +import java.util.ArrayList;
  10 +import java.util.List;
  11 +
  12 +@WebService(endpointInterface = "com.lyms.platform.data.web.ws.intf.IEmergenceServiceWs",targetNamespace= WsConstants.NS)
13 13 public class EmergenceServiceWsImpl implements IEmergenceServiceWs {
14 14  
15 15 @Override
... ... @@ -23,6 +23,22 @@
23 23 emergences.setContent("ๆต‹่ฏ•ๅŒป็”Ÿ");
24 24 emergences.setDocName("xiaoqi");
25 25 emergences.setRisk("่›‹็™ฝไฝŽ");
  26 + list.add(emergences);
  27 + emergenceResult.setData(list);
  28 + return emergenceResult;
  29 + }
  30 +
  31 + @Override
  32 + public EmergenceResult addEmergences(Emergences emergences) {
  33 + EmergenceResult emergenceResult = new EmergenceResult();
  34 + emergenceResult.setErrorcode("0000000");
  35 + emergenceResult.setErrormsg("ๆˆๅŠŸ");
  36 + List<Emergences> list = new ArrayList<Emergences>();
  37 + Emergences e1 = new Emergences();
  38 + e1.setContent("ๆต‹่ฏ•ๅŒป็”Ÿ");
  39 + e1.setDocName("xiaoqi");
  40 + e1.setRisk("่›‹็™ฝไฝŽ");
  41 + list.add(e1);
26 42 list.add(emergences);
27 43 emergenceResult.setData(list);
28 44 return emergenceResult;
platform-data-api/src/main/java/com/lyms/platform/data/web/ws/EmergenceTest.java View file @ fe77b2c
  1 +package com.lyms.platform.data.web.ws;
  2 +
  3 +import com.lyms.platform.data.web.webparam.WsHospitals;
  4 +import com.lyms.platform.data.web.ws.intf.SoapV1Service;
  5 +import org.apache.cxf.interceptor.LoggingInInterceptor;
  6 +import org.apache.cxf.interceptor.LoggingOutInterceptor;
  7 +import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
  8 +
  9 +/**
  10 + * Created by riecard on 16/3/20.
  11 + */
  12 +public class EmergenceTest {
  13 +
  14 + public static void main(String[] args) {
  15 + JaxWsProxyFactoryBean factoryBean=new JaxWsProxyFactoryBean();
  16 + factoryBean.getInInterceptors().add(new LoggingInInterceptor());
  17 + factoryBean.getOutInterceptors().add(new LoggingOutInterceptor());
  18 + factoryBean.setServiceClass(SoapV1Service.class);
  19 + factoryBean.setAddress("http://localhost:8080/services/v1");
  20 + SoapV1Service impl=(SoapV1Service) factoryBean.create();
  21 + System.out.println(impl.addHospital(new WsHospitals()).getErrormsg());
  22 +
  23 + }
  24 +
  25 +}
platform-data-api/src/main/java/com/lyms/platform/data/web/ws/SoapV1ServiceImpl.java View file @ fe77b2c
  1 +package com.lyms.platform.data.web.ws;
  2 +
  3 +import com.lyms.platform.common.constants.WsConstants;
  4 +import com.lyms.platform.data.web.result.DefaultResult;
  5 +import com.lyms.platform.data.web.webparam.*;
  6 +import com.lyms.platform.data.web.ws.intf.SoapV1Service;
  7 +
  8 +import javax.jws.WebService;
  9 +
  10 +/**
  11 + * Created by riecard on 16/3/20.
  12 + */
  13 +@WebService(endpointInterface = "com.lyms.platform.data.web.ws.intf.SoapV1Service",targetNamespace= WsConstants.NS)
  14 +public class SoapV1ServiceImpl implements SoapV1Service {
  15 +
  16 + @Override
  17 + public DefaultResult addHospital(WsHospitals hospitals) {
  18 + System.out.println(hospitals);
  19 + return new DefaultResult("0", "success");
  20 + }
  21 +
  22 + @Override
  23 + public DefaultResult updateHospital(WsHospitals hospitals) {
  24 + System.out.println(hospitals);
  25 + return new DefaultResult("0", "success");
  26 + }
  27 +
  28 + @Override
  29 + public DefaultResult delHospital(String id) {
  30 + return new DefaultResult("0", "success");
  31 + }
  32 +
  33 + @Override
  34 + public DefaultResult addDoctor(WsDoctor doctor) {
  35 + return null;
  36 + }
  37 +
  38 + @Override
  39 + public DefaultResult updateDoctor(WsDoctor doctor) {
  40 + return null;
  41 + }
  42 +
  43 + @Override
  44 + public DefaultResult delDoctor(String id) {
  45 + return null;
  46 + }
  47 +
  48 + @Override
  49 + public DefaultResult addPatient(WsPatient patient) {
  50 + return null;
  51 + }
  52 +
  53 + @Override
  54 + public DefaultResult updatePatient(WsPatient patient) {
  55 + return null;
  56 + }
  57 +
  58 + @Override
  59 + public DefaultResult delPatient(String subId) {
  60 + return null;
  61 + }
  62 +
  63 + @Override
  64 + public DefaultResult addReport(WsReport report) {
  65 + return null;
  66 + }
  67 +
  68 + @Override
  69 + public DefaultResult updateReport(WsReport report) {
  70 + return null;
  71 + }
  72 +
  73 + @Override
  74 + public DefaultResult delReport(String id) {
  75 + return null;
  76 + }
  77 +
  78 + @Override
  79 + public DefaultResult addRisk(WsRisk risk) {
  80 + return null;
  81 + }
  82 +
  83 + @Override
  84 + public DefaultResult updateRisk(WsRisk risk) {
  85 + return null;
  86 + }
  87 +
  88 + @Override
  89 + public DefaultResult delRisk(String patientId) {
  90 + return null;
  91 + }
  92 +
  93 + @Override
  94 + public DefaultResult addEmergence(WsEmergence emergence) {
  95 + return null;
  96 + }
  97 +
  98 + @Override
  99 + public DefaultResult updateEmergence(String emergenceId, Integer status, String statusName) {
  100 + return null;
  101 + }
  102 +
  103 + @Override
  104 + public DefaultResult delEmergence(String emergenceId) {
  105 + return null;
  106 + }
  107 +
  108 + @Override
  109 + public DefaultResult addSickbedInfo(WsSickbedInfo sickbedInfo) {
  110 + return null;
  111 + }
  112 +
  113 + @Override
  114 + public DefaultResult updateSickbedOrder(String orderId, Integer status) {
  115 + return null;
  116 + }
  117 +}
platform-data-api/src/main/java/com/lyms/platform/data/web/ws/intf/IEmergenceServiceWs.java View file @ fe77b2c
1 1 package com.lyms.platform.data.web.ws.intf;
2 2  
3   -import javax.jws.WebParam;
4   -import javax.jws.WebService;
5   -
6 3 import com.lyms.platform.common.constants.WsConstants;
7 4 import com.lyms.platform.data.web.result.EmergenceResult;
  5 +import com.lyms.platform.data.web.result.Emergences;
8 6  
  7 +import javax.jws.WebParam;
  8 +import javax.jws.WebService;
  9 +
9 10 @WebService(targetNamespace=WsConstants.NS)
10 11 public interface IEmergenceServiceWs {
11 12  
12 13 EmergenceResult queryEmergences(@WebParam Integer page);
  14 +
  15 + EmergenceResult addEmergences(@WebParam Emergences emergences);
  16 +
13 17 }
platform-data-api/src/main/java/com/lyms/platform/data/web/ws/intf/SoapV1Service.java View file @ fe77b2c
  1 +package com.lyms.platform.data.web.ws.intf;
  2 +
  3 +import com.lyms.platform.common.constants.WsConstants;
  4 +import com.lyms.platform.data.web.result.DefaultResult;
  5 +import com.lyms.platform.data.web.webparam.*;
  6 +
  7 +import javax.jws.WebParam;
  8 +import javax.jws.WebService;
  9 +
  10 +/**
  11 + * Created by riecard on 16/3/20.
  12 + */
  13 +@WebService(targetNamespace= WsConstants.NS)
  14 +public interface SoapV1Service {
  15 +
  16 + DefaultResult addHospital(@WebParam WsHospitals hospitals);
  17 + DefaultResult updateHospital(@WebParam WsHospitals hospitals);
  18 + DefaultResult delHospital(@WebParam String id);
  19 +
  20 + DefaultResult addDoctor(@WebParam WsDoctor doctor);
  21 + DefaultResult updateDoctor(@WebParam WsDoctor doctor);
  22 + DefaultResult delDoctor(@WebParam String id);
  23 +
  24 + DefaultResult addPatient(@WebParam WsPatient patient);
  25 + DefaultResult updatePatient(@WebParam WsPatient patient);
  26 + DefaultResult delPatient(@WebParam String subId);
  27 +
  28 + DefaultResult addReport(@WebParam WsReport report);
  29 + DefaultResult updateReport(@WebParam WsReport report);
  30 + DefaultResult delReport(@WebParam String id);
  31 +
  32 + DefaultResult addRisk(@WebParam WsRisk risk);
  33 + DefaultResult updateRisk(@WebParam WsRisk risk);
  34 + DefaultResult delRisk(@WebParam String patientId);
  35 +
  36 + DefaultResult addEmergence(@WebParam WsEmergence emergence);
  37 + DefaultResult updateEmergence(@WebParam String emergenceId, @WebParam Integer status, @WebParam String statusName);
  38 + DefaultResult delEmergence(@WebParam String emergenceId);
  39 +
  40 + DefaultResult addSickbedInfo(@WebParam WsSickbedInfo sickbedInfo);
  41 +
  42 + DefaultResult updateSickbedOrder(@WebParam String orderId, @WebParam Integer status);
  43 +
  44 +}
platform-data-api/src/main/resources/spring/applicationContext-cxf.xml View file @ fe77b2c
... ... @@ -11,16 +11,21 @@
11 11 language governing permissions and limitations under the License. -->
12 12 <!-- START SNIPPET: beans -->
13 13 <beans xmlns="http://www.springframework.org/schema/beans"
14   - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws"
15   - xsi:schemaLocation=" http://www.springframework.org/schema/beans
  14 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws"
  15 + xsi:schemaLocation=" http://www.springframework.org/schema/beans
16 16 http://www.springframework.org/schema/beans/spring-beans.xsd
17 17 http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
18   - <import resource="classpath:META-INF/cxf/cxf.xml" />
19   - <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
20   -
21   - <jaxws:endpoint id="emergenceWs"
22   - implementor="com.lyms.platform.data.web.ws.EmergenceServiceWsImpl"
23   - address="/emergenceWs" />
  18 + <import resource="classpath:META-INF/cxf/cxf.xml"/>
  19 + <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
  20 +
  21 + <jaxws:endpoint id="emergenceWs"
  22 + implementor="com.lyms.platform.data.web.ws.EmergenceServiceWsImpl"
  23 + address="/emergenceWs"/>
  24 +
  25 + <jaxws:endpoint id="soapv1"
  26 + implementor="com.lyms.platform.data.web.ws.SoapV1ServiceImpl"
  27 + address="/v1"/>
  28 +
24 29 </beans>
25   -<!-- END SNIPPET: beans -->
  30 + <!-- END SNIPPET: beans -->