This commit is contained in:
LORENZO\pacio 2024-10-23 14:33:15 +02:00
parent 19ceac6c67
commit 1bfdf6e6a5
48 changed files with 5413 additions and 0 deletions

39
.classpath Normal file
View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="test" value="true"/>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
<attributes>
<attribute name="test" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry exported="true" kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>

37
.project Normal file
View File

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>pi_wsvet</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>

View File

@ -0,0 +1,3 @@
Manifest-Version: 1.0
Class-Path:

View File

@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:web="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" id="WebApp_ID" version="2.4">
<display-name>pi_wsvet</display-name>
<servlet>
<description>
</description>
<display-name>pi_wsvet_servlet</display-name>
<servlet-name>pi_wsvet_servlet</servlet-name>
<servlet-class>com.poloinformatico.gls.pi_wsvet_servlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>pi_wsvet_servlet</servlet-name>
<url-pattern>/pi_wsvet_servlet</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<servlet>
<description></description>
<display-name>gls_addparcel</display-name>
<servlet-name>gls_addparcel</servlet-name>
<servlet-class>com.poloinformatico.servlet.gls_addparcel</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>gls_addparcel</servlet-name>
<url-pattern>/gls_addparcel</url-pattern>
</servlet-mapping>
<servlet>
<description></description>
<display-name>gls_closeworkday</display-name>
<servlet-name>gls_closeworkday</servlet-name>
<servlet-class>com.poloinformatico.servlet.gls_closeworkday</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>gls_closeworkday</servlet-name>
<url-pattern>/gls_closeworkday</url-pattern>
</servlet-mapping>
<servlet>
<description></description>
<display-name>gls_listsped</display-name>
<servlet-name>gls_listsped</servlet-name>
<servlet-class>com.poloinformatico.servlet.gls_listsped</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>gls_listsped</servlet-name>
<url-pattern>/gls_listsped</url-pattern>
</servlet-mapping>
<servlet>
<description></description>
<display-name>gls_deletesped</display-name>
<servlet-name>gls_deletesped</servlet-name>
<servlet-class>com.poloinformatico.servlet.gls_deletesped</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>gls_deletesped</servlet-name>
<url-pattern>/gls_deletesped</url-pattern>
</servlet-mapping>
<servlet>
<description></description>
<display-name>gls_getzpl</display-name>
<servlet-name>gls_getzpl</servlet-name>
<servlet-class>com.poloinformatico.servlet.gls_getzpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>gls_getzpl</servlet-name>
<url-pattern>/gls_getzpl</url-pattern>
</servlet-mapping>
</web-app>

66
pom.xml Normal file
View File

@ -0,0 +1,66 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>pi</groupId>
<artifactId>pi_wsvet</artifactId>
<version>1.0</version>
<name>pi_wsvet</name>
<dependencies>
<!-- https://mvnrepository.com/artifact/javax.servlet/servlet-api -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.6</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.pdfbox/pdfbox -->
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>2.0.18</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-text -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-text</artifactId>
<version>1.8</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.ancientprogramming.fixedformat4j/fixedformat4j -->
<dependency>
<groupId>com.ancientprogramming.fixedformat4j</groupId>
<artifactId>fixedformat4j</artifactId>
<version>1.2.2</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<url>http://localhost:2080/</url>
<server>TomcatServer</server>
<path>/pi_wsvet</path>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
<packaging>war</packaging>
</project>

View File

@ -0,0 +1,63 @@
package com.labelservice_gls_italy;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="XMLInfoParcel" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"xmlInfoParcel"
})
@XmlRootElement(name = "AddParcel")
public class AddParcel {
@XmlElement(name = "XMLInfoParcel")
protected String xmlInfoParcel;
/**
* Recupera il valore della propriet<EFBFBD> xmlInfoParcel.
*
* @return
* possible object is
* {@link String }
*
*/
public String getXMLInfoParcel() {
return xmlInfoParcel;
}
/**
* Imposta il valore della propriet<EFBFBD> xmlInfoParcel.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setXMLInfoParcel(String value) {
this.xmlInfoParcel = value;
}
}

View File

@ -0,0 +1,141 @@
package com.labelservice_gls_italy;
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.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlMixed;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="AddParcelResult" minOccurs="0">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;any/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"addParcelResult"
})
@XmlRootElement(name = "AddParcelResponse")
public class AddParcelResponse {
@XmlElement(name = "AddParcelResult")
protected AddParcelResponse.AddParcelResult addParcelResult;
/**
* Recupera il valore della propriet<EFBFBD> addParcelResult.
*
* @return
* possible object is
* {@link AddParcelResponse.AddParcelResult }
*
*/
public AddParcelResponse.AddParcelResult getAddParcelResult() {
return addParcelResult;
}
/**
* Imposta il valore della propriet<EFBFBD> addParcelResult.
*
* @param value
* allowed object is
* {@link AddParcelResponse.AddParcelResult }
*
*/
public void setAddParcelResult(AddParcelResponse.AddParcelResult value) {
this.addParcelResult = value;
}
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;any/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
public static class AddParcelResult {
@XmlMixed
@XmlAnyElement(lax = true)
protected List<Object> content;
/**
* Gets the value of the content 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 content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Object }
* {@link String }
*
*
*/
public List<Object> getContent() {
if (content == null) {
content = new ArrayList<Object>();
}
return this.content;
}
}
}

View File

@ -0,0 +1,64 @@
package com.labelservice_gls_italy;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="XMLCloseInfoParcel" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"xmlCloseInfoParcel"
})
@XmlRootElement(name = "CloseWorkDay")
public class CloseWorkDay {
@XmlElement(name = "XMLCloseInfoParcel")
protected String xmlCloseInfoParcel;
/**
* Recupera il valore della propriet<EFBFBD> xmlCloseInfoParcel.
*
* @return
* possible object is
* {@link String }
*
*/
public String getXMLCloseInfoParcel() {
return xmlCloseInfoParcel;
}
/**
* Imposta il valore della propriet<EFBFBD> xmlCloseInfoParcel.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setXMLCloseInfoParcel(String value) {
this.xmlCloseInfoParcel = value;
}
}

View File

@ -0,0 +1,140 @@
package com.labelservice_gls_italy;
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.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlMixed;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="CloseWorkDayResult" minOccurs="0">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;any/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"closeWorkDayResult"
})
@XmlRootElement(name = "CloseWorkDayResponse")
public class CloseWorkDayResponse {
@XmlElement(name = "CloseWorkDayResult")
protected CloseWorkDayResponse.CloseWorkDayResult closeWorkDayResult;
/**
* Recupera il valore della propriet<EFBFBD> closeWorkDayResult.
*
* @return
* possible object is
* {@link CloseWorkDayResponse.CloseWorkDayResult }
*
*/
public CloseWorkDayResponse.CloseWorkDayResult getCloseWorkDayResult() {
return closeWorkDayResult;
}
/**
* Imposta il valore della propriet<EFBFBD> closeWorkDayResult.
*
* @param value
* allowed object is
* {@link CloseWorkDayResponse.CloseWorkDayResult }
*
*/
public void setCloseWorkDayResult(CloseWorkDayResponse.CloseWorkDayResult value) {
this.closeWorkDayResult = value;
}
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;any/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
public static class CloseWorkDayResult {
@XmlMixed
@XmlAnyElement(lax = true)
protected List<Object> content;
/**
* Gets the value of the content 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 content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Object }
* {@link String }
*
*
*/
public List<Object> getContent() {
if (content == null) {
content = new ArrayList<Object>();
}
return this.content;
}
}
}

View File

@ -0,0 +1,148 @@
package com.labelservice_gls_italy;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="SedeGls" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="CodiceClienteGls" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="PasswordClienteGls" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="NumSpedizione" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"sedeGls",
"codiceClienteGls",
"passwordClienteGls",
"numSpedizione"
})
@XmlRootElement(name = "DeleteSped")
public class DeleteSped {
@XmlElement(name = "SedeGls")
protected String sedeGls;
@XmlElement(name = "CodiceClienteGls")
protected String codiceClienteGls;
@XmlElement(name = "PasswordClienteGls")
protected String passwordClienteGls;
@XmlElement(name = "NumSpedizione")
protected String numSpedizione;
/**
* Recupera il valore della propriet<EFBFBD> sedeGls.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSedeGls() {
return sedeGls;
}
/**
* Imposta il valore della propriet<EFBFBD> sedeGls.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSedeGls(String value) {
this.sedeGls = value;
}
/**
* Recupera il valore della propriet<EFBFBD> codiceClienteGls.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCodiceClienteGls() {
return codiceClienteGls;
}
/**
* Imposta il valore della propriet<EFBFBD> codiceClienteGls.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCodiceClienteGls(String value) {
this.codiceClienteGls = value;
}
/**
* Recupera il valore della propriet<EFBFBD> passwordClienteGls.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPasswordClienteGls() {
return passwordClienteGls;
}
/**
* Imposta il valore della propriet<EFBFBD> passwordClienteGls.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPasswordClienteGls(String value) {
this.passwordClienteGls = value;
}
/**
* Recupera il valore della propriet<EFBFBD> numSpedizione.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNumSpedizione() {
return numSpedizione;
}
/**
* Imposta il valore della propriet<EFBFBD> numSpedizione.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNumSpedizione(String value) {
this.numSpedizione = value;
}
}

View File

@ -0,0 +1,140 @@
package com.labelservice_gls_italy;
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.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlMixed;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="DeleteSpedResult" minOccurs="0">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;any/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"deleteSpedResult"
})
@XmlRootElement(name = "DeleteSpedResponse")
public class DeleteSpedResponse {
@XmlElement(name = "DeleteSpedResult")
protected DeleteSpedResponse.DeleteSpedResult deleteSpedResult;
/**
* Recupera il valore della propriet<EFBFBD> deleteSpedResult.
*
* @return
* possible object is
* {@link DeleteSpedResponse.DeleteSpedResult }
*
*/
public DeleteSpedResponse.DeleteSpedResult getDeleteSpedResult() {
return deleteSpedResult;
}
/**
* Imposta il valore della propriet<EFBFBD> deleteSpedResult.
*
* @param value
* allowed object is
* {@link DeleteSpedResponse.DeleteSpedResult }
*
*/
public void setDeleteSpedResult(DeleteSpedResponse.DeleteSpedResult value) {
this.deleteSpedResult = value;
}
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;any/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
public static class DeleteSpedResult {
@XmlMixed
@XmlAnyElement(lax = true)
protected List<Object> content;
/**
* Gets the value of the content 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 content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Object }
* {@link String }
*
*
*/
public List<Object> getContent() {
if (content == null) {
content = new ArrayList<Object>();
}
return this.content;
}
}
}

View File

@ -0,0 +1,152 @@
package com.labelservice_gls_italy;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="SedeGls" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="CodiceCliente" type="{http://www.w3.org/2001/XMLSchema}int"/>
* &lt;element name="Password" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="CodiceContratto" type="{http://www.w3.org/2001/XMLSchema}int"/>
* &lt;element name="ContatoreProgressivo" type="{http://www.w3.org/2001/XMLSchema}long"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"sedeGls",
"codiceCliente",
"password",
"codiceContratto",
"contatoreProgressivo"
})
@XmlRootElement(name = "GetPdf")
public class GetPdf {
@XmlElement(name = "SedeGls")
protected String sedeGls;
@XmlElement(name = "CodiceCliente")
protected int codiceCliente;
@XmlElement(name = "Password")
protected String password;
@XmlElement(name = "CodiceContratto")
protected int codiceContratto;
@XmlElement(name = "ContatoreProgressivo")
protected long contatoreProgressivo;
/**
* Recupera il valore della propriet<EFBFBD> sedeGls.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSedeGls() {
return sedeGls;
}
/**
* Imposta il valore della propriet<EFBFBD> sedeGls.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSedeGls(String value) {
this.sedeGls = value;
}
/**
* Recupera il valore della propriet<EFBFBD> codiceCliente.
*
*/
public int getCodiceCliente() {
return codiceCliente;
}
/**
* Imposta il valore della propriet<EFBFBD> codiceCliente.
*
*/
public void setCodiceCliente(int value) {
this.codiceCliente = value;
}
/**
* Recupera il valore della propriet<EFBFBD> password.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPassword() {
return password;
}
/**
* Imposta il valore della propriet<EFBFBD> password.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPassword(String value) {
this.password = value;
}
/**
* Recupera il valore della propriet<EFBFBD> codiceContratto.
*
*/
public int getCodiceContratto() {
return codiceContratto;
}
/**
* Imposta il valore della propriet<EFBFBD> codiceContratto.
*
*/
public void setCodiceContratto(int value) {
this.codiceContratto = value;
}
/**
* Recupera il valore della propriet<EFBFBD> contatoreProgressivo.
*
*/
public long getContatoreProgressivo() {
return contatoreProgressivo;
}
/**
* Imposta il valore della propriet<EFBFBD> contatoreProgressivo.
*
*/
public void setContatoreProgressivo(long value) {
this.contatoreProgressivo = value;
}
}

View File

@ -0,0 +1,62 @@
package com.labelservice_gls_italy;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="GetPdfResult" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"getPdfResult"
})
@XmlRootElement(name = "GetPdfResponse")
public class GetPdfResponse {
@XmlElement(name = "GetPdfResult")
protected byte[] getPdfResult;
/**
* Recupera il valore della propriet<EFBFBD> getPdfResult.
*
* @return
* possible object is
* byte[]
*/
public byte[] getGetPdfResult() {
return getPdfResult;
}
/**
* Imposta il valore della propriet<EFBFBD> getPdfResult.
*
* @param value
* allowed object is
* byte[]
*/
public void setGetPdfResult(byte[] value) {
this.getPdfResult = value;
}
}

View File

@ -0,0 +1,152 @@
package com.labelservice_gls_italy;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="SedeGls" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="CodiceCliente" type="{http://www.w3.org/2001/XMLSchema}int"/>
* &lt;element name="Password" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="CodiceContratto" type="{http://www.w3.org/2001/XMLSchema}int"/>
* &lt;element name="ContatoreProgressivo" type="{http://www.w3.org/2001/XMLSchema}long"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"sedeGls",
"codiceCliente",
"password",
"codiceContratto",
"contatoreProgressivo"
})
@XmlRootElement(name = "GetZpl")
public class GetZpl {
@XmlElement(name = "SedeGls")
protected String sedeGls;
@XmlElement(name = "CodiceCliente")
protected int codiceCliente;
@XmlElement(name = "Password")
protected String password;
@XmlElement(name = "CodiceContratto")
protected int codiceContratto;
@XmlElement(name = "ContatoreProgressivo")
protected long contatoreProgressivo;
/**
* Recupera il valore della propriet<EFBFBD> sedeGls.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSedeGls() {
return sedeGls;
}
/**
* Imposta il valore della propriet<EFBFBD> sedeGls.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSedeGls(String value) {
this.sedeGls = value;
}
/**
* Recupera il valore della propriet<EFBFBD> codiceCliente.
*
*/
public int getCodiceCliente() {
return codiceCliente;
}
/**
* Imposta il valore della propriet<EFBFBD> codiceCliente.
*
*/
public void setCodiceCliente(int value) {
this.codiceCliente = value;
}
/**
* Recupera il valore della propriet<EFBFBD> password.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPassword() {
return password;
}
/**
* Imposta il valore della propriet<EFBFBD> password.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPassword(String value) {
this.password = value;
}
/**
* Recupera il valore della propriet<EFBFBD> codiceContratto.
*
*/
public int getCodiceContratto() {
return codiceContratto;
}
/**
* Imposta il valore della propriet<EFBFBD> codiceContratto.
*
*/
public void setCodiceContratto(int value) {
this.codiceContratto = value;
}
/**
* Recupera il valore della propriet<EFBFBD> contatoreProgressivo.
*
*/
public long getContatoreProgressivo() {
return contatoreProgressivo;
}
/**
* Imposta il valore della propriet<EFBFBD> contatoreProgressivo.
*
*/
public void setContatoreProgressivo(long value) {
this.contatoreProgressivo = value;
}
}

View File

@ -0,0 +1,140 @@
package com.labelservice_gls_italy;
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.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlMixed;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="GetZplResult" minOccurs="0">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;any/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"getZplResult"
})
@XmlRootElement(name = "GetZplResponse")
public class GetZplResponse {
@XmlElement(name = "GetZplResult")
protected GetZplResponse.GetZplResult getZplResult;
/**
* Recupera il valore della propriet<EFBFBD> getZplResult.
*
* @return
* possible object is
* {@link GetZplResponse.GetZplResult }
*
*/
public GetZplResponse.GetZplResult getGetZplResult() {
return getZplResult;
}
/**
* Imposta il valore della propriet<EFBFBD> getZplResult.
*
* @param value
* allowed object is
* {@link GetZplResponse.GetZplResult }
*
*/
public void setGetZplResult(GetZplResponse.GetZplResult value) {
this.getZplResult = value;
}
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;any/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
public static class GetZplResult {
@XmlMixed
@XmlAnyElement(lax = true)
protected List<Object> content;
/**
* Gets the value of the content 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 content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Object }
* {@link String }
*
*
*/
public List<Object> getContent() {
if (content == null) {
content = new ArrayList<Object>();
}
return this.content;
}
}
}

View File

@ -0,0 +1,94 @@
package com.labelservice_gls_italy;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceException;
import javax.xml.ws.WebServiceFeature;
/**
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.2.9-b130926.1035
* Generated source version: 2.2
*
*/
@WebServiceClient(name = "IlsWebService", targetNamespace = "https://labelservice.gls-italy.com/", wsdlLocation = "https://labelservice.gls-italy.com/ilswebservice.asmx?WSDL")
public class IlsWebService
extends Service
{
private final static URL ILSWEBSERVICE_WSDL_LOCATION;
private final static WebServiceException ILSWEBSERVICE_EXCEPTION;
private final static QName ILSWEBSERVICE_QNAME = new QName("https://labelservice.gls-italy.com/", "IlsWebService");
static {
URL url = null;
WebServiceException e = null;
try {
url = new URL("https://labelservice.gls-italy.com/ilswebservice.asmx?WSDL");
} catch (MalformedURLException ex) {
e = new WebServiceException(ex);
}
ILSWEBSERVICE_WSDL_LOCATION = url;
ILSWEBSERVICE_EXCEPTION = e;
}
public IlsWebService() {
super(__getWsdlLocation(), ILSWEBSERVICE_QNAME);
}
public IlsWebService(WebServiceFeature... features) {
super(__getWsdlLocation(), ILSWEBSERVICE_QNAME, features);
}
public IlsWebService(URL wsdlLocation) {
super(wsdlLocation, ILSWEBSERVICE_QNAME);
}
public IlsWebService(URL wsdlLocation, WebServiceFeature... features) {
super(wsdlLocation, ILSWEBSERVICE_QNAME, features);
}
public IlsWebService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public IlsWebService(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
super(wsdlLocation, serviceName, features);
}
/**
*
* @return
* returns IlsWebServiceSoap
*/
@WebEndpoint(name = "IlsWebServiceSoap")
public IlsWebServiceSoap getIlsWebServiceSoap() {
return super.getPort(new QName("https://labelservice.gls-italy.com/", "IlsWebServiceSoap"), IlsWebServiceSoap.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 IlsWebServiceSoap
*/
@WebEndpoint(name = "IlsWebServiceSoap")
public IlsWebServiceSoap getIlsWebServiceSoap(WebServiceFeature... features) {
return super.getPort(new QName("https://labelservice.gls-italy.com/", "IlsWebServiceSoap"), IlsWebServiceSoap.class, features);
}
private static URL __getWsdlLocation() {
if (ILSWEBSERVICE_EXCEPTION!= null) {
throw ILSWEBSERVICE_EXCEPTION;
}
return ILSWEBSERVICE_WSDL_LOCATION;
}
}

View File

@ -0,0 +1,237 @@
package com.labelservice_gls_italy;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;
/**
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.2.9-b130926.1035
* Generated source version: 2.2
*
*/
@WebService(name = "IlsWebServiceSoap", targetNamespace = "https://labelservice.gls-italy.com/")
@XmlSeeAlso({
ObjectFactory.class
})
public interface IlsWebServiceSoap {
/**
* Restituisce in un array di byte il pdf.
*
* @param codiceContratto
* @param password
* @param contatoreProgressivo
* @param sedeGls
* @param codiceCliente
* @return
* returns byte[]
*/
@WebMethod(operationName = "GetPdf", action = "https://labelservice.gls-italy.com/GetPdf")
@WebResult(name = "GetPdfResult", targetNamespace = "https://labelservice.gls-italy.com/")
@RequestWrapper(localName = "GetPdf", targetNamespace = "https://labelservice.gls-italy.com/", className = "https.labelservice_gls_italy.GetPdf")
@ResponseWrapper(localName = "GetPdfResponse", targetNamespace = "https://labelservice.gls-italy.com/", className = "https.labelservice_gls_italy.GetPdfResponse")
public byte[] getPdf(
@WebParam(name = "SedeGls", targetNamespace = "https://labelservice.gls-italy.com/")
String sedeGls,
@WebParam(name = "CodiceCliente", targetNamespace = "https://labelservice.gls-italy.com/")
int codiceCliente,
@WebParam(name = "Password", targetNamespace = "https://labelservice.gls-italy.com/")
String password,
@WebParam(name = "CodiceContratto", targetNamespace = "https://labelservice.gls-italy.com/")
int codiceContratto,
@WebParam(name = "ContatoreProgressivo", targetNamespace = "https://labelservice.gls-italy.com/")
long contatoreProgressivo);
/**
* Restituisce la sequenza dei comandi ZPL per la stampa dell'etichetta.
*
* @param codiceContratto
* @param password
* @param contatoreProgressivo
* @param sedeGls
* @param codiceCliente
* @return
* returns https.labelservice_gls_italy.GetZplResponse.GetZplResult
*/
@WebMethod(operationName = "GetZpl", action = "https://labelservice.gls-italy.com/GetZpl")
@WebResult(name = "GetZplResult", targetNamespace = "https://labelservice.gls-italy.com/")
@RequestWrapper(localName = "GetZpl", targetNamespace = "https://labelservice.gls-italy.com/", className = "https.labelservice_gls_italy.GetZpl")
@ResponseWrapper(localName = "GetZplResponse", targetNamespace = "https://labelservice.gls-italy.com/", className = "https.labelservice_gls_italy.GetZplResponse")
public com.labelservice_gls_italy.GetZplResponse.GetZplResult getZpl(
@WebParam(name = "SedeGls", targetNamespace = "https://labelservice.gls-italy.com/")
String sedeGls,
@WebParam(name = "CodiceCliente", targetNamespace = "https://labelservice.gls-italy.com/")
int codiceCliente,
@WebParam(name = "Password", targetNamespace = "https://labelservice.gls-italy.com/")
String password,
@WebParam(name = "CodiceContratto", targetNamespace = "https://labelservice.gls-italy.com/")
int codiceContratto,
@WebParam(name = "ContatoreProgressivo", targetNamespace = "https://labelservice.gls-italy.com/")
long contatoreProgressivo);
/**
* Inserisce le informazioni dei colli e restituisce le relative informazioni per la stampa dello stessi.
*
* @param xmlInfoParcel
* @return
* returns https.labelservice_gls_italy.AddParcelResponse.AddParcelResult
*/
@WebMethod(operationName = "AddParcel", action = "https://labelservice.gls-italy.com/AddParcel")
@WebResult(name = "AddParcelResult", targetNamespace = "https://labelservice.gls-italy.com/")
@RequestWrapper(localName = "AddParcel", targetNamespace = "https://labelservice.gls-italy.com/", className = "https.labelservice_gls_italy.AddParcel")
@ResponseWrapper(localName = "AddParcelResponse", targetNamespace = "https://labelservice.gls-italy.com/", className = "https.labelservice_gls_italy.AddParcelResponse")
public com.labelservice_gls_italy.AddParcelResponse.AddParcelResult addParcel(
@WebParam(name = "XMLInfoParcel", targetNamespace = "https://labelservice.gls-italy.com/")
String xmlInfoParcel);
/**
* Invia le informazioni definitive di chiusura delle spedizioni e ritorna lo stato delle spedizioni (Esegue la trasmissione in sede.)
*
* @param xmlCloseInfoParcel
* @return
* returns https.labelservice_gls_italy.CloseWorkDayResponse.CloseWorkDayResult
*/
@WebMethod(operationName = "CloseWorkDay", action = "https://labelservice.gls-italy.com/CloseWorkDay")
@WebResult(name = "CloseWorkDayResult", targetNamespace = "https://labelservice.gls-italy.com/")
@RequestWrapper(localName = "CloseWorkDay", targetNamespace = "https://labelservice.gls-italy.com/", className = "https.labelservice_gls_italy.CloseWorkDay")
@ResponseWrapper(localName = "CloseWorkDayResponse", targetNamespace = "https://labelservice.gls-italy.com/", className = "https.labelservice_gls_italy.CloseWorkDayResponse")
public com.labelservice_gls_italy.CloseWorkDayResponse.CloseWorkDayResult closeWorkDay(
@WebParam(name = "XMLCloseInfoParcel", targetNamespace = "https://labelservice.gls-italy.com/")
String xmlCloseInfoParcel);
/**
* Elimina la spedizione.
*
* @param numSpedizione
* @param sedeGls
* @param codiceClienteGls
* @param passwordClienteGls
* @return
* returns https.labelservice_gls_italy.DeleteSpedResponse.DeleteSpedResult
*/
@WebMethod(operationName = "DeleteSped", action = "https://labelservice.gls-italy.com/DeleteSped")
@WebResult(name = "DeleteSpedResult", targetNamespace = "https://labelservice.gls-italy.com/")
@RequestWrapper(localName = "DeleteSped", targetNamespace = "https://labelservice.gls-italy.com/", className = "https.labelservice_gls_italy.DeleteSped")
@ResponseWrapper(localName = "DeleteSpedResponse", targetNamespace = "https://labelservice.gls-italy.com/", className = "https.labelservice_gls_italy.DeleteSpedResponse")
public com.labelservice_gls_italy.DeleteSpedResponse.DeleteSpedResult deleteSped(
@WebParam(name = "SedeGls", targetNamespace = "https://labelservice.gls-italy.com/")
String sedeGls,
@WebParam(name = "CodiceClienteGls", targetNamespace = "https://labelservice.gls-italy.com/")
String codiceClienteGls,
@WebParam(name = "PasswordClienteGls", targetNamespace = "https://labelservice.gls-italy.com/")
String passwordClienteGls,
@WebParam(name = "NumSpedizione", targetNamespace = "https://labelservice.gls-italy.com/")
String numSpedizione);
/**
* Restituisce l'elenco delle spedizioni registrate degli ultimi 4 mesi.
*
* @param sedeGls
* @param codiceClienteGls
* @param passwordClienteGls
* @return
* returns https.labelservice_gls_italy.ListSpedResponse.ListSpedResult
*/
@WebMethod(operationName = "ListSped", action = "https://labelservice.gls-italy.com/ListSped")
@WebResult(name = "ListSpedResult", targetNamespace = "https://labelservice.gls-italy.com/")
@RequestWrapper(localName = "ListSped", targetNamespace = "https://labelservice.gls-italy.com/", className = "https.labelservice_gls_italy.ListSped")
@ResponseWrapper(localName = "ListSpedResponse", targetNamespace = "https://labelservice.gls-italy.com/", className = "https.labelservice_gls_italy.ListSpedResponse")
public com.labelservice_gls_italy.ListSpedResponse.ListSpedResult listSped(
@WebParam(name = "SedeGls", targetNamespace = "https://labelservice.gls-italy.com/")
String sedeGls,
@WebParam(name = "CodiceClienteGls", targetNamespace = "https://labelservice.gls-italy.com/")
String codiceClienteGls,
@WebParam(name = "PasswordClienteGls", targetNamespace = "https://labelservice.gls-italy.com/")
String passwordClienteGls);
/**
* Restituisce l'elenco delle spedizioni registrate degli ultimi 4 mesi in base allo stato della spedizione. Stato: 0 = solo in attesa di chiusura, 1 = solo chiuse, non specificato = tutte
*
* @param stato
* @param sedeGls
* @param codiceClienteGls
* @param passwordClienteGls
* @return
* returns https.labelservice_gls_italy.ListSpedByStatoResponse.ListSpedByStatoResult
*/
@WebMethod(operationName = "ListSpedByStato", action = "https://labelservice.gls-italy.com/ListSpedByStato")
@WebResult(name = "ListSpedByStatoResult", targetNamespace = "https://labelservice.gls-italy.com/")
@RequestWrapper(localName = "ListSpedByStato", targetNamespace = "https://labelservice.gls-italy.com/", className = "https.labelservice_gls_italy.ListSpedByStato")
@ResponseWrapper(localName = "ListSpedByStatoResponse", targetNamespace = "https://labelservice.gls-italy.com/", className = "https.labelservice_gls_italy.ListSpedByStatoResponse")
public com.labelservice_gls_italy.ListSpedByStatoResponse.ListSpedByStatoResult listSpedByStato(
@WebParam(name = "SedeGls", targetNamespace = "https://labelservice.gls-italy.com/")
String sedeGls,
@WebParam(name = "CodiceClienteGls", targetNamespace = "https://labelservice.gls-italy.com/")
String codiceClienteGls,
@WebParam(name = "PasswordClienteGls", targetNamespace = "https://labelservice.gls-italy.com/")
String passwordClienteGls,
@WebParam(name = "Stato", targetNamespace = "https://labelservice.gls-italy.com/")
String stato);
/**
* Restituisce l'elenco delle spedizioni registrate all'interno delle date indicate; le date vanno inserite nel formato AAAAMMGGHHMM. (La parte HHMM e' facoltativa)
*
* @param dataInizio
* @param dataFine
* @param sedeGls
* @param codiceClienteGls
* @param passwordClienteGls
* @return
* returns https.labelservice_gls_italy.ListSpedPeriodResponse.ListSpedPeriodResult
*/
@WebMethod(operationName = "ListSpedPeriod", action = "https://labelservice.gls-italy.com/ListSpedPeriod")
@WebResult(name = "ListSpedPeriodResult", targetNamespace = "https://labelservice.gls-italy.com/")
@RequestWrapper(localName = "ListSpedPeriod", targetNamespace = "https://labelservice.gls-italy.com/", className = "https.labelservice_gls_italy.ListSpedPeriod")
@ResponseWrapper(localName = "ListSpedPeriodResponse", targetNamespace = "https://labelservice.gls-italy.com/", className = "https.labelservice_gls_italy.ListSpedPeriodResponse")
public com.labelservice_gls_italy.ListSpedPeriodResponse.ListSpedPeriodResult listSpedPeriod(
@WebParam(name = "SedeGls", targetNamespace = "https://labelservice.gls-italy.com/")
String sedeGls,
@WebParam(name = "CodiceClienteGls", targetNamespace = "https://labelservice.gls-italy.com/")
String codiceClienteGls,
@WebParam(name = "PasswordClienteGls", targetNamespace = "https://labelservice.gls-italy.com/")
String passwordClienteGls,
@WebParam(name = "DataInizio", targetNamespace = "https://labelservice.gls-italy.com/")
String dataInizio,
@WebParam(name = "DataFine", targetNamespace = "https://labelservice.gls-italy.com/")
String dataFine);
/**
* Restituisce l'elenco delle spedizioni registrate all'interno delle date indicate in base allo stato della spedizione specificato. Le date vanno inserite nel formato AAAAMMGGHHMM(La parte HHMM e' facoltativa); Stato: 0 = solo in attesa di chiusura, 1 = solo chiuse, non specificato = tutte
*
* @param stato
* @param dataInizio
* @param dataFine
* @param sedeGls
* @param codiceClienteGls
* @param passwordClienteGls
* @return
* returns https.labelservice_gls_italy.ListSpedPeriodByStatoResponse.ListSpedPeriodByStatoResult
*/
@WebMethod(operationName = "ListSpedPeriodByStato", action = "https://labelservice.gls-italy.com/ListSpedPeriodByStato")
@WebResult(name = "ListSpedPeriodByStatoResult", targetNamespace = "https://labelservice.gls-italy.com/")
@RequestWrapper(localName = "ListSpedPeriodByStato", targetNamespace = "https://labelservice.gls-italy.com/", className = "https.labelservice_gls_italy.ListSpedPeriodByStato")
@ResponseWrapper(localName = "ListSpedPeriodByStatoResponse", targetNamespace = "https://labelservice.gls-italy.com/", className = "https.labelservice_gls_italy.ListSpedPeriodByStatoResponse")
public com.labelservice_gls_italy.ListSpedPeriodByStatoResponse.ListSpedPeriodByStatoResult listSpedPeriodByStato(
@WebParam(name = "SedeGls", targetNamespace = "https://labelservice.gls-italy.com/")
String sedeGls,
@WebParam(name = "CodiceClienteGls", targetNamespace = "https://labelservice.gls-italy.com/")
String codiceClienteGls,
@WebParam(name = "PasswordClienteGls", targetNamespace = "https://labelservice.gls-italy.com/")
String passwordClienteGls,
@WebParam(name = "DataInizio", targetNamespace = "https://labelservice.gls-italy.com/")
String dataInizio,
@WebParam(name = "DataFine", targetNamespace = "https://labelservice.gls-italy.com/")
String dataFine,
@WebParam(name = "Stato", targetNamespace = "https://labelservice.gls-italy.com/")
String stato);
}

View File

@ -0,0 +1,120 @@
package com.labelservice_gls_italy;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="SedeGls" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="CodiceClienteGls" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="PasswordClienteGls" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"sedeGls",
"codiceClienteGls",
"passwordClienteGls"
})
@XmlRootElement(name = "ListSped")
public class ListSped {
@XmlElement(name = "SedeGls")
protected String sedeGls;
@XmlElement(name = "CodiceClienteGls")
protected String codiceClienteGls;
@XmlElement(name = "PasswordClienteGls")
protected String passwordClienteGls;
/**
* Recupera il valore della propriet<EFBFBD> sedeGls.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSedeGls() {
return sedeGls;
}
/**
* Imposta il valore della propriet<EFBFBD> sedeGls.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSedeGls(String value) {
this.sedeGls = value;
}
/**
* Recupera il valore della propriet<EFBFBD> codiceClienteGls.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCodiceClienteGls() {
return codiceClienteGls;
}
/**
* Imposta il valore della propriet<EFBFBD> codiceClienteGls.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCodiceClienteGls(String value) {
this.codiceClienteGls = value;
}
/**
* Recupera il valore della propriet<EFBFBD> passwordClienteGls.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPasswordClienteGls() {
return passwordClienteGls;
}
/**
* Imposta il valore della propriet<EFBFBD> passwordClienteGls.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPasswordClienteGls(String value) {
this.passwordClienteGls = value;
}
}

View File

@ -0,0 +1,148 @@
package com.labelservice_gls_italy;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="SedeGls" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="CodiceClienteGls" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="PasswordClienteGls" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="Stato" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"sedeGls",
"codiceClienteGls",
"passwordClienteGls",
"stato"
})
@XmlRootElement(name = "ListSpedByStato")
public class ListSpedByStato {
@XmlElement(name = "SedeGls")
protected String sedeGls;
@XmlElement(name = "CodiceClienteGls")
protected String codiceClienteGls;
@XmlElement(name = "PasswordClienteGls")
protected String passwordClienteGls;
@XmlElement(name = "Stato")
protected String stato;
/**
* Recupera il valore della propriet<EFBFBD> sedeGls.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSedeGls() {
return sedeGls;
}
/**
* Imposta il valore della propriet<EFBFBD> sedeGls.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSedeGls(String value) {
this.sedeGls = value;
}
/**
* Recupera il valore della propriet<EFBFBD> codiceClienteGls.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCodiceClienteGls() {
return codiceClienteGls;
}
/**
* Imposta il valore della propriet<EFBFBD> codiceClienteGls.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCodiceClienteGls(String value) {
this.codiceClienteGls = value;
}
/**
* Recupera il valore della propriet<EFBFBD> passwordClienteGls.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPasswordClienteGls() {
return passwordClienteGls;
}
/**
* Imposta il valore della propriet<EFBFBD> passwordClienteGls.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPasswordClienteGls(String value) {
this.passwordClienteGls = value;
}
/**
* Recupera il valore della propriet<EFBFBD> stato.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStato() {
return stato;
}
/**
* Imposta il valore della propriet<EFBFBD> stato.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStato(String value) {
this.stato = value;
}
}

View File

@ -0,0 +1,140 @@
package com.labelservice_gls_italy;
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.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlMixed;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="ListSpedByStatoResult" minOccurs="0">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;any/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"listSpedByStatoResult"
})
@XmlRootElement(name = "ListSpedByStatoResponse")
public class ListSpedByStatoResponse {
@XmlElement(name = "ListSpedByStatoResult")
protected ListSpedByStatoResponse.ListSpedByStatoResult listSpedByStatoResult;
/**
* Recupera il valore della propriet<EFBFBD> listSpedByStatoResult.
*
* @return
* possible object is
* {@link ListSpedByStatoResponse.ListSpedByStatoResult }
*
*/
public ListSpedByStatoResponse.ListSpedByStatoResult getListSpedByStatoResult() {
return listSpedByStatoResult;
}
/**
* Imposta il valore della propriet<EFBFBD> listSpedByStatoResult.
*
* @param value
* allowed object is
* {@link ListSpedByStatoResponse.ListSpedByStatoResult }
*
*/
public void setListSpedByStatoResult(ListSpedByStatoResponse.ListSpedByStatoResult value) {
this.listSpedByStatoResult = value;
}
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;any/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
public static class ListSpedByStatoResult {
@XmlMixed
@XmlAnyElement(lax = true)
protected List<Object> content;
/**
* Gets the value of the content 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 content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Object }
* {@link String }
*
*
*/
public List<Object> getContent() {
if (content == null) {
content = new ArrayList<Object>();
}
return this.content;
}
}
}

View File

@ -0,0 +1,176 @@
package com.labelservice_gls_italy;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="SedeGls" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="CodiceClienteGls" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="PasswordClienteGls" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="DataInizio" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="DataFine" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"sedeGls",
"codiceClienteGls",
"passwordClienteGls",
"dataInizio",
"dataFine"
})
@XmlRootElement(name = "ListSpedPeriod")
public class ListSpedPeriod {
@XmlElement(name = "SedeGls")
protected String sedeGls;
@XmlElement(name = "CodiceClienteGls")
protected String codiceClienteGls;
@XmlElement(name = "PasswordClienteGls")
protected String passwordClienteGls;
@XmlElement(name = "DataInizio")
protected String dataInizio;
@XmlElement(name = "DataFine")
protected String dataFine;
/**
* Recupera il valore della propriet<EFBFBD> sedeGls.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSedeGls() {
return sedeGls;
}
/**
* Imposta il valore della propriet<EFBFBD> sedeGls.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSedeGls(String value) {
this.sedeGls = value;
}
/**
* Recupera il valore della propriet<EFBFBD> codiceClienteGls.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCodiceClienteGls() {
return codiceClienteGls;
}
/**
* Imposta il valore della propriet<EFBFBD> codiceClienteGls.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCodiceClienteGls(String value) {
this.codiceClienteGls = value;
}
/**
* Recupera il valore della propriet<EFBFBD> passwordClienteGls.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPasswordClienteGls() {
return passwordClienteGls;
}
/**
* Imposta il valore della propriet<EFBFBD> passwordClienteGls.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPasswordClienteGls(String value) {
this.passwordClienteGls = value;
}
/**
* Recupera il valore della propriet<EFBFBD> dataInizio.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDataInizio() {
return dataInizio;
}
/**
* Imposta il valore della propriet<EFBFBD> dataInizio.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDataInizio(String value) {
this.dataInizio = value;
}
/**
* Recupera il valore della propriet<EFBFBD> dataFine.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDataFine() {
return dataFine;
}
/**
* Imposta il valore della propriet<EFBFBD> dataFine.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDataFine(String value) {
this.dataFine = value;
}
}

View File

@ -0,0 +1,204 @@
package com.labelservice_gls_italy;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="SedeGls" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="CodiceClienteGls" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="PasswordClienteGls" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="DataInizio" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="DataFine" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="Stato" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"sedeGls",
"codiceClienteGls",
"passwordClienteGls",
"dataInizio",
"dataFine",
"stato"
})
@XmlRootElement(name = "ListSpedPeriodByStato")
public class ListSpedPeriodByStato {
@XmlElement(name = "SedeGls")
protected String sedeGls;
@XmlElement(name = "CodiceClienteGls")
protected String codiceClienteGls;
@XmlElement(name = "PasswordClienteGls")
protected String passwordClienteGls;
@XmlElement(name = "DataInizio")
protected String dataInizio;
@XmlElement(name = "DataFine")
protected String dataFine;
@XmlElement(name = "Stato")
protected String stato;
/**
* Recupera il valore della propriet<EFBFBD> sedeGls.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSedeGls() {
return sedeGls;
}
/**
* Imposta il valore della propriet<EFBFBD> sedeGls.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSedeGls(String value) {
this.sedeGls = value;
}
/**
* Recupera il valore della propriet<EFBFBD> codiceClienteGls.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCodiceClienteGls() {
return codiceClienteGls;
}
/**
* Imposta il valore della propriet<EFBFBD> codiceClienteGls.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCodiceClienteGls(String value) {
this.codiceClienteGls = value;
}
/**
* Recupera il valore della propriet<EFBFBD> passwordClienteGls.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPasswordClienteGls() {
return passwordClienteGls;
}
/**
* Imposta il valore della propriet<EFBFBD> passwordClienteGls.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPasswordClienteGls(String value) {
this.passwordClienteGls = value;
}
/**
* Recupera il valore della propriet<EFBFBD> dataInizio.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDataInizio() {
return dataInizio;
}
/**
* Imposta il valore della propriet<EFBFBD> dataInizio.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDataInizio(String value) {
this.dataInizio = value;
}
/**
* Recupera il valore della propriet<EFBFBD> dataFine.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDataFine() {
return dataFine;
}
/**
* Imposta il valore della propriet<EFBFBD> dataFine.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDataFine(String value) {
this.dataFine = value;
}
/**
* Recupera il valore della propriet<EFBFBD> stato.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStato() {
return stato;
}
/**
* Imposta il valore della propriet<EFBFBD> stato.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStato(String value) {
this.stato = value;
}
}

View File

@ -0,0 +1,140 @@
package com.labelservice_gls_italy;
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.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlMixed;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="ListSpedPeriodByStatoResult" minOccurs="0">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;any/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"listSpedPeriodByStatoResult"
})
@XmlRootElement(name = "ListSpedPeriodByStatoResponse")
public class ListSpedPeriodByStatoResponse {
@XmlElement(name = "ListSpedPeriodByStatoResult")
protected ListSpedPeriodByStatoResponse.ListSpedPeriodByStatoResult listSpedPeriodByStatoResult;
/**
* Recupera il valore della propriet<EFBFBD> listSpedPeriodByStatoResult.
*
* @return
* possible object is
* {@link ListSpedPeriodByStatoResponse.ListSpedPeriodByStatoResult }
*
*/
public ListSpedPeriodByStatoResponse.ListSpedPeriodByStatoResult getListSpedPeriodByStatoResult() {
return listSpedPeriodByStatoResult;
}
/**
* Imposta il valore della propriet<EFBFBD> listSpedPeriodByStatoResult.
*
* @param value
* allowed object is
* {@link ListSpedPeriodByStatoResponse.ListSpedPeriodByStatoResult }
*
*/
public void setListSpedPeriodByStatoResult(ListSpedPeriodByStatoResponse.ListSpedPeriodByStatoResult value) {
this.listSpedPeriodByStatoResult = value;
}
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;any/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
public static class ListSpedPeriodByStatoResult {
@XmlMixed
@XmlAnyElement(lax = true)
protected List<Object> content;
/**
* Gets the value of the content 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 content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Object }
* {@link String }
*
*
*/
public List<Object> getContent() {
if (content == null) {
content = new ArrayList<Object>();
}
return this.content;
}
}
}

View File

@ -0,0 +1,140 @@
package com.labelservice_gls_italy;
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.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlMixed;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="ListSpedPeriodResult" minOccurs="0">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;any/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"listSpedPeriodResult"
})
@XmlRootElement(name = "ListSpedPeriodResponse")
public class ListSpedPeriodResponse {
@XmlElement(name = "ListSpedPeriodResult")
protected ListSpedPeriodResponse.ListSpedPeriodResult listSpedPeriodResult;
/**
* Recupera il valore della propriet<EFBFBD> listSpedPeriodResult.
*
* @return
* possible object is
* {@link ListSpedPeriodResponse.ListSpedPeriodResult }
*
*/
public ListSpedPeriodResponse.ListSpedPeriodResult getListSpedPeriodResult() {
return listSpedPeriodResult;
}
/**
* Imposta il valore della propriet<EFBFBD> listSpedPeriodResult.
*
* @param value
* allowed object is
* {@link ListSpedPeriodResponse.ListSpedPeriodResult }
*
*/
public void setListSpedPeriodResult(ListSpedPeriodResponse.ListSpedPeriodResult value) {
this.listSpedPeriodResult = value;
}
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;any/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
public static class ListSpedPeriodResult {
@XmlMixed
@XmlAnyElement(lax = true)
protected List<Object> content;
/**
* Gets the value of the content 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 content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Object }
* {@link String }
*
*
*/
public List<Object> getContent() {
if (content == null) {
content = new ArrayList<Object>();
}
return this.content;
}
}
}

View File

@ -0,0 +1,140 @@
package com.labelservice_gls_italy;
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.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlMixed;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="ListSpedResult" minOccurs="0">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;any/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"listSpedResult"
})
@XmlRootElement(name = "ListSpedResponse")
public class ListSpedResponse {
@XmlElement(name = "ListSpedResult")
protected ListSpedResponse.ListSpedResult listSpedResult;
/**
* Recupera il valore della propriet<EFBFBD> listSpedResult.
*
* @return
* possible object is
* {@link ListSpedResponse.ListSpedResult }
*
*/
public ListSpedResponse.ListSpedResult getListSpedResult() {
return listSpedResult;
}
/**
* Imposta il valore della propriet<EFBFBD> listSpedResult.
*
* @param value
* allowed object is
* {@link ListSpedResponse.ListSpedResult }
*
*/
public void setListSpedResult(ListSpedResponse.ListSpedResult value) {
this.listSpedResult = value;
}
/**
* <p>Classe Java per anonymous complex type.
*
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;any/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
public static class ListSpedResult {
@XmlMixed
@XmlAnyElement(lax = true)
protected List<Object> content;
/**
* Gets the value of the content 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 content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Object }
* {@link String }
*
*
*/
public List<Object> getContent() {
if (content == null) {
content = new ArrayList<Object>();
}
return this.content;
}
}
}

View File

