Commit 89172829 authored by Quxl's avatar Quxl

x

parent 1eb984f0
...@@ -19,11 +19,11 @@ import org.springframework.beans.factory.annotation.Value; ...@@ -19,11 +19,11 @@ import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import com.egolm.sso.service.MaterialMasterService; import com.egolm.sso.services.confirm_quotation.ConfirmQuotationService;
import com.egolm.sso.service.PriceListService; import com.egolm.sso.services.material_master.MaterialMasterService;
import com.egolm.sso.service.ProFormaInvoiceService; import com.egolm.sso.services.preform_invoice.PoformaInvoiceService;
import com.egolm.sso.service.ShippingNotificationService; import com.egolm.sso.services.price_list.PriceListService;
import com.egolm.sso.service.SoConfirmQuotationService; import com.egolm.sso.services.shipping_notfirmation.ShippingNotificationService;
@Configuration @Configuration
...@@ -52,18 +52,18 @@ public class WsConfig { ...@@ -52,18 +52,18 @@ public class WsConfig {
} }
@Bean @Bean
public Endpoint getProFormaInvoicePoint(ProFormaInvoiceService priceListService) { public Endpoint getProFormaInvoicePoint(PoformaInvoiceService priceListService) {
EndpointImpl endpoint = new EndpointImpl(bus, priceListService); EndpointImpl endpoint = new EndpointImpl(bus, priceListService);
endpoint.setInInterceptors(Arrays.asList(authInterceptor)); endpoint.setInInterceptors(Arrays.asList(authInterceptor));
endpoint.publish("/pro_forma_invoice"); endpoint.publish("/prforma_invoice");
return endpoint; return endpoint;
} }
@Bean @Bean
public Endpoint getSoConfirmQuotationPoint(SoConfirmQuotationService soConfirmQuotationService) { public Endpoint getSoConfirmQuotationPoint(ConfirmQuotationService soConfirmQuotationService) {
EndpointImpl endpoint = new EndpointImpl(bus, soConfirmQuotationService); EndpointImpl endpoint = new EndpointImpl(bus, soConfirmQuotationService);
endpoint.setInInterceptors(Arrays.asList(authInterceptor)); endpoint.setInInterceptors(Arrays.asList(authInterceptor));
endpoint.publish("/so_confirm_quotation"); endpoint.publish("/confirm_quotation");
return endpoint; return endpoint;
} }
......
package com.egolm.sso.service;
import javax.jws.WebMethod;
import javax.jws.WebService;
@WebService(targetNamespace = "http://pro_forma_invoice.sso.egolm.com")
public interface ProFormaInvoiceService {
@WebMethod
public void execute(String xml);
}
package com.egolm.sso.service;
import javax.jws.WebMethod;
import javax.jws.WebService;
@WebService(targetNamespace = "http://so-confirm-quotation.sso.egolm.com")
public interface SoConfirmQuotationService {
@WebMethod
public void execute(String xml);
}
package com.egolm.sso.services.confirm_quotation;
import javax.jws.WebMethod;
import javax.jws.WebService;
@WebService(targetNamespace = "http://confirm_quotation.sso.egolm.com")
public interface ConfirmQuotationService {
@WebMethod
public void execute(Z_MT_SD_008_SO_CONFIRM_QUOTATION Z_MT_SD_008_SO_CONFIRM_QUOTATION);
}
package com.egolm.sso.bean; package com.egolm.sso.services.confirm_quotation;
import java.util.List; import java.util.List;
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlType;
@XmlType(name = "Z_MT_SD_008_SO_CONFIRM_QUOTATION")
@XmlType
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name="Z_MT_SD_008_SO_CONFIRM_QUOTATION", namespace="http://schneider-distributor.com/")
public class Z_MT_SD_008_SO_CONFIRM_QUOTATION { public class Z_MT_SD_008_SO_CONFIRM_QUOTATION {
RESPONSE RESPONSE; RESPONSE RESPONSE;
public RESPONSE getRESPONSE() { public RESPONSE getRESPONSE() {
return RESPONSE; return RESPONSE;
} }
...@@ -23,45 +20,59 @@ public class Z_MT_SD_008_SO_CONFIRM_QUOTATION { ...@@ -23,45 +20,59 @@ public class Z_MT_SD_008_SO_CONFIRM_QUOTATION {
RESPONSE = rESPONSE; RESPONSE = rESPONSE;
} }
public static class RESPONSE{ @XmlType(name = "RESPONSE")
@XmlAccessorType(XmlAccessType.FIELD)
public static class RESPONSE {
String VBELN; String VBELN;
String MESSAGE; String MESSAGE;
HEADER HEADER; HEADER HEADER;
List<ITEM_DATA> ITEM_DATA; List<ITEM_DATA> ITEM_DATA;
List<ITEM_PRICING> ITEM_PRICING; List<ITEM_PRICING> ITEM_PRICING;
public String getVBELN() { public String getVBELN() {
return VBELN; return VBELN;
} }
public void setVBELN(String vBELN) { public void setVBELN(String vBELN) {
VBELN = vBELN; VBELN = vBELN;
} }
public String getMESSAGE() { public String getMESSAGE() {
return MESSAGE; return MESSAGE;
} }
public void setMESSAGE(String mESSAGE) { public void setMESSAGE(String mESSAGE) {
MESSAGE = mESSAGE; MESSAGE = mESSAGE;
} }
public HEADER getHEADER() { public HEADER getHEADER() {
return HEADER; return HEADER;
} }
public void setHEADER(HEADER hEADER) { public void setHEADER(HEADER hEADER) {
HEADER = hEADER; HEADER = hEADER;
} }
public List<ITEM_DATA> getITEM_DATA() { public List<ITEM_DATA> getITEM_DATA() {
return ITEM_DATA; return ITEM_DATA;
} }
public void setITEM_DATA(List<ITEM_DATA> iTEM_DATA) { public void setITEM_DATA(List<ITEM_DATA> iTEM_DATA) {
ITEM_DATA = iTEM_DATA; ITEM_DATA = iTEM_DATA;
} }
public List<ITEM_PRICING> getITEM_PRICING() { public List<ITEM_PRICING> getITEM_PRICING() {
return ITEM_PRICING; return ITEM_PRICING;
} }
public void setITEM_PRICING(List<ITEM_PRICING> iTEM_PRICING) { public void setITEM_PRICING(List<ITEM_PRICING> iTEM_PRICING) {
ITEM_PRICING = iTEM_PRICING; ITEM_PRICING = iTEM_PRICING;
} }
} }
public static class HEADER{ @XmlType(name = "HEADER")
@XmlAccessorType(XmlAccessType.FIELD)
public static class HEADER {
String BSTKD_E; String BSTKD_E;
String VBELN; String VBELN;
String VKORG; String VKORG;
...@@ -85,148 +96,196 @@ public class Z_MT_SD_008_SO_CONFIRM_QUOTATION { ...@@ -85,148 +96,196 @@ public class Z_MT_SD_008_SO_CONFIRM_QUOTATION {
String MWSTH; String MWSTH;
String WAERK; String WAERK;
String DPFLAG; String DPFLAG;
public String getBSTKD_E() { public String getBSTKD_E() {
return BSTKD_E; return BSTKD_E;
} }
public void setBSTKD_E(String bSTKD_E) { public void setBSTKD_E(String bSTKD_E) {
BSTKD_E = bSTKD_E; BSTKD_E = bSTKD_E;
} }
public String getVBELN() { public String getVBELN() {
return VBELN; return VBELN;
} }
public void setVBELN(String vBELN) { public void setVBELN(String vBELN) {
VBELN = vBELN; VBELN = vBELN;
} }
public String getVKORG() { public String getVKORG() {
return VKORG; return VKORG;
} }
public void setVKORG(String vKORG) { public void setVKORG(String vKORG) {
VKORG = vKORG; VKORG = vKORG;
} }
public String getVTWEG() { public String getVTWEG() {
return VTWEG; return VTWEG;
} }
public void setVTWEG(String vTWEG) { public void setVTWEG(String vTWEG) {
VTWEG = vTWEG; VTWEG = vTWEG;
} }
public String getSPART() { public String getSPART() {
return SPART; return SPART;
} }
public void setSPART(String sPART) { public void setSPART(String sPART) {
SPART = sPART; SPART = sPART;
} }
public String getERNAM() { public String getERNAM() {
return ERNAM; return ERNAM;
} }
public void setERNAM(String eRNAM) { public void setERNAM(String eRNAM) {
ERNAM = eRNAM; ERNAM = eRNAM;
} }
public String getBSTDK() { public String getBSTDK() {
return BSTDK; return BSTDK;
} }
public void setBSTDK(String bSTDK) { public void setBSTDK(String bSTDK) {
BSTDK = bSTDK; BSTDK = bSTDK;
} }
public String getERZET() { public String getERZET() {
return ERZET; return ERZET;
} }
public void setERZET(String eRZET) { public void setERZET(String eRZET) {
ERZET = eRZET; ERZET = eRZET;
} }
public String getERDAT() { public String getERDAT() {
return ERDAT; return ERDAT;
} }
public void setERDAT(String eRDAT) { public void setERDAT(String eRDAT) {
ERDAT = eRDAT; ERDAT = eRDAT;
} }
public String getKUNNR() { public String getKUNNR() {
return KUNNR; return KUNNR;
} }
public void setKUNNR(String kUNNR) { public void setKUNNR(String kUNNR) {
KUNNR = kUNNR; KUNNR = kUNNR;
} }
public String getKGNNR() { public String getKGNNR() {
return KGNNR; return KGNNR;
} }
public void setKGNNR(String kGNNR) { public void setKGNNR(String kGNNR) {
KGNNR = kGNNR; KGNNR = kGNNR;
} }
public String getNAME1() { public String getNAME1() {
return NAME1; return NAME1;
} }
public void setNAME1(String nAME1) { public void setNAME1(String nAME1) {
NAME1 = nAME1; NAME1 = nAME1;
} }
public String getNAME2() { public String getNAME2() {
return NAME2; return NAME2;
} }
public void setNAME2(String nAME2) { public void setNAME2(String nAME2) {
NAME2 = nAME2; NAME2 = nAME2;
} }
public String getPOSTL_COD1() { public String getPOSTL_COD1() {
return POSTL_COD1; return POSTL_COD1;
} }
public void setPOSTL_COD1(String pOSTL_COD1) { public void setPOSTL_COD1(String pOSTL_COD1) {
POSTL_COD1 = pOSTL_COD1; POSTL_COD1 = pOSTL_COD1;
} }
public String getCITY1() { public String getCITY1() {
return CITY1; return CITY1;
} }
public void setCITY1(String cITY1) { public void setCITY1(String cITY1) {
CITY1 = cITY1; CITY1 = cITY1;
} }
public String getZZPROM() { public String getZZPROM() {
return ZZPROM; return ZZPROM;
} }
public void setZZPROM(String zZPROM) { public void setZZPROM(String zZPROM) {
ZZPROM = zZPROM; ZZPROM = zZPROM;
} }
public String getBSTKD() { public String getBSTKD() {
return BSTKD; return BSTKD;
} }
public void setBSTKD(String bSTKD) { public void setBSTKD(String bSTKD) {
BSTKD = bSTKD; BSTKD = bSTKD;
} }
public String getAUART() { public String getAUART() {
return AUART; return AUART;
} }
public void setAUART(String aUART) { public void setAUART(String aUART) {
AUART = aUART; AUART = aUART;
} }
public String getCMGST() { public String getCMGST() {
return CMGST; return CMGST;
} }
public void setCMGST(String cMGST) { public void setCMGST(String cMGST) {
CMGST = cMGST; CMGST = cMGST;
} }
public String getNETWRH() { public String getNETWRH() {
return NETWRH; return NETWRH;
} }
public void setNETWRH(String nETWRH) { public void setNETWRH(String nETWRH) {
NETWRH = nETWRH; NETWRH = nETWRH;
} }
public String getMWSTH() { public String getMWSTH() {
return MWSTH; return MWSTH;
} }
public void setMWSTH(String mWSTH) { public void setMWSTH(String mWSTH) {
MWSTH = mWSTH; MWSTH = mWSTH;
} }
public String getWAERK() { public String getWAERK() {
return WAERK; return WAERK;
} }
public void setWAERK(String wAERK) { public void setWAERK(String wAERK) {
WAERK = wAERK; WAERK = wAERK;
} }
public String getDPFLAG() { public String getDPFLAG() {
return DPFLAG; return DPFLAG;
} }
public void setDPFLAG(String dPFLAG) { public void setDPFLAG(String dPFLAG) {
DPFLAG = dPFLAG; DPFLAG = dPFLAG;
} }
} }
public static class ITEM_DATA{ @XmlType(name = "ITEM_DATA")
@XmlAccessorType(XmlAccessType.FIELD)
public static class ITEM_DATA {
String POSNR; String POSNR;
String UEPOS; String UEPOS;
String VTEXT; String VTEXT;
...@@ -246,156 +305,206 @@ public class Z_MT_SD_008_SO_CONFIRM_QUOTATION { ...@@ -246,156 +305,206 @@ public class Z_MT_SD_008_SO_CONFIRM_QUOTATION {
String NAME2_I; String NAME2_I;
String POSTL_COD1_I; String POSTL_COD1_I;
String CITY1_I; String CITY1_I;
public String getPOSNR() { public String getPOSNR() {
return POSNR; return POSNR;
} }
public void setPOSNR(String pOSNR) { public void setPOSNR(String pOSNR) {
POSNR = pOSNR; POSNR = pOSNR;
} }
public String getUEPOS() { public String getUEPOS() {
return UEPOS; return UEPOS;
} }
public void setUEPOS(String uEPOS) { public void setUEPOS(String uEPOS) {
UEPOS = uEPOS; UEPOS = uEPOS;
} }
public String getVTEXT() { public String getVTEXT() {
return VTEXT; return VTEXT;
} }
public void setVTEXT(String vTEXT) { public void setVTEXT(String vTEXT) {
VTEXT = vTEXT; VTEXT = vTEXT;
} }
public String getMATNR() { public String getMATNR() {
return MATNR; return MATNR;
} }
public void setMATNR(String mATNR) { public void setMATNR(String mATNR) {
MATNR = mATNR; MATNR = mATNR;
} }
public String getKWMENG() { public String getKWMENG() {
return KWMENG; return KWMENG;
} }
public void setKWMENG(String kWMENG) { public void setKWMENG(String kWMENG) {
KWMENG = kWMENG; KWMENG = kWMENG;
} }
public String getVRKME() { public String getVRKME() {
return VRKME; return VRKME;
} }
public void setVRKME(String vRKME) { public void setVRKME(String vRKME) {
VRKME = vRKME; VRKME = vRKME;
} }
public String getEDATU() { public String getEDATU() {
return EDATU; return EDATU;
} }
public void setEDATU(String eDATU) { public void setEDATU(String eDATU) {
EDATU = eDATU; EDATU = eDATU;
} }
public String getCDATE() { public String getCDATE() {
return CDATE; return CDATE;
} }
public void setCDATE(String cDATE) { public void setCDATE(String cDATE) {
CDATE = cDATE; CDATE = cDATE;
} }
public String getREFLAG() { public String getREFLAG() {
return REFLAG; return REFLAG;
} }
public void setREFLAG(String rEFLAG) { public void setREFLAG(String rEFLAG) {
REFLAG = rEFLAG; REFLAG = rEFLAG;
} }
public String getMWSTI() { public String getMWSTI() {
return MWSTI; return MWSTI;
} }
public void setMWSTI(String mWSTI) { public void setMWSTI(String mWSTI) {
MWSTI = mWSTI; MWSTI = mWSTI;
} }
public String getNETWRI() { public String getNETWRI() {
return NETWRI; return NETWRI;
} }
public void setNETWRI(String nETWRI) { public void setNETWRI(String nETWRI) {
NETWRI = nETWRI; NETWRI = nETWRI;
} }
public String getWAERK_I() { public String getWAERK_I() {
return WAERK_I; return WAERK_I;
} }
public void setWAERK_I(String wAERK_I) { public void setWAERK_I(String wAERK_I) {
WAERK_I = wAERK_I; WAERK_I = wAERK_I;
} }
public String getWERKS() { public String getWERKS() {
return WERKS; return WERKS;
} }
public void setWERKS(String wERKS) { public void setWERKS(String wERKS) {
WERKS = wERKS; WERKS = wERKS;
} }
public String getZZCRDDATE() { public String getZZCRDDATE() {
return ZZCRDDATE; return ZZCRDDATE;
} }
public void setZZCRDDATE(String zZCRDDATE) { public void setZZCRDDATE(String zZCRDDATE) {
ZZCRDDATE = zZCRDDATE; ZZCRDDATE = zZCRDDATE;
} }
public String getKGNNR_I() { public String getKGNNR_I() {
return KGNNR_I; return KGNNR_I;
} }
public void setKGNNR_I(String kGNNR_I) { public void setKGNNR_I(String kGNNR_I) {
KGNNR_I = kGNNR_I; KGNNR_I = kGNNR_I;
} }
public String getNAME1_I() { public String getNAME1_I() {
return NAME1_I; return NAME1_I;
} }
public void setNAME1_I(String nAME1_I) { public void setNAME1_I(String nAME1_I) {
NAME1_I = nAME1_I; NAME1_I = nAME1_I;
} }
public String getNAME2_I() { public String getNAME2_I() {
return NAME2_I; return NAME2_I;
} }
public void setNAME2_I(String nAME2_I) { public void setNAME2_I(String nAME2_I) {
NAME2_I = nAME2_I; NAME2_I = nAME2_I;
} }
public String getPOSTL_COD1_I() { public String getPOSTL_COD1_I() {
return POSTL_COD1_I; return POSTL_COD1_I;
} }
public void setPOSTL_COD1_I(String pOSTL_COD1_I) { public void setPOSTL_COD1_I(String pOSTL_COD1_I) {
POSTL_COD1_I = pOSTL_COD1_I; POSTL_COD1_I = pOSTL_COD1_I;
} }
public String getCITY1_I() { public String getCITY1_I() {
return CITY1_I; return CITY1_I;
} }
public void setCITY1_I(String cITY1_I) { public void setCITY1_I(String cITY1_I) {
CITY1_I = cITY1_I; CITY1_I = cITY1_I;
} }
} }
public static class ITEM_PRICING{ @XmlType(name = "ITEM_PRICING")
@XmlAccessorType(XmlAccessType.FIELD)
public static class ITEM_PRICING {
String POSNR; String POSNR;
String KSCHL; String KSCHL;
String VTEXT; String VTEXT;
String KBETR; String KBETR;
String KWERT; String KWERT;
public String getPOSNR() { public String getPOSNR() {
return POSNR; return POSNR;
} }
public void setPOSNR(String pOSNR) { public void setPOSNR(String pOSNR) {
POSNR = pOSNR; POSNR = pOSNR;
} }
public String getKSCHL() { public String getKSCHL() {
return KSCHL; return KSCHL;
} }
public void setKSCHL(String kSCHL) { public void setKSCHL(String kSCHL) {
KSCHL = kSCHL; KSCHL = kSCHL;
} }
public String getVTEXT() { public String getVTEXT() {
return VTEXT; return VTEXT;
} }
public void setVTEXT(String vTEXT) { public void setVTEXT(String vTEXT) {
VTEXT = vTEXT; VTEXT = vTEXT;
} }
public String getKBETR() { public String getKBETR() {
return KBETR; return KBETR;
} }
public void setKBETR(String kBETR) { public void setKBETR(String kBETR) {
KBETR = kBETR; KBETR = kBETR;
} }
public String getKWERT() { public String getKWERT() {
return KWERT; return KWERT;
} }
public void setKWERT(String kWERT) { public void setKWERT(String kWERT) {
KWERT = kWERT; KWERT = kWERT;
} }
......
package com.egolm.sso.service; package com.egolm.sso.services.material_master;
import javax.jws.WebMethod; import javax.jws.WebMethod;
import javax.jws.WebService; import javax.jws.WebService;
...@@ -7,6 +7,6 @@ import javax.jws.WebService; ...@@ -7,6 +7,6 @@ import javax.jws.WebService;
public interface MaterialMasterService { public interface MaterialMasterService {
@WebMethod @WebMethod
public void execute(String xml); public void execute(Z_MT_SD_001_MATERIAL_MASTER Z_MT_SD_001_MATERIAL_MASTER);
} }
package com.egolm.sso.service.impl; package com.egolm.sso.services.material_master;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
...@@ -6,28 +6,23 @@ import java.util.HashMap; ...@@ -6,28 +6,23 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Map.Entry; import java.util.Map.Entry;
import java.util.regex.Pattern;
import javax.jws.WebService; import javax.jws.WebService;
import org.dom4j.Element;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import com.alibaba.fastjson.JSON;
import com.egolm.sso.bean.Z_MT_SD_001_MATERIAL_MASTER;
import com.egolm.sso.bean.Z_MT_SD_001_MATERIAL_MASTER.HEADER_SENDING;
import com.egolm.sso.bean.Z_MT_SD_001_MATERIAL_MASTER.ITEM;
import com.egolm.sso.bean.Z_MT_SD_001_MATERIAL_MASTER.RECORD;
import com.egolm.sso.service.CommonService; import com.egolm.sso.service.CommonService;
import com.egolm.sso.service.MaterialMasterService; import com.egolm.sso.services.material_master.Z_MT_SD_001_MATERIAL_MASTER.HEADER_SENDING;
import com.egolm.sso.services.material_master.Z_MT_SD_001_MATERIAL_MASTER.ITEM;
import com.egolm.sso.services.material_master.Z_MT_SD_001_MATERIAL_MASTER.RECORD;
import com.egolm.sso.util.DateUtil; import com.egolm.sso.util.DateUtil;
import com.egolm.sso.util.StringUtil; import com.egolm.sso.util.StringUtil;
import com.egolm.sso.util.XMLUtil; import com.google.gson.Gson;
@Component @Component
@WebService(serviceName = "MaterialMasterService", targetNamespace = "http://material_master.sso.egolm.com", endpointInterface = "com.egolm.sso.service.MaterialMasterService") @WebService(serviceName = "MaterialMasterService", targetNamespace = "http://material_master.sso.egolm.com", endpointInterface = "com.egolm.sso.services.material_master.MaterialMasterService")
public class MaterialMasterServiceImpl implements MaterialMasterService { public class MaterialMasterServiceImpl implements MaterialMasterService {
@Autowired @Autowired
...@@ -35,19 +30,12 @@ public class MaterialMasterServiceImpl implements MaterialMasterService { ...@@ -35,19 +30,12 @@ public class MaterialMasterServiceImpl implements MaterialMasterService {
@Autowired @Autowired
CommonService common; CommonService common;
@Override @Override
public void execute(String xml) { public void execute(Z_MT_SD_001_MATERIAL_MASTER Z_MT_SD_001_MATERIAL_MASTER) {
System.out.println(new Gson().toJson(Z_MT_SD_001_MATERIAL_MASTER));
Date now = new Date(); Date now = new Date();
String today = DateUtil.formatDate(now, DateUtil.FMT_DATE); String today = DateUtil.formatDate(now, DateUtil.FMT_DATE);
Long time = now.getTime();
String regex = "xmlns:[a-zA-Z\\d]+=\"[a-zA-Z]+:\\S+\"";
xml = xml.replaceAll("<[a-zA-Z\\d]+:", "<");
xml = xml.replaceAll("</[a-zA-Z\\d]+:", "</");
xml = xml.replaceAll(regex, "");
Z_MT_SD_001_MATERIAL_MASTER Z_MT_SD_001_MATERIAL_MASTER = XMLUtil.toBeanByJxab(xml, Z_MT_SD_001_MATERIAL_MASTER.class);
RECORD RECORD = Z_MT_SD_001_MATERIAL_MASTER.getRECORD(); RECORD RECORD = Z_MT_SD_001_MATERIAL_MASTER.getRECORD();
HEADER_SENDING h = RECORD.getHEADER_SENDING(); HEADER_SENDING h = RECORD.getHEADER_SENDING();
......
package com.egolm.sso.bean; package com.egolm.sso.services.material_master;
import java.util.List; import java.util.List;
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlType;
@XmlType @XmlType(name = "Z_MT_SD_001_MATERIAL_MASTER")
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name="Z_MT_SD_001_MATERIAL_MASTER")
public class Z_MT_SD_001_MATERIAL_MASTER { public class Z_MT_SD_001_MATERIAL_MASTER {
RECORD RECORD; RECORD RECORD;
...@@ -23,6 +21,8 @@ public class Z_MT_SD_001_MATERIAL_MASTER { ...@@ -23,6 +21,8 @@ public class Z_MT_SD_001_MATERIAL_MASTER {
RECORD = rECORD; RECORD = rECORD;
} }
@XmlType(name = "RECORD")
@XmlAccessorType(XmlAccessType.FIELD)
public static class RECORD{ public static class RECORD{
HEADER_SENDING HEADER_SENDING; HEADER_SENDING HEADER_SENDING;
List<ITEM> ITEM; List<ITEM> ITEM;
...@@ -41,6 +41,8 @@ public class Z_MT_SD_001_MATERIAL_MASTER { ...@@ -41,6 +41,8 @@ public class Z_MT_SD_001_MATERIAL_MASTER {
} }
@XmlType(name = "HEADER_SENDING")
@XmlAccessorType(XmlAccessType.FIELD)
public static class HEADER_SENDING{ public static class HEADER_SENDING{
String KUNNR; String KUNNR;
String DATUM; String DATUM;
...@@ -66,6 +68,8 @@ public class Z_MT_SD_001_MATERIAL_MASTER { ...@@ -66,6 +68,8 @@ public class Z_MT_SD_001_MATERIAL_MASTER {
} }
@XmlType(name = "ITEM")
@XmlAccessorType(XmlAccessType.FIELD)
public static class ITEM{ public static class ITEM{
String MATNR; String MATNR;
String BRGEW; String BRGEW;
......
package com.egolm.sso.services.preform_invoice;
import javax.jws.WebMethod;
import javax.jws.WebService;
@WebService(targetNamespace = "http://preform_invoice.sso.egolm.com")
public interface PoformaInvoiceService {
@WebMethod
public void execute(Z_MT_SD_005_PERFORM_INVOICE Z_MT_SD_005_PERFORM_INVOICE);
}
package com.egolm.sso.service.impl; package com.egolm.sso.services.preform_invoice;
import java.io.IOException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
...@@ -12,50 +11,43 @@ import javax.jws.WebService; ...@@ -12,50 +11,43 @@ import javax.jws.WebService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import com.egolm.sso.bean.Z_MT_SD_005_PERFORM_INVOICE;
import com.egolm.sso.bean.Z_MT_SD_005_PERFORM_INVOICE.HEADER_BANK_DATA;
import com.egolm.sso.bean.Z_MT_SD_005_PERFORM_INVOICE.HEADER_DOCU_DATE;
import com.egolm.sso.bean.Z_MT_SD_005_PERFORM_INVOICE.HEADER_GENERAL_DATA;
import com.egolm.sso.bean.Z_MT_SD_005_PERFORM_INVOICE.HEADER_ORGANIZATIONAL_DATA;
import com.egolm.sso.bean.Z_MT_SD_005_PERFORM_INVOICE.HEADER_PARTNER_DATA;
import com.egolm.sso.bean.Z_MT_SD_005_PERFORM_INVOICE.HEADER_REFERENCE_DATA;
import com.egolm.sso.bean.Z_MT_SD_005_PERFORM_INVOICE.ITEM_AMOUNT_DATA;
import com.egolm.sso.bean.Z_MT_SD_005_PERFORM_INVOICE.ITEM_DATA;
import com.egolm.sso.bean.Z_MT_SD_005_PERFORM_INVOICE.ITEM_MATERIAL_DATA;
import com.egolm.sso.bean.Z_MT_SD_005_PERFORM_INVOICE.ITEM_REFERENCE_DATA;
import com.egolm.sso.bean.Z_MT_SD_005_PERFORM_INVOICE.ITEM_REFERENCE_PO_TYPE;
import com.egolm.sso.bean.Z_MT_SD_005_PERFORM_INVOICE.ITEM_VAT_DATA;
import com.egolm.sso.bean.Z_MT_SD_005_PERFORM_INVOICE.SUMMARY_GENERAL;
import com.egolm.sso.bean.Z_MT_SD_005_PERFORM_INVOICE.Z_DT_SD_005_PERFORM_INVOICE;
import com.egolm.sso.service.CommonService; import com.egolm.sso.service.CommonService;
import com.egolm.sso.service.ProFormaInvoiceService; import com.egolm.sso.services.preform_invoice.Z_MT_SD_005_PERFORM_INVOICE.HEADER_BANK_DATA;
import com.egolm.sso.services.preform_invoice.Z_MT_SD_005_PERFORM_INVOICE.HEADER_DOCU_DATE;
import com.egolm.sso.services.preform_invoice.Z_MT_SD_005_PERFORM_INVOICE.HEADER_GENERAL_DATA;
import com.egolm.sso.services.preform_invoice.Z_MT_SD_005_PERFORM_INVOICE.HEADER_ORGANIZATIONAL_DATA;
import com.egolm.sso.services.preform_invoice.Z_MT_SD_005_PERFORM_INVOICE.HEADER_PARTNER_DATA;
import com.egolm.sso.services.preform_invoice.Z_MT_SD_005_PERFORM_INVOICE.HEADER_REFERENCE_DATA;
import com.egolm.sso.services.preform_invoice.Z_MT_SD_005_PERFORM_INVOICE.ITEM_AMOUNT_DATA;
import com.egolm.sso.services.preform_invoice.Z_MT_SD_005_PERFORM_INVOICE.ITEM_DATA;
import com.egolm.sso.services.preform_invoice.Z_MT_SD_005_PERFORM_INVOICE.ITEM_MATERIAL_DATA;
import com.egolm.sso.services.preform_invoice.Z_MT_SD_005_PERFORM_INVOICE.ITEM_REFERENCE_DATA;
import com.egolm.sso.services.preform_invoice.Z_MT_SD_005_PERFORM_INVOICE.ITEM_REFERENCE_PO_TYPE;
import com.egolm.sso.services.preform_invoice.Z_MT_SD_005_PERFORM_INVOICE.ITEM_VAT_DATA;
import com.egolm.sso.services.preform_invoice.Z_MT_SD_005_PERFORM_INVOICE.SUMMARY_GENERAL;
import com.egolm.sso.services.preform_invoice.Z_MT_SD_005_PERFORM_INVOICE.Z_DT_SD_005_PERFORM_INVOICE;
import com.egolm.sso.util.DateUtil; import com.egolm.sso.util.DateUtil;
import com.egolm.sso.util.FileUtil;
import com.egolm.sso.util.SqlUtil; import com.egolm.sso.util.SqlUtil;
import com.egolm.sso.util.SqlUtil.Sql; import com.egolm.sso.util.SqlUtil.Sql;
import com.egolm.sso.util.StringUtil; import com.egolm.sso.util.StringUtil;
import com.egolm.sso.util.XMLUtil;
@Component @Component
@WebService(serviceName = "ProFormaInvoiceService", targetNamespace = "http://pro_forma_invoice.sso.egolm.com", endpointInterface = "com.egolm.sso.service.ProFormaInvoiceService") @WebService(serviceName = "PoformaInvoiceService", targetNamespace = "http://preform_invoice.sso.egolm.com", endpointInterface = "com.egolm.sso.services.preform_invoice.PoformaInvoiceService")
public class ProFormaInvoiceServiceImpl implements ProFormaInvoiceService { public class PoformaInvoiceServiceImpl implements PoformaInvoiceService {
@Autowired @Autowired
JdbcTemplate jdbcTemplate; JdbcTemplate jdbcTemplate;
@Autowired @Autowired
CommonService common; CommonService common;
@Override @Override
@Transactional public void execute(Z_MT_SD_005_PERFORM_INVOICE Z_MT_SD_005_PERFORM_INVOICE) {
public void execute(String xml) {
Date now = new Date(); Date now = new Date();
String dateString = DateUtil.formatDate(now, DateUtil.FMT_DATE); String dateString = DateUtil.formatDate(now, DateUtil.FMT_DATE);
Z_MT_SD_005_PERFORM_INVOICE bean = XMLUtil.toBeanByJxab(xml, Z_MT_SD_005_PERFORM_INVOICE.class);
Map<String, Object> headMap = new HashMap<String, Object>(); Map<String, Object> headMap = new HashMap<String, Object>();
Z_DT_SD_005_PERFORM_INVOICE Z_DT_SD_005_PERFORM_INVOICE = bean.getZ_DT_SD_005_PERFORM_INVOICE(); Z_DT_SD_005_PERFORM_INVOICE Z_DT_SD_005_PERFORM_INVOICE = Z_MT_SD_005_PERFORM_INVOICE.getZ_DT_SD_005_PERFORM_INVOICE();
HEADER_GENERAL_DATA HEADER_GENERAL_DATA = Z_DT_SD_005_PERFORM_INVOICE.getHEADER_GENERAL_DATA(); HEADER_GENERAL_DATA HEADER_GENERAL_DATA = Z_DT_SD_005_PERFORM_INVOICE.getHEADER_GENERAL_DATA();
List<HEADER_PARTNER_DATA> partnerList = Z_DT_SD_005_PERFORM_INVOICE.getHEADER_PARTNER_DATA(); List<HEADER_PARTNER_DATA> partnerList = Z_DT_SD_005_PERFORM_INVOICE.getHEADER_PARTNER_DATA();
HEADER_DOCU_DATE HEADER_DOCU_DATE = Z_DT_SD_005_PERFORM_INVOICE.getHEADER_DOCU_DATE(); HEADER_DOCU_DATE HEADER_DOCU_DATE = Z_DT_SD_005_PERFORM_INVOICE.getHEADER_DOCU_DATE();
...@@ -175,10 +167,5 @@ public class ProFormaInvoiceServiceImpl implements ProFormaInvoiceService { ...@@ -175,10 +167,5 @@ public class ProFormaInvoiceServiceImpl implements ProFormaInvoiceService {
Sql itemDataSql = SqlUtil.insertSqlBatch("t_perform_invoice_item", itemDatas); Sql itemDataSql = SqlUtil.insertSqlBatch("t_perform_invoice_item", itemDatas);
jdbcTemplate.batchUpdate(itemDataSql.getSql(), itemDataSql.getBachArgs()); jdbcTemplate.batchUpdate(itemDataSql.getSql(), itemDataSql.getBachArgs());
} }
public static void main(String[] args) throws IOException {
new ProFormaInvoiceServiceImpl().execute(FileUtil.readText("D:/data/sso/005.XML"));
}
} }
package com.egolm.sso.bean; package com.egolm.sso.services.preform_invoice;
import java.util.List; import java.util.List;
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlType;
@XmlType @XmlType(name = "Z_MT_SD_005_PERFORM_INVOICE")
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name="Z_MT_SD_005_PERFORM_INVOICE", namespace="http://schneider-distributor.com/")
public class Z_MT_SD_005_PERFORM_INVOICE { public class Z_MT_SD_005_PERFORM_INVOICE {
Z_DT_SD_005_PERFORM_INVOICE Z_DT_SD_005_PERFORM_INVOICE; Z_DT_SD_005_PERFORM_INVOICE Z_DT_SD_005_PERFORM_INVOICE;
@XmlType(name = "Z_DT_SD_005_PERFORM_INVOICE")
@XmlAccessorType(XmlAccessType.FIELD)
public static class Z_DT_SD_005_PERFORM_INVOICE { public static class Z_DT_SD_005_PERFORM_INVOICE {
...@@ -92,6 +92,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE { ...@@ -92,6 +92,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE {
} }
} }
@XmlType(name = "HEADER_GENERAL_DATA")
@XmlAccessorType(XmlAccessType.FIELD)
public static class HEADER_GENERAL_DATA { public static class HEADER_GENERAL_DATA {
String BELNR; String BELNR;
String ZTERM; String ZTERM;
...@@ -113,6 +115,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE { ...@@ -113,6 +115,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE {
} }
} }
@XmlType(name = "HEADER_PARTNER_DATA")
@XmlAccessorType(XmlAccessType.FIELD)
public static class HEADER_PARTNER_DATA { public static class HEADER_PARTNER_DATA {
String PARVW; String PARVW;
String PARTN; String PARTN;
...@@ -134,6 +138,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE { ...@@ -134,6 +138,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE {
} }
} }
@XmlType(name = "HEADER_DOCU_DATE")
@XmlAccessorType(XmlAccessType.FIELD)
public static class HEADER_DOCU_DATE { public static class HEADER_DOCU_DATE {
String IDDAT; String IDDAT;
String DATUM; String DATUM;
...@@ -155,6 +161,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE { ...@@ -155,6 +161,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE {
} }
} }
@XmlType(name = "HEADER_REFERENCE_DATA")
@XmlAccessorType(XmlAccessType.FIELD)
public static class HEADER_REFERENCE_DATA { public static class HEADER_REFERENCE_DATA {
String QUALF; String QUALF;
String BELNR; String BELNR;
...@@ -185,6 +193,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE { ...@@ -185,6 +193,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE {
} }
} }
@XmlType(name = "HEADER_BANK_DATA")
@XmlAccessorType(XmlAccessType.FIELD)
public static class HEADER_BANK_DATA { public static class HEADER_BANK_DATA {
String ACNUM; String ACNUM;
...@@ -197,6 +207,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE { ...@@ -197,6 +207,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE {
} }
} }
@XmlType(name = "HEADER_ORGANIZATIONAL_DATA")
@XmlAccessorType(XmlAccessType.FIELD)
public static class HEADER_ORGANIZATIONAL_DATA { public static class HEADER_ORGANIZATIONAL_DATA {
String QUALF; String QUALF;
String ORGID; String ORGID;
...@@ -217,7 +229,9 @@ public class Z_MT_SD_005_PERFORM_INVOICE { ...@@ -217,7 +229,9 @@ public class Z_MT_SD_005_PERFORM_INVOICE {
ORGID = oRGID; ORGID = oRGID;
} }
} }
@XmlType(name = "SUMMARY_GENERAL")
@XmlAccessorType(XmlAccessType.FIELD)
public static class SUMMARY_GENERAL { public static class SUMMARY_GENERAL {
String SUMID; String SUMID;
String SUMME; String SUMME;
...@@ -248,6 +262,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE { ...@@ -248,6 +262,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE {
} }
} }
@XmlType(name = "ITEM_DATA")
@XmlAccessorType(XmlAccessType.FIELD)
public static class ITEM_DATA { public static class ITEM_DATA {
ITEM_REFERENCE_DATA ITEM_REFERENCE_DATA; ITEM_REFERENCE_DATA ITEM_REFERENCE_DATA;
ITEM_MATERIAL_DATA ITEM_MATERIAL_DATA; ITEM_MATERIAL_DATA ITEM_MATERIAL_DATA;
...@@ -332,6 +348,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE { ...@@ -332,6 +348,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE {
} }
} }
@XmlType(name = "ITEM_REFERENCE_DATA")
@XmlAccessorType(XmlAccessType.FIELD)
public static class ITEM_REFERENCE_DATA { public static class ITEM_REFERENCE_DATA {
String QUALF; String QUALF;
String BELNR; String BELNR;
...@@ -389,6 +407,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE { ...@@ -389,6 +407,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE {
} }
} }
@XmlType(name = "ITEM_MATERIAL_DATA")
@XmlAccessorType(XmlAccessType.FIELD)
public static class ITEM_MATERIAL_DATA { public static class ITEM_MATERIAL_DATA {
String QUALF; String QUALF;
String IDTNR; String IDTNR;
...@@ -410,6 +430,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE { ...@@ -410,6 +430,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE {
} }
} }
@XmlType(name = "ITEM_AMOUNT_DATA")
@XmlAccessorType(XmlAccessType.FIELD)
public static class ITEM_AMOUNT_DATA { public static class ITEM_AMOUNT_DATA {
String QUALF; String QUALF;
String BETRG; String BETRG;
...@@ -431,6 +453,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE { ...@@ -431,6 +453,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE {
} }
} }
@XmlType(name = "ITEM_VAT_DATA")
@XmlAccessorType(XmlAccessType.FIELD)
public static class ITEM_VAT_DATA { public static class ITEM_VAT_DATA {
String MWSKZ; String MWSKZ;
String MWSBT; String MWSBT;
...@@ -452,6 +476,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE { ...@@ -452,6 +476,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE {
} }
} }
@XmlType(name = "ITEM_REFERENCE_PO_TYPE")
@XmlAccessorType(XmlAccessType.FIELD)
public static class ITEM_REFERENCE_PO_TYPE { public static class ITEM_REFERENCE_PO_TYPE {
ITEM_REFERENCE_PO_DATA ITEM_REFERENCE_PO_DATA; ITEM_REFERENCE_PO_DATA ITEM_REFERENCE_PO_DATA;
String TDID; String TDID;
...@@ -473,6 +499,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE { ...@@ -473,6 +499,8 @@ public class Z_MT_SD_005_PERFORM_INVOICE {
} }
} }
@XmlType(name = "ITEM_REFERENCE_PO_DATA")
@XmlAccessorType(XmlAccessType.FIELD)
public static class ITEM_REFERENCE_PO_DATA { public static class ITEM_REFERENCE_PO_DATA {
String TDLINE; String TDLINE;
......
package com.egolm.sso.service; package com.egolm.sso.services.price_list;
import javax.jws.WebMethod; import javax.jws.WebMethod;
import javax.jws.WebService; import javax.jws.WebService;
@WebService(targetNamespace = "http://price_list.sso.egolm.com") @WebService(targetNamespace = "http://price_list.sso.egolm.com")
public interface PriceListService { public interface PriceListService {
@WebMethod @WebMethod
public void execute(String xml); public void execute(Z_MT_SD_002_PRICE_LIST Z_MT_SD_002_PRICE_LIST);
}
}
package com.egolm.sso.bean; package com.egolm.sso.services.price_list;
import java.util.List; import java.util.List;
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlType;
@XmlType @XmlType(name = "Z_MT_SD_002_PRICE_LIST")
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name="Z_MT_SD_002_PRICE_LIST")
public class Z_MT_SD_002_PRICE_LIST { public class Z_MT_SD_002_PRICE_LIST {
RECORD RECORD; RECORD RECORD;
...@@ -23,6 +21,8 @@ public class Z_MT_SD_002_PRICE_LIST { ...@@ -23,6 +21,8 @@ public class Z_MT_SD_002_PRICE_LIST {
RECORD = rECORD; RECORD = rECORD;
} }
@XmlType(name = "RECORD")
@XmlAccessorType(XmlAccessType.FIELD)
public static class RECORD { public static class RECORD {
HEADER_SENDING HEADER_SENDING; HEADER_SENDING HEADER_SENDING;
...@@ -42,6 +42,8 @@ public class Z_MT_SD_002_PRICE_LIST { ...@@ -42,6 +42,8 @@ public class Z_MT_SD_002_PRICE_LIST {
} }
@XmlType(name = "HEADER_SENDING")
@XmlAccessorType(XmlAccessType.FIELD)
public static class HEADER_SENDING { public static class HEADER_SENDING {
String KUNNR; String KUNNR;
...@@ -68,6 +70,8 @@ public class Z_MT_SD_002_PRICE_LIST { ...@@ -68,6 +70,8 @@ public class Z_MT_SD_002_PRICE_LIST {
} }
@XmlType(name = "ITEM")
@XmlAccessorType(XmlAccessType.FIELD)
public static class ITEM { public static class ITEM {
String MATNR; String MATNR;
......
package com.egolm.sso.service; package com.egolm.sso.services.shipping_notfirmation;
import javax.jws.WebMethod; import javax.jws.WebMethod;
import javax.jws.WebService; import javax.jws.WebService;
@WebService(targetNamespace = "http://shipping_notification.sso.egolm.com") @WebService(targetNamespace = "http://shipping_notfirmation.sso.egolm.com")
public interface ShippingNotificationService { public interface ShippingNotificationService {
@WebMethod @WebMethod
public void execute(String xml); public void execute(Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE);
}
}
package com.egolm.sso.bean; package com.egolm.sso.services.shipping_notfirmation;
import java.util.List; import java.util.List;
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlType;
@XmlType @XmlType(name = "Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE")
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name="Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE", namespace="http://schneider-distributor.com/")
public class Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE { public class Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE {
Z_DT_SD_007_SHIPPING_NOTIFICATION_FILE Z_DT_SD_007_SHIPPING_NOTIFICATION_FILE; Z_DT_SD_007_SHIPPING_NOTIFICATION_FILE Z_DT_SD_007_SHIPPING_NOTIFICATION_FILE;
...@@ -23,6 +21,8 @@ public class Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE { ...@@ -23,6 +21,8 @@ public class Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE {
Z_DT_SD_007_SHIPPING_NOTIFICATION_FILE = z_DT_SD_007_SHIPPING_NOTIFICATION_FILE; Z_DT_SD_007_SHIPPING_NOTIFICATION_FILE = z_DT_SD_007_SHIPPING_NOTIFICATION_FILE;
} }
@XmlType(name = "Z_DT_SD_007_SHIPPING_NOTIFICATION_FILE")
@XmlAccessorType(XmlAccessType.FIELD)
public static class Z_DT_SD_007_SHIPPING_NOTIFICATION_FILE{ public static class Z_DT_SD_007_SHIPPING_NOTIFICATION_FILE{
HEADER_DELIVERY HEADER_DELIVERY; HEADER_DELIVERY HEADER_DELIVERY;
...@@ -35,6 +35,8 @@ public class Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE { ...@@ -35,6 +35,8 @@ public class Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE {
} }
} }
@XmlType(name = "HEADER_DELIVERY")
@XmlAccessorType(XmlAccessType.FIELD)
public static class HEADER_DELIVERY{ public static class HEADER_DELIVERY{
String VBELN; String VBELN;
String LFART; String LFART;
...@@ -108,6 +110,8 @@ public class Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE { ...@@ -108,6 +110,8 @@ public class Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE {
} }
} }
@XmlType(name = "HEADER_PARTNER")
@XmlAccessorType(XmlAccessType.FIELD)
public static class HEADER_PARTNER{ public static class HEADER_PARTNER{
String PARTNER_Q; String PARTNER_Q;
String PARTNER_ID; String PARTNER_ID;
...@@ -153,6 +157,8 @@ public class Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE { ...@@ -153,6 +157,8 @@ public class Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE {
} }
} }
@XmlType(name = "HEADER_DATE")
@XmlAccessorType(XmlAccessType.FIELD)
public static class HEADER_DATE{ public static class HEADER_DATE{
String QUALF; String QUALF;
String NTEND; String NTEND;
...@@ -170,6 +176,8 @@ public class Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE { ...@@ -170,6 +176,8 @@ public class Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE {
} }
} }
@XmlType(name = "ITEM")
@XmlAccessorType(XmlAccessType.FIELD)
public static class ITEM{ public static class ITEM{
String POSNR; String POSNR;
String VTWEG; String VTWEG;
...@@ -229,6 +237,8 @@ public class Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE { ...@@ -229,6 +237,8 @@ public class Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE {
} }
} }
@XmlType(name = "ITEM_REFERENCE_SO")
@XmlAccessorType(XmlAccessType.FIELD)
public static class ITEM_REFERENCE_SO{ public static class ITEM_REFERENCE_SO{
String QUALF; String QUALF;
String BELNR; String BELNR;
...@@ -253,6 +263,8 @@ public class Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE { ...@@ -253,6 +263,8 @@ public class Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE {
} }
} }
@XmlType(name = "ITEM_REFERENCE_PO_TYPE")
@XmlAccessorType(XmlAccessType.FIELD)
public static class ITEM_REFERENCE_PO_TYPE{ public static class ITEM_REFERENCE_PO_TYPE{
String TDID; String TDID;
List<ITEM_REFERENCE_PO_DATA> ITEM_REFERENCE_PO_DATA; List<ITEM_REFERENCE_PO_DATA> ITEM_REFERENCE_PO_DATA;
...@@ -270,6 +282,8 @@ public class Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE { ...@@ -270,6 +282,8 @@ public class Z_MT_SD_007_SHIPPING_NOTFIRMATION_FILE {
} }
} }
@XmlType(name = "ITEM_REFERENCE_PO_DATA")
@XmlAccessorType(XmlAccessType.FIELD)
public static class ITEM_REFERENCE_PO_DATA{ public static class ITEM_REFERENCE_PO_DATA{
String TDLINE; String TDLINE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment