package com.yucheng.cmis.retailloan.intfservermanagement.pmwebservice.entity;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* 消息头
* @author Administrator
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "Application_Header")
@XmlType(propOrder = { "Channel", "CallType", "ApplicationNumber" })
public class ApplicationHeader {
private String Channel;
private String ApplicationNumber;
private String CallType;
public ApplicationHeader() {
super();
// TODO Auto-generated constructor stub
}
public ApplicationHeader(String channel, String applicationNumber,
String callType) {
super();
Channel = channel;
ApplicationNumber = applicationNumber;
CallType = callType;
}
public String getChannel() {
return Channel;
}
public void setChannel(String channel) {
Channel = channel;
}
public String getApplicationNumber() {
return ApplicationNumber;
}
public void setApplicationNumber(String applicationNumber) {
ApplicationNumber = applicationNumber;
}
public String getCallType() {
return CallType;
}
public void setCallType(String callType) {
CallType = callType;
}
}
package com.yucheng.cmis.retailloan.intfservermanagement.pmwebservice.entity;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "APS_Applicant")
@XmlType(propOrder = { "Name", "Gender", "Nation","Age","Birthday","Id_Type","Id_Number","Home_Address_State"
,"Home_Address_City","Home_Address_County","Home_Address_Street_Address"
,"Home_Address_Zip","Home_Phone","Mobile"})
public class APSApplicant {
private String Name;
private String Gender;
private String Nation;
private String Age;
private String Birthday;
private String Id_Type;
private String Id_Number;
private String Home_Address_State;
private String Home_Address_City;
private String Home_Address_County;
private String Home_Address_Street_Address;
private String Home_Address_Zip;
private String Home_Phone;
private String Mobile;
public APSApplicant() {
super();
// TODO Auto-generated constructor stub
}
public APSApplicant(String name, String gender, String nation, String age,
String birthday, String id_Type, String id_Number,
String home_Address_State, String home_Address_City,
String home_Address_County, String home_Address_Street_Address,
String home_Address_Zip, String home_Phone, String mobile) {
super();
Name = name;
Gender = gender;
Nation = nation;
Age = age;
Birthday = birthday;
Id_Type = id_Type;
Id_Number = id_Number;
Home_Address_State = home_Address_State;
Home_Address_City = home_Address_City;
Home_Address_County = home_Address_County;
Home_Address_Street_Address = home_Address_Street_Address;
Home_Address_Zip = home_Address_Zip;
Home_Phone = home_Phone;
Mobile = mobile;
}
public String getName() {
return Name;
}
public void setName(String name) {
Name = name;
}
public String getGender() {
return Gender;
}
public void setGender(String gender) {
Gender = gender;
}
public String getNation() {
return Nation;
}
public void setNation(String nation) {
Nation = nation;
}
public String getAge() {
return Age;
}
public void setAge(String age) {
Age = age;
}
public String getBirthday() {
return Birthday;
}
public void setBirthday(String birthday) {
Birthday = birthday;
}
public String getId_Type() {
return Id_Type;
}
public void setId_Type(String id_Type) {
Id_Type = id_Type;
}
public String getId_Number() {
return Id_Number;
}
public void setId_Number(String id_Number) {
Id_Number = id_Number;
}
public String getHome_Address_State() {
return Home_Address_State;
}
public void setHome_Address_State(String home_Address_State) {
Home_Address_State = home_Address_State;
}
public String getHome_Address_City() {
return Home_Address_City;
}
public void setHome_Address_City(String home_Address_City) {
Home_Address_City = home_Address_City;
}
public String getHome_Address_County() {
return Home_Address_County;
}
public void setHome_Address_County(String home_Address_County) {
Home_Address_County = home_Address_County;
}
public String getHome_Address_Street_Address() {
return Home_Address_Street_Address;
}
public void setHome_Address_Street_Address(String home_Address_Street_Address) {
Home_Address_Street_Address = home_Address_Street_Address;
}
public String getHome_Address_Zip() {
return Home_Address_Zip;
}
public void setHome_Address_Zip(String home_Address_Zip) {
Home_Address_Zip = home_Address_Zip;
}
public String getHome_Phone() {
return Home_Phone;
}
public void setHome_Phone(String home_Phone) {
Home_Phone = home_Phone;
}
public String getMobile() {
return Mobile;
}
public void setMobile(String mobile) {
Mobile = mobile;
}
}
package com.yucheng.cmis.retailloan.intfservermanagement.pmwebservice.entity;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "APS_Applicants")
@XmlType(propOrder = { "APS_Applicant" })
public class APSApplicants {
private APSApplicant APS_Applicant;
public APSApplicants() {
super();
// TODO Auto-generated constructor stub
}
public APSApplicants(APSApplicant aPS_Applicant) {
super();
APS_Applicant = aPS_Applicant;
}
public APSApplicant getAPS_Applicant() {
return APS_Applicant;
}
public void setAPS_Applicant(APSApplicant aPS_Applicant) {
APS_Applicant = aPS_Applicant;
}
}
package com.yucheng.cmis.retailloan.intfservermanagement.pmwebservice.entity;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name="APS_Application")
@XmlType(propOrder={"Organisation_Code","Country_Code","Group_Member_Code","Application_Number","Application_Date","Application_Type",
"Loan_Type","Survey_Phone","Channel_Mana_Phone"})
public class APSApplication {
private String Organisation_Code;
private String Country_Code;
private String Group_Member_Code;
private String Application_Number;
private String Application_Date;
private String Application_Type;
private String Loan_Type;
private String Survey_Phone;
private String Channel_Mana_Phone;
public APSApplication() {
super();
// TODO Auto-generated constructor stub
}
public APSApplication(String organisation_Code, String country_Code,
String group_Member_Code, String application_Number,
String application_Date, String application_Type, String loan_Type,
String survey_Phone, String channel_Mana_Phone) {
super();
Organisation_Code = organisation_Code;
Country_Code = country_Code;
Group_Member_Code = group_Member_Code;
Application_Number = application_Number;
Application_Date = application_Date;
Application_Type = application_Type;
Loan_Type = loan_Type;
Survey_Phone = survey_Phone;
Channel_Mana_Phone = channel_Mana_Phone;
}
public String getOrganisation_Code() {
return Organisation_Code;
}
public void setOrganisation_Code(String organisation_Code) {
Organisation_Code = organisation_Code;
}
public String getCountry_Code() {
return Country_Code;
}
public void setCountry_Code(String country_Code) {
Country_Code = country_Code;
}
public String getGroup_Member_Code() {
return Group_Member_Code;
}
public void setGroup_Member_Code(String group_Member_Code) {
Group_Member_Code = group_Member_Code;
}
public String getApplication_Number() {
return Application_Number;
}
public void setApplication_Number(String application_Number) {
Application_Number = application_Number;
}
public String getApplication_Date() {
return Application_Date;
}
public void setApplication_Date(String application_Date) {
Application_Date = application_Date;
}
public String getApplication_Type() {
return Application_Type;
}
public void setApplication_Type(String application_Type) {
Application_Type = application_Type;
}
public String getLoan_Type() {
return Loan_Type;
}
public void setLoan_Type(String loan_Type) {
Loan_Type = loan_Type;
}
public String getSurvey_Phone() {
return Survey_Phone;
}
public void setSurvey_Phone(String survey_Phone) {
Survey_Phone = survey_Phone;
}
public String getChannel_Mana_Phone() {
return Channel_Mana_Phone;
}
public void setChannel_Mana_Phone(String channel_Mana_Phone) {
Channel_Mana_Phone = channel_Mana_Phone;
}
}
package com.yucheng.cmis.retailloan.intfservermanagement.pmwebservice.entity;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "APS_Applications")
@XmlType(propOrder = { "APS_Application" })
public class APSApplications {
private APSApplication APS_Application;
public APSApplications() {
super();
// TODO Auto-generated constructor stub
}
public APSApplications(APSApplication aPS_Application) {
super();
APS_Application = aPS_Application;
}
public APSApplication getAPS_Application() {
return APS_Application;
}
public void setAPS_Application(APSApplication aPS_Application) {
APS_Application = aPS_Application;
}
}
package com.yucheng.cmis.retailloan.intfservermanagement.pmwebservice.entity;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "APS_OtherInfo3")
@XmlType(propOrder = {"Mechan_Name","Code","Unit_Phohe","Office_Addr_Province","Office_Addr_City","Office_Addr_District"
,"Office_Addr_Detail","Lepe_Phone","Lepe_Idnum","Lepe_Addr_Province","Lepe_Addr_City","Lepe_Addr_District","Lepe_Addr_Detail"
,"Cooper_Company","Asset_Institutions","Register_Address_Province","Register_Address_City","Register_Address_District"
,"Register_Address_Detail","Busi_Phone"})
public class APSOtherInfo3 {
private String Mechan_Name;
private String Code;
private String Unit_Phohe;
private String Office_Addr_Province;
private String Office_Addr_City;
private String Office_Addr_District;
private String Office_Addr_Detail;
private String Lepe_Phone;
private String Lepe_Idnum;
private String Lepe_Addr_Province;
private String Lepe_Addr_City;
private String Lepe_Addr_District;
private String Lepe_Addr_Detail;
private String Cooper_Company;
private String Asset_Institutions;
private String Register_Address_Province;
private String Register_Address_City;
private String Register_Address_District;
private String Register_Address_Detail;
private String Busi_Phone;
public APSOtherInfo3() {
super();
// TODO Auto-generated constructor stub
}
public APSOtherInfo3(String mechan_Name, String code, String unit_Phohe,
String office_Addr_Province, String office_Addr_City,
String office_Addr_District, String office_Addr_Detail,
String lepe_Phone, String lepe_Idnum, String lepe_Addr_Province,
String lepe_Addr_City, String lepe_Addr_District,
String lepe_Addr_Detail, String cooper_Company,
String asset_Institutions, String register_Address_Province,
String register_Address_City, String register_Address_District,
String register_Address_Detail, String busi_Phone) {
super();
Mechan_Name = mechan_Name;
Code = code;
Unit_Phohe = unit_Phohe;
Office_Addr_Province = office_Addr_Province;
Office_Addr_City = office_Addr_City;
Office_Addr_District = office_Addr_District;
Office_Addr_Detail = office_Addr_Detail;
Lepe_Phone = lepe_Phone;
Lepe_Idnum = lepe_Idnum;
Lepe_Addr_Province = lepe_Addr_Province;
Lepe_Addr_City = lepe_Addr_City;
Lepe_Addr_District = lepe_Addr_District;
Lepe_Addr_Detail = lepe_Addr_Detail;
Cooper_Company = cooper_Company;
Asset_Institutions = asset_Institutions;
Register_Address_Province = register_Address_Province;
Register_Address_City = register_Address_City;
Register_Address_District = register_Address_District;
Register_Address_Detail = register_Address_Detail;
Busi_Phone = busi_Phone;
}
public String getMechan_Name() {
return Mechan_Name;
}
public void setMechan_Name(String mechan_Name) {
Mechan_Name = mechan_Name;
}
public String getCode() {
return Code;
}
public void setCode(String code) {
Code = code;
}
public String getUnit_Phohe() {
return Unit_Phohe;
}
public void setUnit_Phohe(String unit_Phohe) {
Unit_Phohe = unit_Phohe;
}
public String getOffice_Addr_Province() {
return Office_Addr_Province;
}
public void setOffice_Addr_Province(String office_Addr_Province) {
Office_Addr_Province = office_Addr_Province;
}
public String getOffice_Addr_City() {
return Office_Addr_City;
}
public void setOffice_Addr_City(String office_Addr_City) {
Office_Addr_City = office_Addr_City;
}
public String getOffice_Addr_District() {
return Office_Addr_District;
}
public void setOffice_Addr_District(String office_Addr_District) {
Office_Addr_District = office_Addr_District;
}
public String getOffice_Addr_Detail() {
return Office_Addr_Detail;
}
public void setOffice_Addr_Detail(String office_Addr_Detail) {
Office_Addr_Detail = office_Addr_Detail;
}
public String getLepe_Phone() {
return Lepe_Phone;
}
public void setLepe_Phone(String lepe_Phone) {
Lepe_Phone = lepe_Phone;
}
public String getLepe_Idnum() {
return Lepe_Idnum;
}
public void setLepe_Idnum(String lepe_Idnum) {
Lepe_Idnum = lepe_Idnum;
}
public String getLepe_Addr_Province() {
return Lepe_Addr_Province;
}
public void setLepe_Addr_Province(String lepe_Addr_Province) {
Lepe_Addr_Province = lepe_Addr_Province;
}
public String getLepe_Addr_City() {
return Lepe_Addr_City;
}
public void setLepe_Addr_City(String lepe_Addr_City) {
Lepe_Addr_City = lepe_Addr_City;
}
public String getLepe_Addr_District() {
return Lepe_Addr_District;
}
public void setLepe_Addr_District(String lepe_Addr_District) {
Lepe_Addr_District = lepe_Addr_District;
}
public String getLepe_Addr_Detail() {
return Lepe_Addr_Detail;
}
public void setLepe_Addr_Detail(String lepe_Addr_Detail) {
Lepe_Addr_Detail = lepe_Addr_Detail;
}
public String getCooper_Company() {
return Cooper_Company;
}
public void setCooper_Company(String cooper_Company) {
Cooper_Company = cooper_Company;
}
public String getAsset_Institutions() {
return Asset_Institutions;
}
public void setAsset_Institutions(String asset_Institutions) {
Asset_Institutions = asset_Institutions;
}
public String getRegister_Address_Province() {
return Register_Address_Province;
}
public void setRegister_Address_Province(String register_Address_Province) {
Register_Address_Province = register_Address_Province;
}
public String getRegister_Address_City() {
return Register_Address_City;
}
public void setRegister_Address_City(String register_Address_City) {
Register_Address_City = register_Address_City;
}
public String getRegister_Address_District() {
return Register_Address_District;
}
public void setRegister_Address_District(String register_Address_District) {
Register_Address_District = register_Address_District;
}
public String getRegister_Address_Detail() {
return Register_Address_Detail;
}
public void setRegister_Address_Detail(String register_Address_Detail) {
Register_Address_Detail = register_Address_Detail;
}
public String getBusi_Phone() {
return Busi_Phone;
}
public void setBusi_Phone(String busi_Phone) {
Busi_Phone = busi_Phone;
}
}
package com.yucheng.cmis.retailloan.intfservermanagement.pmwebservice.entity;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "APS_OtherInfo3s")
@XmlType(propOrder = {"APS_OtherInfo3"})
public class APSOtherInfo3s {
private APSOtherInfo3 APS_OtherInfo3;
public APSOtherInfo3s() {
super();
// TODO Auto-generated constructor stub
}
public APSOtherInfo3s(APSOtherInfo3 aPS_OtherInfo3) {
super();
APS_OtherInfo3 = aPS_OtherInfo3;
}
public APSOtherInfo3 getAPS_OtherInfo3() {
return APS_OtherInfo3;
}
public void setAPS_OtherInfo3(APSOtherInfo3 aPS_OtherInfo3) {
APS_OtherInfo3 = aPS_OtherInfo3;
}
}
package com.yucheng.cmis.retailloan.intfservermanagement.client.util;
import java.io.StringWriter;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
public class Object2Xml {
/**
* 将对象直接转换成String类型的 XML输出
*
* @param obj
* @return
*/
public static String beanToXml(Object obj, java.lang.Class> load)
throws JAXBException {
JAXBContext context = JAXBContext.newInstance(load);
Marshaller marshaller = context.createMarshaller();
//格式化输出xml
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
//设置输出xml编码格式
// marshaller.setProperty(Marshaller.JAXB_ENCODING, "utf-8");
StringWriter writer = new StringWriter();
marshaller.marshal(obj, writer);
//去掉standalone属性
return writer.toString().replace("standalone=\"yes\"", "");
}
}