@ -0,0 +1,253 @@
package com.labelservice_gls_italy;
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 https.labelservice_gls_italy 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 _Base64Binary_QNAME = new QName("https://labelservice.gls-italy.com/", "base64Binary");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: https.labelservice_gls_italy
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link ListSpedResponse }
*
*/
public ListSpedResponse createListSpedResponse() {
return new ListSpedResponse();
}
/**
* Create an instance of {@link GetZplResponse }
*
*/
public GetZplResponse createGetZplResponse() {
return new GetZplResponse();
}
/**
* Create an instance of {@link ListSpedPeriodByStatoResponse }
*
*/
public ListSpedPeriodByStatoResponse createListSpedPeriodByStatoResponse() {
return new ListSpedPeriodByStatoResponse();
}
/**
* Create an instance of {@link ListSpedByStatoResponse }
*
*/
public ListSpedByStatoResponse createListSpedByStatoResponse() {
return new ListSpedByStatoResponse();
}
/**
* Create an instance of {@link DeleteSpedResponse }
*
*/
public DeleteSpedResponse createDeleteSpedResponse() {
return new DeleteSpedResponse();
}
/**
* Create an instance of {@link AddParcelResponse }
*
*/
public AddParcelResponse createAddParcelResponse() {
return new AddParcelResponse();
}
/**
* Create an instance of {@link ListSpedPeriodResponse }
*
*/
public ListSpedPeriodResponse createListSpedPeriodResponse() {
return new ListSpedPeriodResponse();
}
/**
* Create an instance of {@link CloseWorkDayResponse }
*
*/
public CloseWorkDayResponse createCloseWorkDayResponse() {
return new CloseWorkDayResponse();
}
/**
* Create an instance of {@link ListSpedResponse.ListSpedResult }
*
*/
public ListSpedResponse.ListSpedResult createListSpedResponseListSpedResult() {
return new ListSpedResponse.ListSpedResult();
}
/**
* Create an instance of {@link ListSpedPeriod }
*
*/
public ListSpedPeriod createListSpedPeriod() {
return new ListSpedPeriod();
}
/**
* Create an instance of {@link GetPdfResponse }
*
*/
public GetPdfResponse createGetPdfResponse() {
return new GetPdfResponse();
}
/**
* Create an instance of {@link GetZpl }
*
*/
public GetZpl createGetZpl() {
return new GetZpl();
}
/**
* Create an instance of {@link GetZplResponse.GetZplResult }
*
*/
public GetZplResponse.GetZplResult createGetZplResponseGetZplResult() {
return new GetZplResponse.GetZplResult();
}
/**
* Create an instance of {@link ListSpedPeriodByStato }
*
*/
public ListSpedPeriodByStato createListSpedPeriodByStato() {
return new ListSpedPeriodByStato();
}
/**
* Create an instance of {@link ListSpedPeriodByStatoResponse.ListSpedPeriodByStatoResult }
*
*/
public ListSpedPeriodByStatoResponse.ListSpedPeriodByStatoResult createListSpedPeriodByStatoResponseListSpedPeriodByStatoResult() {
return new ListSpedPeriodByStatoResponse.ListSpedPeriodByStatoResult();
}
/**
* Create an instance of {@link GetPdf }
*
*/
public GetPdf createGetPdf() {
return new GetPdf();
}
/**
* Create an instance of {@link ListSpedByStatoResponse.ListSpedByStatoResult }
*
*/
public ListSpedByStatoResponse.ListSpedByStatoResult createListSpedByStatoResponseListSpedByStatoResult() {
return new ListSpedByStatoResponse.ListSpedByStatoResult();
}
/**
* Create an instance of {@link CloseWorkDay }
*
*/
public CloseWorkDay createCloseWorkDay() {
return new CloseWorkDay();
}
/**
* Create an instance of {@link DeleteSpedResponse.DeleteSpedResult }
*
*/
public DeleteSpedResponse.DeleteSpedResult createDeleteSpedResponseDeleteSpedResult() {
return new DeleteSpedResponse.DeleteSpedResult();
}
/**
* Create an instance of {@link ListSped }
*
*/
public ListSped createListSped() {
return new ListSped();
}
/**
* Create an instance of {@link AddParcelResponse.AddParcelResult }
*
*/
public AddParcelResponse.AddParcelResult createAddParcelResponseAddParcelResult() {
return new AddParcelResponse.AddParcelResult();
}
/**
* Create an instance of {@link DeleteSped }
*
*/
public DeleteSped createDeleteSped() {
return new DeleteSped();
}
/**
* Create an instance of {@link ListSpedPeriodResponse.ListSpedPeriodResult }
*
*/
public ListSpedPeriodResponse.ListSpedPeriodResult createListSpedPeriodResponseListSpedPeriodResult() {
return new ListSpedPeriodResponse.ListSpedPeriodResult();
}
/**
* Create an instance of {@link ListSpedByStato }
*
*/
public ListSpedByStato createListSpedByStato() {
return new ListSpedByStato();
}
/**
* Create an instance of {@link AddParcel }
*
*/
public AddParcel createAddParcel() {
return new AddParcel();
}
/**
* Create an instance of {@link CloseWorkDayResponse.CloseWorkDayResult }
*
*/
public CloseWorkDayResponse.CloseWorkDayResult createCloseWorkDayResponseCloseWorkDayResult() {
return new CloseWorkDayResponse.CloseWorkDayResult();
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}}
*
*/
@XmlElementDecl(namespace = "https://labelservice.gls-italy.com/", name = "base64Binary")
public JAXBElement<byte[]> createBase64Binary(byte[] value) {
return new JAXBElement<byte[]>(_Base64Binary_QNAME, byte[].class, null, ((byte[]) value));
}
}

View File

