Commit 9fdb8d74 authored by Quxl's avatar Quxl

x

parent 66eccf86
......@@ -3,8 +3,10 @@ package com.egolm.sso;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableScheduling
@SpringBootApplication
@EnableTransactionManagement
public class SSOApplication {
......
package com.schneider_distributor;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@Component
public class ZMISD009SOCREATIONTask {
@Scheduled(cron="0 * * * * ?")
public void execute() {
this.runTask();
}
public void runTask() {
ZMISD009SOCREATIONService service = new ZMISD009SOCREATIONService();
ZMISD009SOCREATION ZMISD009SOCREATION = service.getZMISD009SOCREATIONPort();
ZMISD009SOCREATION.zMISD009SOCREATION(null);
}
}
package com.schneider_distributor;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the com.schneider_distributor package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*
*/
@XmlRegistry
public class ObjectFactory {
private final static QName _ZMTSD009SOCREATION_QNAME = new QName("http://schneider-distributor.com/", "Z_MT_SD_009_SO_CREATION");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.schneider_distributor
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link ZDTSD009SOCREATION }
*
*/
public ZDTSD009SOCREATION createZDTSD009SOCREATION() {
return new ZDTSD009SOCREATION();
}
/**
* Create an instance of {@link ZDTSD009SOCREATION.Header }
*
*/
public ZDTSD009SOCREATION.Header createZDTSD009SOCREATIONHeader() {
return new ZDTSD009SOCREATION.Header();
}
/**
* Create an instance of {@link ZDTSD009SOCREATION.ITEM }
*
*/
public ZDTSD009SOCREATION.ITEM createZDTSD009SOCREATIONITEM() {
return new ZDTSD009SOCREATION.ITEM();
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link ZDTSD009SOCREATION }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://schneider-distributor.com/", name = "Z_MT_SD_009_SO_CREATION")
public JAXBElement<ZDTSD009SOCREATION> createZMTSD009SOCREATION(ZDTSD009SOCREATION value) {
return new JAXBElement<ZDTSD009SOCREATION>(_ZMTSD009SOCREATION_QNAME, ZDTSD009SOCREATION.class, null, value);
}
}
package com.schneider_distributor;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Z_DT_SD_009_SO_CREATION complex type的 Java 类。
*
* <p>以下模式片段指定包含在此类中的预期内容。
*
* <pre>
* &lt;complexType name="Z_DT_SD_009_SO_CREATION"&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="Header"&gt;
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="BSTKD_E" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="36"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="VBELN" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="BSTDK" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="8"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="KUNNR" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="KGNNR" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="QTFLAG" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="1"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* &lt;/element&gt;
* &lt;element name="ITEM" maxOccurs="unbounded" minOccurs="0"&gt;
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="POSNR" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="6"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="VTEXT" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="40"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="MATNR" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="18"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="KWMENG" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="15"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="EDATU" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="8"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Z_DT_SD_009_SO_CREATION", propOrder = {
"header",
"item"
})
public class ZDTSD009SOCREATION {
@XmlElement(name = "Header", required = true)
protected ZDTSD009SOCREATION.Header header;
@XmlElement(name = "ITEM")
protected List<ZDTSD009SOCREATION.ITEM> item;
/**
* 获取header属性的值。
*
* @return
* possible object is
* {@link ZDTSD009SOCREATION.Header }
*
*/
public ZDTSD009SOCREATION.Header getHeader() {
return header;
}
/**
* 设置header属性的值。
*
* @param value
* allowed object is
* {@link ZDTSD009SOCREATION.Header }
*
*/
public void setHeader(ZDTSD009SOCREATION.Header value) {
this.header = value;
}
/**
* Gets the value of the item property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the item property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getITEM().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ZDTSD009SOCREATION.ITEM }
*
*
*/
public List<ZDTSD009SOCREATION.ITEM> getITEM() {
if (item == null) {
item = new ArrayList<ZDTSD009SOCREATION.ITEM>();
}
return this.item;
}
/**
* <p>anonymous complex type的 Java 类。
*
* <p>以下模式片段指定包含在此类中的预期内容。
*
* <pre>
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="BSTKD_E" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="36"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="VBELN" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="BSTDK" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="8"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="KUNNR" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="KGNNR" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="10"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="QTFLAG" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="1"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"bstkde",
"vbeln",
"bstdk",
"kunnr",
"kgnnr",
"qtflag"
})
public static class Header {
@XmlElement(name = "BSTKD_E")
protected String bstkde;
@XmlElement(name = "VBELN")
protected String vbeln;
@XmlElement(name = "BSTDK")
protected String bstdk;
@XmlElement(name = "KUNNR")
protected String kunnr;
@XmlElement(name = "KGNNR")
protected String kgnnr;
@XmlElement(name = "QTFLAG")
protected String qtflag;
/**
* 获取bstkde属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getBSTKDE() {
return bstkde;
}
/**
* 设置bstkde属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBSTKDE(String value) {
this.bstkde = value;
}
/**
* 获取vbeln属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getVBELN() {
return vbeln;
}
/**
* 设置vbeln属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setVBELN(String value) {
this.vbeln = value;
}
/**
* 获取bstdk属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getBSTDK() {
return bstdk;
}
/**
* 设置bstdk属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBSTDK(String value) {
this.bstdk = value;
}
/**
* 获取kunnr属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getKUNNR() {
return kunnr;
}
/**
* 设置kunnr属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setKUNNR(String value) {
this.kunnr = value;
}
/**
* 获取kgnnr属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getKGNNR() {
return kgnnr;
}
/**
* 设置kgnnr属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setKGNNR(String value) {
this.kgnnr = value;
}
/**
* 获取qtflag属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getQTFLAG() {
return qtflag;
}
/**
* 设置qtflag属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setQTFLAG(String value) {
this.qtflag = value;
}
}
/**
* <p>anonymous complex type的 Java 类。
*
* <p>以下模式片段指定包含在此类中的预期内容。
*
* <pre>
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="POSNR" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="6"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="VTEXT" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="40"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="MATNR" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="18"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="KWMENG" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="15"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;element name="EDATU" minOccurs="0"&gt;
* &lt;simpleType&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;maxLength value="8"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"posnr",
"vtext",
"matnr",
"kwmeng",
"edatu"
})
public static class ITEM {
@XmlElement(name = "POSNR")
protected String posnr;
@XmlElement(name = "VTEXT")
protected String vtext;
@XmlElement(name = "MATNR")
protected String matnr;
@XmlElement(name = "KWMENG")
protected String kwmeng;
@XmlElement(name = "EDATU")
protected String edatu;
/**
* 获取posnr属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getPOSNR() {
return posnr;
}
/**
* 设置posnr属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPOSNR(String value) {
this.posnr = value;
}
/**
* 获取vtext属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getVTEXT() {
return vtext;
}
/**
* 设置vtext属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setVTEXT(String value) {
this.vtext = value;
}
/**
* 获取matnr属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getMATNR() {
return matnr;
}
/**
* 设置matnr属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMATNR(String value) {
this.matnr = value;
}
/**
* 获取kwmeng属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getKWMENG() {
return kwmeng;
}
/**
* 设置kwmeng属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setKWMENG(String value) {
this.kwmeng = value;
}
/**
* 获取edatu属性的值。
*
* @return
* possible object is
* {@link String }
*
*/
public String getEDATU() {
return edatu;
}
/**
* 设置edatu属性的值。
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEDATU(String value) {
this.edatu = value;
}
}
}
package com.schneider_distributor;
import javax.jws.Oneway;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.bind.annotation.XmlSeeAlso;
/**
* This class was generated by Apache CXF 3.2.9
* 2019-07-05T14:08:11.116+08:00
* Generated source version: 3.2.9
*
*/
@WebService(targetNamespace = "http://schneider-distributor.com/", name = "Z_MI_SD_009_SO_CREATION")
@XmlSeeAlso({ObjectFactory.class})
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface ZMISD009SOCREATION {
@WebMethod(operationName = "Z_MI_SD_009_SO_CREATION", action = "http://sap.com/xi/WebService/soap1.1")
@Oneway
public void zMISD009SOCREATION(
@WebParam(partName = "Z_MT_SD_009_SO_CREATION", name = "Z_MT_SD_009_SO_CREATION", targetNamespace = "http://schneider-distributor.com/")
ZDTSD009SOCREATION zMTSD009SOCREATION
);
}
package com.schneider_distributor;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
import javax.xml.ws.Service;
/**
* This class was generated by Apache CXF 3.2.9
* 2019-07-05T14:08:11.147+08:00
* Generated source version: 3.2.9
*
*/
@WebServiceClient(name = "Z_MI_SD_009_SO_CREATIONService",
wsdlLocation = "file:/C:/Users/Quxl/Desktop/Z_MI_SD_009_SO_CREATION.wsdl",
targetNamespace = "http://schneider-distributor.com/")
public class ZMISD009SOCREATIONService extends Service {
public final static URL WSDL_LOCATION;
public final static QName SERVICE = new QName("http://schneider-distributor.com/", "Z_MI_SD_009_SO_CREATIONService");
public final static QName ZMISD009SOCREATIONPort = new QName("http://schneider-distributor.com/", "Z_MI_SD_009_SO_CREATIONPort");
static {
URL url = null;
try {
url = new URL("file:/C:/Users/Quxl/Desktop/Z_MI_SD_009_SO_CREATION.wsdl");
} catch (MalformedURLException e) {
java.util.logging.Logger.getLogger(ZMISD009SOCREATIONService.class.getName())
.log(java.util.logging.Level.INFO,
"Can not initialize the default wsdl from {0}", "file:/C:/Users/Quxl/Desktop/Z_MI_SD_009_SO_CREATION.wsdl");
}
WSDL_LOCATION = url;
}
public ZMISD009SOCREATIONService(URL wsdlLocation) {
super(wsdlLocation, SERVICE);
}
public ZMISD009SOCREATIONService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public ZMISD009SOCREATIONService() {
super(WSDL_LOCATION, SERVICE);
}
public ZMISD009SOCREATIONService(WebServiceFeature ... features) {
super(WSDL_LOCATION, SERVICE, features);
}
public ZMISD009SOCREATIONService(URL wsdlLocation, WebServiceFeature ... features) {
super(wsdlLocation, SERVICE, features);
}
public ZMISD009SOCREATIONService(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) {
super(wsdlLocation, serviceName, features);
}
/**
*
* @return
* returns ZMISD009SOCREATION
*/
@WebEndpoint(name = "Z_MI_SD_009_SO_CREATIONPort")
public ZMISD009SOCREATION getZMISD009SOCREATIONPort() {
return super.getPort(ZMISD009SOCREATIONPort, ZMISD009SOCREATION.class);
}
/**
*
* @param features
* A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
* @return
* returns ZMISD009SOCREATION
*/
@WebEndpoint(name = "Z_MI_SD_009_SO_CREATIONPort")
public ZMISD009SOCREATION getZMISD009SOCREATIONPort(WebServiceFeature... features) {
return super.getPort(ZMISD009SOCREATIONPort, ZMISD009SOCREATION.class, features);
}
}
@javax.xml.bind.annotation.XmlSchema(namespace = "http://schneider-distributor.com/")
package com.schneider_distributor;
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