@ -0,0 +1,2 @@
@javax.xml.bind.annotation.XmlSchema(namespace = "https://labelservice.gls-italy.com/", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
package com.labelservice_gls_italy;

View File

@ -0,0 +1,128 @@
package com.poloinformatico.gls;
import javax.xml.bind.JAXBException;
import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;
import com.labelservice_gls_italy.AddParcelResponse.AddParcelResult;
import com.labelservice_gls_italy.CloseWorkDayResponse.CloseWorkDayResult;
import com.labelservice_gls_italy.DeleteSpedResponse.DeleteSpedResult;
import com.labelservice_gls_italy.GetZplResponse.GetZplResult;
import com.labelservice_gls_italy.IlsWebService;
import com.labelservice_gls_italy.IlsWebServiceSoap;
public class ClientGLS {
private static IlsWebService service;
private static IlsWebServiceSoap port;
public ClientGLS() throws Exception {
// controllo connessione SSL
Utils.SSLPoke("labelservice.gls-italy.com", 443);
service = new IlsWebService();
port = service.getIlsWebServiceSoap();
System.out.println("client ok");
}
/******** DELETE PARCEL **********/
public String sendDelete(String json) {
Gson gson = new Gson();
DeleteSpedReq req = gson.fromJson(json, DeleteSpedReq.class);
DeleteSpedResult res = port.deleteSped(req.getSedeGls(), req.getCodiceClienteGls(), req.getPasswordClienteGls(),
req.getNumSpedizione());
DeleteSpedRes res2 = Utils.deleteSpedRespUnmarsh(res);
return gson.toJson(res2, res2.getClass());
}
/***********GET ZPL*************/
public String sendGetZpl(String json) {
Gson gson = new Gson();
GetZplReq req = gson.fromJson(json, GetZplReq.class);
//port.getZpl(sedeGls, codiceCliente, password, codiceContratto, contatoreProgressivo)
GetZplResult res = port.getZpl(req.getSedeGls(), Integer.parseInt(req.getCodiceCliente()), req.getPassword(), Integer.parseInt(req.getCodiceContratto()), Long.parseLong(req.getContatoreProgressivo()));
GetZplRes res2 = Utils.getZplUnmarsh(res);
return gson.toJson(res2,res2.getClass());
}
/*******************************************************************************************
* ADD PARCEL
*/
public String sendInfo(String json) throws JsonSyntaxException, JAXBException {
Gson gson = new Gson();
InfoLabel res;
res = sendInfo(gson.fromJson(json, Info.class));
return gson.toJson(res, InfoLabel.class);
}
InfoLabel sendInfo(Info info) throws JAXBException {
InfoLabel ir = Utils.unmarshInfoLabel(AddParcel(Utils.infoToXML(info)));
return ir;
}
private AddParcelResult AddParcel(String xmlInfoParcel) throws JAXBException {
System.out.println(xmlInfoParcel);
AddParcelResult result = port.addParcel(xmlInfoParcel);
return result;
}
/***************************************************************************************
* CLOSE WORK DAY
*************************************/
/**
* riceve oggetto Info serializzato in json e lo invia, utilizza la porta
* CloseWorkDay
**/
public String sendCloseWorkDay(String json) throws JsonSyntaxException, JAXBException {
Gson gson = new Gson();
sendCloseWorkDay(gson.fromJson(json, Info.class));
// riflette il json inviato
return json;
}
void sendCloseWorkDay(Info info) throws JAXBException {
CloseWorkDay(Utils.infoToXML(info));
}
private CloseWorkDayResult CloseWorkDay(String xmlInfoParcel) throws JAXBException {
System.out.println(xmlInfoParcel);
CloseWorkDayResult result = port.closeWorkDay(xmlInfoParcel);
return result;
}
}

View File

@ -0,0 +1,53 @@
package com.poloinformatico.gls;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class DeleteSpedReq {
@XmlElement
private String SedeGls;
@XmlElement
private String CodiceClienteGls;
@XmlElement
private String PasswordClienteGls;
@XmlElement
private String NumSpedizione;
public String getSedeGls() {
return SedeGls;
}
public void setSedeGls(String sedeGls) {
SedeGls = sedeGls;
}
public String getCodiceClienteGls() {
return CodiceClienteGls;
}
public void setCodiceClienteGls(String codiceClienteGls) {
CodiceClienteGls = codiceClienteGls;
}
public String getNumSpedizione() {
return NumSpedizione;
}
public void setNumSpedizione(String numSpedizione) {
NumSpedizione = numSpedizione;
}
public String getPasswordClienteGls() {
return PasswordClienteGls;
}
public void setPasswordClienteGls(String passwordClienteGls) {
PasswordClienteGls = passwordClienteGls;
}
}

View File

@ -0,0 +1,19 @@
package com.poloinformatico.gls;
import javax.xml.bind.annotation.XmlElement;
public class DeleteSpedRes {
@XmlElement
private String DescrizioneErrore;
public String getDescrizioneErrore() {
return DescrizioneErrore;
}
public void setDescrizioneErrore(String descrizioneErrore) {
DescrizioneErrore = descrizioneErrore;
}
}

View File

@ -0,0 +1,65 @@
package com.poloinformatico.gls;
import javax.xml.bind.annotation.XmlElement;
public class GetZplReq {
@XmlElement
private String SedeGls;
@XmlElement
private String CodiceCliente;
@XmlElement
private String Password;
@XmlElement
private String CodiceContratto;
@XmlElement
private String ContatoreProgressivo;
public String getSedeGls() {
return SedeGls;
}
public void setSedeGls(String sedeGls) {
SedeGls = sedeGls;
}
public String getCodiceCliente() {
return CodiceCliente;
}
public void setCodiceCliente(String codiceCliente) {
CodiceCliente = codiceCliente;
}
public String getPassword() {
return Password;
}
public void setPassword(String password) {
Password = password;
}
public String getCodiceContratto() {
return CodiceContratto;
}
public void setCodiceContratto(String codiceContratto) {
CodiceContratto = codiceContratto;
}
public String getContatoreProgressivo() {
return ContatoreProgressivo;
}
public void setContatoreProgressivo(String contatoreProgressivo) {
ContatoreProgressivo = contatoreProgressivo;
}
}

View File

@ -0,0 +1,18 @@
package com.poloinformatico.gls;
import javax.xml.bind.annotation.XmlElement;
public class GetZplRes {
@XmlElement
private String Zpl;
public String getZpl() {
return Zpl;
}
public void setZpl(String zpl) {
Zpl = zpl;
}
}

View File

@ -0,0 +1,57 @@
package com.poloinformatico.gls;
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.XmlRootElement;
@XmlRootElement(name = "Info")
@XmlAccessorType(XmlAccessType.NONE)
public class Info {
@XmlElement(name = "SedeGls")
protected String SedeGls;
@XmlElement(name = "CodiceClienteGls")
protected String CodiceClienteGls;
@XmlElement(name = "PasswordClienteGls")
protected String PasswordClienteGls;
@XmlElement
protected List<Parcel> Parcel = new ArrayList<Parcel>();
public Info() {
}
public void addParcel(Parcel p) {
System.out.println("aggiungo parcel "+p.toString());
Parcel.add(p);
}
public String getSedeGls() {
return SedeGls;
}
public void setSedeGls(String sedeGls) {
SedeGls = sedeGls;
}
public String getCodiceClienteGls() {
return CodiceClienteGls;
}
public void setCodiceClienteGls(String codiceClienteGls) {
CodiceClienteGls = codiceClienteGls;
}
public String getPasswordClienteGls() {
return PasswordClienteGls;
}
public void setPasswordClienteGls(String passwordClienteGls) {
PasswordClienteGls = passwordClienteGls;
}
}

View File

@ -0,0 +1,38 @@
package com.poloinformatico.gls;
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.XmlRootElement;
@XmlRootElement(name="")
@XmlAccessorType(XmlAccessType.FIELD)
public class InfoLabel {
@XmlElement(name="content")
private List<InfoLabelParcel> Parcel=new ArrayList<InfoLabelParcel>();
public List<InfoLabelParcel> getParcel() {
return Parcel;
}
public void setParcel(List<InfoLabelParcel> parcel) {
Parcel = parcel;
}
public void addInfoLabelParcel(InfoLabelParcel p) {
this.Parcel.add(p);
}
public int getCount() {
try {
return this.Parcel.size();
}catch (Exception ex) {
return 0;
}
}
}

View File

@ -0,0 +1,61 @@
package com.poloinformatico.gls;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@XmlAccessorType(XmlAccessType.FIELD)
public class InfoLabelParcel {
@XmlElement
private String PdfLabel;
@XmlElement
private String ContatoreProgressivo;
@XmlElement
private String NumeroSpedizione;
@XmlElement
private String SiglaMittente;
@XmlElement
private String Zpl;
public String getContatoreProgressivo() {
return ContatoreProgressivo;
}
public void setContatoreProgressivo(String contatoreProgressivo) {
this.ContatoreProgressivo = contatoreProgressivo;
}
public String getPdfLabel() {
return PdfLabel;
}
public void setPdfLabel(String pdfLabel) {
PdfLabel = pdfLabel;
}
public String getNumeroSpedizione() {
return NumeroSpedizione;
}
public void setNumeroSpedizione(String numeroSpedizione) {
NumeroSpedizione = numeroSpedizione;
}
public String getSiglaMittente() {
return SiglaMittente;
}
public void setSiglaMittente(String siglaMittente) {
SiglaMittente = siglaMittente;
}
public String getZpl() {
return Zpl;
}
public void setZpl(String zpl) {
Zpl = zpl;
}
}

View File

@ -0,0 +1,26 @@
package com.poloinformatico.gls;
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.XmlRootElement;
@XmlRootElement(name="ListParcel")
@XmlAccessorType(XmlAccessType.FIELD)
public class ListParcel {
private List<ListParcelParcel> Parcel = new ArrayList<ListParcelParcel>();
public List<ListParcelParcel> getParcels() {
return Parcel;
}
public void setParcels(List<ListParcelParcel> parcels) {
Parcel = parcels;
}
}

View File

@ -0,0 +1,10 @@
package com.poloinformatico.gls;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
@XmlAccessorType(XmlAccessType.FIELD)
public class ListParcelParcel {
}

View File

@ -0,0 +1,321 @@
package com.poloinformatico.gls;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@XmlAccessorType(XmlAccessType.NONE)
public class Parcel {
@XmlElement
protected String CodiceContrattoGls;
@XmlElement
protected String RagioneSociale;
@XmlElement
protected String Indirizzo;
@XmlElement
protected String Localita;
@XmlElement
protected String Zipcode;
@XmlElement
private String Provincia;
@XmlElement
private String Bda;
@XmlElement
private String Colli;
@XmlElement
private String PesoReale;
@XmlElement
private String Importocontrassegno;
@XmlElement
private String NoteSpedizione;
@XmlElement
private String TipoPorto;
@XmlElement
private String Assicurazione;
@XmlElement
private String PesoVolume;
@XmlElement
private String RiferimentoCliente;
@XmlElement
private String NoteAggiuntive;
@XmlElement
private String CodiceClienteDestinatario;
@XmlElement
private String TipoCollo;//4=>PLUS,0=>NORMALE
@XmlElement
private String Email;
@XmlElement
private String Cellulare1;
@XmlElement
private String ServiziAccessori;
@XmlElement
private String ModalitaIncasso;
@XmlElement
private String GeneraPdf;
@XmlElement
private String FormatoPdf;
@XmlElement
private String ContatoreProgressivo;
@XmlElement
private String AssicurazioneIntegrativa;
@XmlElement
private String DataPrenotazioneGDO;//AAMMGG
@XmlElement
private String OrarioNoteGDO;
public Parcel() {
}
public String getRagioneSociale() {
return RagioneSociale;
}
public void setRagioneSociale(String ragioneSociale) {
RagioneSociale = Utils.preEncodeSpecial(ragioneSociale);
}
public String getCodiceContrattoGls() {
return CodiceContrattoGls;
}
public void setCodiceContrattoGls(String codiceContrattoGls) {
CodiceContrattoGls = codiceContrattoGls;
}
public String getIndirizzo() {
return Indirizzo;
}
public void setIndirizzo(String indirizzo) {
Indirizzo = Utils.preEncodeSpecial(indirizzo);
}
public String getLocalita() {
return Localita;
}
public void setLocalita(String localita) {
Localita = Utils.preEncodeSpecial(localita);
}
public String getZipcode() {
return Zipcode;
}
public void setZipcode(String zipcode) {
this.Zipcode = zipcode;
}
public String getProvincia() {
return Provincia;
}
public void setProvincia(String provincia) {
Provincia = Utils.preEncodeSpecial(provincia);
}
public String getBda() {
return Bda;
}
public void setBda(String bda) {
Bda = bda;
}
public String getColli() {
return Colli;
}
public void setColli(String colli) {
Colli = colli;
}
public String getPesoReale() {
return PesoReale;
}
public void setPesoReale(String pesoReale) {
PesoReale = pesoReale;
}
public String getImportocontrassegno() {
return Importocontrassegno;
}
public void setImportocontrassegno(String importocontrassegno) {
Importocontrassegno = importocontrassegno;
}
public String getCodiceClienteDestinatario() {
return CodiceClienteDestinatario;
}
public void setCodiceClienteDestinatario(String codiceClienteDestinatario) {
CodiceClienteDestinatario = codiceClienteDestinatario;
}
public String getModalitaIncasso() {
return ModalitaIncasso;
}
public void setModalitaIncasso(String modalitaIncasso) {
ModalitaIncasso = modalitaIncasso;
}
public String getContatoreProgressivo() {
return ContatoreProgressivo;
}
public void setContatoreProgressivo(String contatoreProgressivo) {
ContatoreProgressivo = contatoreProgressivo;
}
public String getGeneraPdf() {
return GeneraPdf;
}
public void setGeneraPdf(String generaPdf) {
GeneraPdf = generaPdf;
}
public String getFormatoPdf() {
return FormatoPdf;
}
public void setFormatoPdf(String formatoPdf) {
FormatoPdf = formatoPdf;
}
public String getAssicurazione() {
return Assicurazione;
}
public void setAssicurazione(String assicurazione) {
Assicurazione = assicurazione;
}
public String getTipoCollo() {
return TipoCollo;
}
public void setTipoCollo(String tipoCollo) {
TipoCollo = tipoCollo;
}
public String getNoteSpedizione() {
return NoteSpedizione;
}
public void setNoteSpedizione(String noteSpedizione) {
NoteSpedizione = Utils.preEncodeSpecial(noteSpedizione);
}
public String getTipoPorto() {
return TipoPorto;
}
public void setTipoPorto(String tipoPorto) {
TipoPorto = tipoPorto;
}
public String getEmail() {
return Email;
}
public void setEmail(String email) {
Email = email;
}
public String getCellulare1() {
return Cellulare1;
}
public void setCellulare1(String cellulare1) {
Cellulare1 = cellulare1;
}
public String getServiziAccessori() {
return ServiziAccessori;
}
public void setServiziAccessori(String serviziAccessori) {
ServiziAccessori = serviziAccessori;
}
public String getNoteAggiuntive() {
return NoteAggiuntive;
}
public void setNoteAggiuntive(String noteAggiuntive) {
NoteAggiuntive = Utils.preEncodeSpecial(noteAggiuntive);
}
public String getRiferimentoCliente() {
return RiferimentoCliente;
}
public void setRiferimentoCliente(String riferimentoCliente) {
RiferimentoCliente = riferimentoCliente;
}
public String getPesoVolume() {
return PesoVolume;
}
public void setPesoVolume(String pesoVolume) {
PesoVolume = pesoVolume;
}
public String getAssicurazioneIntegrativa() {
return AssicurazioneIntegrativa;
}
public void setAssicurazioneIntegrativa(String assicurazioneIntegrativa) {
AssicurazioneIntegrativa = assicurazioneIntegrativa;
}
public String getDataPrenotazioneGDO() {
return DataPrenotazioneGDO;
}
public void setDataPrenotazioneGDO(String dataPrenotazioneGDO) {
DataPrenotazioneGDO = dataPrenotazioneGDO;
}
public String getOrarioNoteGDO() {
return OrarioNoteGDO;
}
public void setOrarioNoteGDO(String orarioNoteGDO) {
OrarioNoteGDO = orarioNoteGDO;
}
}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,446 @@
package com.poloinformatico.gls;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.Base64;
import java.util.List;
import java.util.Locale;
import java.util.Scanner;
import javax.net.ssl.SSLParameters;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
import javax.xml.transform.SourceLocator;
import javax.xml.transform.Templates;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.stream.StreamSource;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.text.StringEscapeUtils;
import org.apache.pdfbox.io.MemoryUsageSetting;
import org.apache.pdfbox.multipdf.PDFMergerUtility;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;
import org.apache.pdfbox.pdmodel.common.PDRectangle;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import com.labelservice_gls_italy.AddParcelResponse.AddParcelResult;
import com.labelservice_gls_italy.DeleteSpedResponse.DeleteSpedResult;
import com.labelservice_gls_italy.GetZplResponse.GetZplResult;
public class Utils {
public static String infoToXML(Info x) throws JAXBException {
System.out.println("infoToXml");
JAXBContext jaxbContext = JAXBContext.newInstance(Info.class);
Marshaller jaxbMarshaller = jaxbContext.createMarshaller();
jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
StringWriter sw = new StringWriter();
jaxbMarshaller.marshal(x, sw);
String xmlContent = sw.toString();
return postEncodeSpecial(xmlContent);//!!!
}
public static InfoLabel unmarshInfoLabel(AddParcelResult in/* Node node */) throws JAXBException {
Object content = in.getContent().get(0);
// JAXBContext context = JAXBContext.newInstance(AddParcelResult.class);
// Unmarshaller um = context.createUnmarshaller();
// InfoLabel apr = (InfoLabel)um.unmarshal((Node)content);
InfoLabel il = new InfoLabel();
Element e = (Element) content;// root
NodeList nl1 = e.getChildNodes();
for (int i = 0; i < nl1.getLength(); i++) {
InfoLabelParcel ilp = new InfoLabelParcel();
Node n1 = nl1.item(i);
NodeList nl2 = n1.getChildNodes();
for (int j = 0; j < nl2.getLength(); j++) {
// CAMPI InfoLabelParcel
try {
if (nl2.item(j).getNodeName().equals("PdfLabel")) {
ilp.setPdfLabel(nl2.item(j).getChildNodes().item(0).getNodeValue());
}
if (nl2.item(j).getNodeName().equals("ContatoreProgressivo")) {
ilp.setContatoreProgressivo(nl2.item(j).getChildNodes().item(0).getNodeValue());
}
if (nl2.item(j).getNodeName().equals("NumeroSpedizione")) {
ilp.setNumeroSpedizione(nl2.item(j).getChildNodes().item(0).getNodeValue());
}
if (nl2.item(j).getNodeName().equals("Zpl")) {
ilp.setZpl(nl2.item(j).getChildNodes().item(0).getNodeValue());
}
} catch (Exception ex) {
continue;
}
}
il.addInfoLabelParcel(ilp);
}
return il;
}
// public static String deleteSpedToXml(DeleteSpedReq x) throws JAXBException {
//
// JAXBContext jaxbContext = JAXBContext.newInstance(DeleteSpedReq.class);
// Marshaller jaxbMarshaller = jaxbContext.createMarshaller();
// jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
// StringWriter sw = new StringWriter();
// jaxbMarshaller.marshal(x, sw);
// String xmlContent = sw.toString();
//
// return xmlContent;
//
// }
public static DeleteSpedRes deleteSpedRespUnmarsh(DeleteSpedResult in) {
Object content = in.getContent().get(0);
DeleteSpedRes il = new DeleteSpedRes();
Element e = (Element) content;// root
Node n1 = e.getFirstChild();
e.getAttribute("DescrizioneErrore");
n1.getNodeValue();
il.setDescrizioneErrore(n1.getNodeValue());
return il;
}
public static GetZplRes getZplUnmarsh(GetZplResult in) {
Object content = in.getContent().get(0);
GetZplRes il = new GetZplRes();
Element e = (Element) content;// root
Node n1 = e.getFirstChild();
e.getAttribute("Zpl");
n1.getNodeValue();
il.setZpl(n1.getNodeValue());
return il;
}
public static String formatDouble(Double d) {
System.out.println(d);
Locale fmtLocale = Locale.ITALY;
NumberFormat formatter = NumberFormat.getInstance(fmtLocale);
formatter.setMaximumFractionDigits(2);
formatter.setMinimumFractionDigits(2);
formatter.setGroupingUsed(false);
System.out.println(formatter.format(d));
System.out.println(fmtLocale.toLanguageTag());
return formatter.format(d);
/*
DecimalFormatSymbols unusualSymbols =
new DecimalFormatSymbols(fmtLocale);
unusualSymbols.setDecimalSeparator(',');
unusualSymbols.setGroupingUsed(false);
String pattern = "###,##";
DecimalFormat myFormatter = new DecimalFormat(pattern);
df.set
String output = myFormatter.format(d);
//System.out.println(value + " " + pattern + " " + output);
return output;*/
}
public static void SSLPoke(String url, int port) throws Exception {
try {
SSLSocketFactory sslsocketfactory = (SSLSocketFactory) SSLSocketFactory.getDefault();
SSLSocket sslsocket = (SSLSocket) sslsocketfactory.createSocket(url, port);
SSLParameters sslparams = new SSLParameters();
sslparams.setEndpointIdentificationAlgorithm("HTTPS");
sslsocket.setSSLParameters(sslparams);
InputStream in = sslsocket.getInputStream();
OutputStream out = sslsocket.getOutputStream();
// Write a test byte to get a reaction :)
out.write(1);
while (in.available() > 0) {
System.out.print(in.read());
}
System.out.println("** SSL OK **");
} catch (Exception e) {
System.out.println("*** ERRORE SSL");
throw (new Exception("ERRORE CONNESSIONE SSL - CONTROLLARE CONNETTIVITA INTERNET"));
}
}
public static String writeZplToDisk(String in, String nomeFile) throws FileNotFoundException {
try (PrintWriter out = new PrintWriter(nomeFile)) {
out.println(in);
return nomeFile;
}
}
public static String mergeZpl(ArrayList<String> paths, String fullPathDest) throws IOException {
String res;
String merged = "";
Scanner scanner = null;
Scanner scanner2 = null;
try {
for (String s : paths) {
scanner2 = new Scanner(new File(s));
scanner = scanner2.useDelimiter("\\Z");
merged += scanner.next();
// PER ZPL AGGIUNGO LINEFEED PRIMA DELLA PROSSIMA PAGINA
merged += "\n";
}
} catch (IOException e) {
merged = null;
} finally {
scanner.close();
scanner2.close();
}
File file = new File(fullPathDest);
try (FileWriter fr = new FileWriter(file, false)) {
fr.write(merged);
res = fullPathDest;
} catch (Exception e) {
res = null;
}
return res;
}
/** PDF **/
/** in => Stringa da convertire, nomeFile => path assoluto file **/
public static String writePdfToDisk(/* input base64 */String in, /* path assoluto file output */String nomeFile) {
byte[] arrByte = in.getBytes();
String res = null;
FileOutputStream fos1 = null;
try {
fos1 = new FileOutputStream(nomeFile);
Base64.Decoder dec1 = Base64.getDecoder();
InputStream is1 = dec1.wrap(new ByteArrayInputStream(arrByte));
int _byte;
while ((_byte = is1.read()) != -1)
fos1.write(_byte);
is1.close();
PDDocument doc = PDDocument.load(new File(nomeFile));
PDPage page = doc.getPage(0);
page.setCropBox(new PDRectangle(0, 135, 360, 360));
doc.save(nomeFile);
doc.close();
res = nomeFile;
} catch (IOException ioe) {
System.err.printf("I/O error: %s%n", ioe.getMessage());
res = null;
} finally {
/*
* try { fos1.close(); } catch (IOException e) { // TODO Auto-generated catch
* block e.printStackTrace(); }
*/
}
return res;
}
/**
* prende lista di path completi, li fonde in sequenza e scrive file output
* merge in fullPathDest
**/
public static String mergePdf(ArrayList<String> paths, String fullPathDest) {
PDFMergerUtility ut = new PDFMergerUtility();
String res = null;
try {
for (String s : paths) {
ut.addSource(s);
}
ut.setDestinationFileName(fullPathDest);
ut.mergeDocuments(MemoryUsageSetting.setupTempFileOnly());
res = fullPathDest;
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
res = null;
}
return res;
}
/** XSLT **/
// This method applies the xslFilename to inFilename and writes
// the output to outFilename.
// public static void xsl(String inFilename, String outFilename, String xslFilename) {
// try {
// // Create transformer factory
// TransformerFactory factory = TransformerFactory.newInstance();
//
// // Use the factory to create a template containing the xsl file
// Templates template = factory.newTemplates(new StreamSource(new FileInputStream(xslFilename)));
//
// // Use the template to create a transformer
// Transformer xformer = template.newTransformer();
//
// // Prepare the input and output files
// Source source = new StreamSource(new FileInputStream(inFilename));
// Result result = new StreamResult(new FileOutputStream(outFilename));
//
// // Apply the xsl file to the source file and write the result
// // to the output file
// xformer.transform(source, result);
// } catch (FileNotFoundException e) {
// System.err.print(e.getMessage());
// } catch (TransformerConfigurationException e) {
// // An error occurred in the XSL file
// System.err.print(e.getMessage());
// } catch (TransformerException e) {
// // An error occurred while applying the XSL file
// // Get location of error in input file
// SourceLocator locator = e.getLocator();
// int col = locator.getColumnNumber();
// int line = locator.getLineNumber();
// String publicId = locator.getPublicId();
// String systemId = locator.getSystemId();
//
// System.err.print(e.getMessage());
// }
// }
public static String xmlToHtml(String xmlContent) {
String out;
xmlContent = xmlContent.trim().replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("\n", "<br />")
.replaceAll(" ", "&nbsp;");
out = "<html><body>" + xmlContent + "</body></html>";
return out;
}
// private static String stringToCsvString_1(ArrayList<String> in) {
// String res = "";
// try {
// res = in.stream().filter(StringUtils::isNotBlank).collect(Collectors.joining(","));
// } catch (Exception e) {
// res = "";
// }
// return res;
// }
public static String stringToCsvString_2(List<String> in) throws Exception {
String res = "";
try {
StringBuilder csvBuilder = new StringBuilder();
for (String s : in) {
if (s != null && !s.trim().equals("")) {
csvBuilder.append(s);
csvBuilder.append(",");
}
}
String csv = csvBuilder.toString();
if (csv.length() > 0) {
res = csv.substring(0, csv.length() - ",".length());
}else res="";
} catch (Exception e) {
res = "";
}
return res;
}
// public static String encodeXml(String in) {
//
// String res = in;
//// res = in.replaceAll("&", "&amp;");
//// res = res.replaceAll("\'", "&#39;");
//// res = res.replaceAll("\"", "&quot;");
//
// return res;
// }
public static String preEncodeSpecial(String in) {
String res = in;
res = res.replaceAll("\'", "#\'#");
res = res.replaceAll("\"", "#\"#");
return res;
}
public static String postEncodeSpecial(String in) {
String res = in;
res = res.replaceAll("#\'#", "&#39;");
res = res.replaceAll("#\"#", "&quot;");
return res;
}
}

View File

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h2>Stato Spedizioni G.L.S.</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th>Data</th>
<th>Num. Spedizione</th>
<th>Riferimenti Cliente</th>
<th>Ddt</th>
<th>Denominazione Destinatario</th>
<th>Citta Destinatario</th>
<th>Provincia Destinatario</th>
<th>Indirizzo Destinatario</th>
<th>Totale Colli</th>
<th>Peso Spedizione</th>
<th>Stato Spedizione</th>
</tr>
<xsl:for-each select="ListParcel/Parcel">
<tr>
<td><xsl:value-of select="Data"/></td>
<td><xsl:value-of select="NumSpedizione"/></td>
<td><xsl:value-of select="RiferimentiCliente"/></td>
<td><xsl:value-of select="Ddt"/></td>
<td><xsl:value-of select="DenominazioneDestinatario"/></td>
<td><xsl:value-of select="CittaDestinatario"/></td>
<td><xsl:value-of select="ProvinciaDestinatario"/></td>
<td><xsl:value-of select="IndirizzoDestinatario"/></td>
<td><xsl:value-of select="TotaleColli"/></td>
<td><xsl:value-of select="PesoSpedizione"/></td>
<td><xsl:value-of select="StatoSpedizione"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

View File

@ -0,0 +1,64 @@
package com.poloinformatico.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.stream.Collectors;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.poloinformatico.gls.ClientGLS;
/**
* Servlet implementation class gls_addparcel
*/
public class gls_addparcel extends HttpServlet {
private static final long serialVersionUID = 1L;
/**
* @see HttpServlet#HttpServlet()
*/
public gls_addparcel() {
super();
// TODO Auto-generated constructor stub
}
/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse
* response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
try {
String body = request.getReader().lines().collect(Collectors.joining());
ClientGLS cli = new ClientGLS();
String result = cli.sendInfo(body);
PrintWriter out = response.getWriter();
response.setContentType("application/json");
response.setCharacterEncoding("UTF-8");
out.print(result);
out.flush();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse
* response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
doGet(request, response);
}
}

View File

@ -0,0 +1,59 @@
package com.poloinformatico.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.stream.Collectors;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.poloinformatico.gls.ClientGLS;
/**
* Servlet implementation class gls_closeworkday
*/
public class gls_closeworkday extends HttpServlet {
private static final long serialVersionUID = 1L;
/**
* @see HttpServlet#HttpServlet()
*/
public gls_closeworkday() {
super();
// TODO Auto-generated constructor stub
}
/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
try {
String body = request.getReader().lines().collect(Collectors.joining());
ClientGLS cli = new ClientGLS();
String result = cli.sendCloseWorkDay(body);
PrintWriter out = response.getWriter();
response.setContentType("application/json");
response.setCharacterEncoding("UTF-8");
out.print(result);
out.flush();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
doGet(request, response);
}
}

View File

@ -0,0 +1,65 @@
package com.poloinformatico.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.stream.Collectors;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.poloinformatico.gls.ClientGLS;
/**
* Servlet implementation class gls_deletesped
*/
public class gls_deletesped extends HttpServlet {
private static final long serialVersionUID = 1L;
/**
* @see HttpServlet#HttpServlet()
*/
public gls_deletesped() {
super();
// TODO Auto-generated constructor stub
}
/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
try {
System.out.println("DOGET");
String body = request.getReader().lines().collect(Collectors.joining());
ClientGLS cli = new ClientGLS();
String result = cli.sendDelete(body);
System.out.println("gls_deletesped RESULT: "+result);
PrintWriter out = response.getWriter();
response.setContentType("application/json");
response.setCharacterEncoding("UTF-8");
out.print(result);
out.flush();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
doGet(request, response);
}
}

View File

@ -0,0 +1,63 @@
package com.poloinformatico.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.stream.Collectors;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.poloinformatico.gls.ClientGLS;
/**
* Servlet implementation class gls_getzpl
*/
public class gls_getzpl extends HttpServlet {
private static final long serialVersionUID = 1L;
/**
* @see HttpServlet#HttpServlet()
*/
public gls_getzpl() {
super();
// TODO Auto-generated constructor stub
}
/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
try {
System.out.println("DOGET");
String body = request.getReader().lines().collect(Collectors.joining());
ClientGLS cli = new ClientGLS();
String result = cli.sendGetZpl(body);
System.out.println("gls_getzpl RESULT: "+result);
PrintWriter out = response.getWriter();
response.setContentType("application/json");
response.setCharacterEncoding("UTF-8");
out.print(result);
out.flush();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
doGet(request, response);
}
}

View File

@ -0,0 +1,39 @@
package com.poloinformatico.servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Servlet implementation class gls_listsped
*/
public class gls_listsped extends HttpServlet {
private static final long serialVersionUID = 1L;
/**
* @see HttpServlet#HttpServlet()
*/
public gls_listsped() {
super();
// TODO Auto-generated constructor stub
}
/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
response.getWriter().append("Served at: ").append(request.getContextPath());
}
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
doGet(request, response);
}
}

View File

@ -0,0 +1,63 @@
package com.poloinformatico.tnt;
import com.ancientprogramming.fixedformat4j.format.FixedFormatManager;
import com.ancientprogramming.fixedformat4j.format.impl.FixedFormatManagerImpl;
import com.poloinformatico.tnt.ents.TntSpedRow;
public class Test {
public static void main(String[] args) {
TntSpedRow r = new TntSpedRow();
r.setNazInt("D");
r.setIdMittente("IT_GESCOM01M");
r.setNazione("IT");
r.setTipoRecord("A");
r.setPeso(14300);
r.setVolume(0);
r.setNumeroColli(2);
r.setDivisione("D");
r.setServizio("NC");
r.setValoreAssic(100050);
r.setValutaAssic("EUR");
r.setRifMittente("FT17551");
r.setIstruzioniOperative("istruzioni operative");
r.setTerminiPagamento("S");
r.setSourceSystem("ED");
r.setVersion("1.0");
r.setMitt("S");
//r.setMittPariva("");//FORMATO IT XXXXXXXXXXX
r.setMittIndir("indirizzo mittente");
r.setMittCAP("12345");
r.setMittNaz("IT");
r.setMittPreTel("");
r.setMittNumTel("");
r.setMittProv("VT");
r.setMittRagSoc("GESCOM SPA");
/*sezione destinatario*/
r.setDest("R");
r.setDestCAP("");
r.setDestCitta("ROMA");
//r.setDestContatto("");
r.setDestInd1("INDIRIZZO DEST");
r.setDestNaz("IT");
//r.setDestNumFax("");
//r.setDestNumTel("");
r.setDestPariva("");
FixedFormatManager manager = new FixedFormatManagerImpl();
String exportedString = manager.export(r);
System.out.println(exportedString);
}
}

View File

@ -0,0 +1,437 @@
package com.poloinformatico.tnt.ents;
import com.ancientprogramming.fixedformat4j.annotation.Align;
import com.ancientprogramming.fixedformat4j.annotation.Field;
import com.ancientprogramming.fixedformat4j.annotation.Record;
@Record
public class TntSpedRow {
private String nazInt;
private String idMittente;
private String nazione;
private String tipoRecord;
private int dettCollo;
private int peso;//virgola virtuale, 3 decimali
private int volume;
private int numeroColli;
private String divisione;
private String servizio;
private int valoreAssic;
private String valutaAssic;
//private String descrImballo;
private String rifMittente;
private String istruzioniOperative;
private String terminiPagamento;//S=>MITTENTE,R=>DESTINATARIO
private String sourceSystem;
private String version;
//private String descrizioneMerce;
/*sezione mittente*/
private String mitt;
private String mittPariva;//FORMATO IT XXXXXXXXXXX
private String mittIndir;
private String mittCAP;
private String mittNaz;
private String mittPreTel;
private String mittNumTel;
private String mittRagSoc;
private String mittCitta;
private String mittContatto;
//private String mittPreFax;
//private String mittNumFax;
private String mittProv;
/*sezione destinatario*/
private String dest;
private String destPariva;//FORMATO IT XXXXXXXXXXX
private String destInd1;
private String destCAP;
private String destNaz;
private String destPreTel;
private String destNumTel;
private String destRagSoc;
private String destCitta;
private String destContatto;
private String destPreFax;
private String destNumFax;
private String destProv;
@Field(offset=1,length = 1)
public String getNazInt() {
return nazInt;
}
public void setNazInt(String nazInt) {
this.nazInt = nazInt;
}
@Field(offset=2,length=12)
public String getIdMittente() {
return idMittente;
}
public void setIdMittente(String idMittente) {
this.idMittente = idMittente;
}
@Field(offset=22,length=3)
public String getNazione() {
return nazione;
}
public void setNazione(String nazione) {
this.nazione = nazione;
}
@Field(offset=49,length=1)
public String gettipoRecord() {
return tipoRecord;
}
public void setTipoRecord(String tipoRecord) {
this.tipoRecord = tipoRecord;
}
@Field(offset=50,length=5,align = Align.LEFT,paddingChar = '0')
public int getDettCollo() {
return dettCollo;
}
public void setDettCollo(int dettCollo) {
this.dettCollo = dettCollo;
}
@Field(offset=55,length=8,align=Align.RIGHT,paddingChar = '0')
public int getPeso() {
return peso;
}
public void setPeso(int peso) {
this.peso = peso;
}
@Field(offset=63,length=7,align=Align.RIGHT,paddingChar = '0')
public int getVolume() {
return volume;
}
public void setVolume(int volume) {
this.volume = volume;
}
@Field(offset=70,length=5,align=Align.RIGHT,paddingChar = '0')
public int getNumeroColli() {
return numeroColli;
}
public void setNumeroColli(int numeroColli) {
this.numeroColli = numeroColli;
}
@Field(offset=75,length = 3)
public String getDivisione() {
return divisione;
}
public void setDivisione(String divisione) {
this.divisione = divisione;
}
@Field(offset=78,length = 4)
public String getServizio() {
return servizio;
}
public void setServizio(String servizio) {
this.servizio = servizio;
}
@Field(offset = 82, length = 13,align=Align.RIGHT,paddingChar = '0')
public int getValoreAssic() {
return valoreAssic;
}
public void setValoreAssic(int valoreAssic) {
this.valoreAssic = valoreAssic;
}
@Field(offset=95,length = 3)
public String getValutaAssic() {
return valutaAssic;
}
public void setValutaAssic(String valutaAssic) {
this.valutaAssic = valutaAssic;
}
@Field(offset=118,length=24)
public String getRifMittente() {
return rifMittente;
}
public void setRifMittente(String rifMittente) {
this.rifMittente = rifMittente;
}
@Field(offset=142,length=60)
public String getIstruzioniOperative() {
return istruzioniOperative;
}
public void setIstruzioniOperative(String istruzioniOperative) {
this.istruzioniOperative = istruzioniOperative;
}
@Field(offset=202,length=1)
public String getTerminiPagamento() {
return terminiPagamento;
}
public void setTerminiPagamento(String terminiPagamento) {
this.terminiPagamento = terminiPagamento;
}
@Field(offset=203,length=2)
public String getSourceSystem() {
return sourceSystem;
}
public void setSourceSystem(String sourceSystem) {
this.sourceSystem = sourceSystem;
}
@Field(offset=205,length=5)
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
@Field(offset=240,length=1)
public String getMitt() {
return mitt;
}
public void setMitt(String mitt) {
this.mitt = mitt;
}
@Field(offset=242,length=20)
public String getMittPariva() {
return mittPariva;
}
public void setMittPariva(String mittPariva) {
this.mittPariva = mittPariva;
}
@Field(offset=262,length=30)
public String getMittIndir() {
return mittIndir;
}
public void setMittIndir(String mittIndir) {
this.mittIndir = mittIndir;
}
@Field(offset=352,length=9)
public String getMittCAP() {
return mittCAP;
}
public void setMittCAP(String mittCAP) {
this.mittCAP = mittCAP;
}
@Field(offset=361,length=3)
public String getMittNaz() {
return mittNaz;
}
public void setMittNaz(String mittNaz) {
this.mittNaz = mittNaz;
}
@Field(offset=364,length=7)
public String getMittPreTel() {
return mittPreTel;
}
public void setMittPreTel(String mittPreTel) {
this.mittPreTel = mittPreTel;
}
@Field(offset=371,length=9)
public String getMittNumTel() {
return mittNumTel;
}
public void setMittNumTel(String mittNumTel) {
this.mittNumTel = mittNumTel;
}
@Field(offset=380,length=50)
public String getMittRagSoc() {
return mittRagSoc;
}
public void setMittRagSoc(String mittRagSoc) {
this.mittRagSoc = mittRagSoc;
}
@Field(offset=430,length=30)
public String getMittCitta() {
return mittCitta;
}
public void setMittCitta(String mittCitta) {
this.mittCitta = mittCitta;
}
@Field(offset=460,length=22)
public String getMittContatto() {
return mittContatto;
}
public void setMittContatto(String mittContatto) {
this.mittContatto = mittContatto;
}
@Field(offset=498,length=30)
public String getMittProv() {
return mittProv;
}
public void setMittProv(String mittProv) {
this.mittProv = mittProv;
}
@Field(offset=528,length=2)
public String getDest() {
return dest;
}
public void setDest(String dest) {
this.dest = dest;
}
@Field(offset=530,length=20)
public String getDestPariva() {
return destPariva;
}
public void setDestPariva(String destPariva) {
this.destPariva = destPariva;
}
@Field(offset=550,length=30)
public String getDestInd1() {
return destInd1;
}
public void setDestInd1(String destInd1) {
this.destInd1 = destInd1;
}
@Field(offset=640,length=9)
public String getDestCAP() {
return destCAP;
}
public void setDestCAP(String destCAP) {
this.destCAP = destCAP;
}
@Field(offset=649,length=3)
public String getDestNaz() {
return destNaz;
}
public void setDestNaz(String destNaz) {
this.destNaz = destNaz;
}
@Field(offset=652,length=7)
public String getDestPreTel() {
return destPreTel;
}
public void setDestPreTel(String destPreTel) {
this.destPreTel = destPreTel;
}
@Field(offset=659,length=9)
public String getDestNumTel() {
return destNumTel;
}
public void setDestNumTel(String destNumTel) {
this.destNumTel = destNumTel;
}
@Field(offset=668,length=50)
public String getDestRagSoc() {
return destRagSoc;
}
public void setDestRagSoc(String destRagSoc) {
this.destRagSoc = destRagSoc;
}
@Field(offset=718,length=30)
public String getDestCitta() {
return destCitta;
}
public void setDestCitta(String destCitta) {
this.destCitta = destCitta;
}
@Field(offset=748,length=22)
public String getDestContatto() {
return destContatto;
}
public void setDestContatto(String destContatto) {
this.destContatto = destContatto;
}
@Field(offset=770,length=7)
public String getDestPreFax() {
return destPreFax;
}
public void setDestPreFax(String destPreFax) {
this.destPreFax = destPreFax;
}
@Field(offset=777,length=9)
public String getDestNumFax() {
return destNumFax;
}
public void setDestNumFax(String destNumFax) {
this.destNumFax = destNumFax;
}
@Field(offset=786,length=30)
public String getDestProv() {
return destProv;
}
public void setDestProv(String destProv) {
this.destProv = destProv;
}
}