review changes
This commit is contained in:
parent
7c5da0c07c
commit
31f858f3ba
@ -10,7 +10,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-parent</artifactId>
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
<version>2.0.5.RELEASE</version>
|
<version>2.1.2.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
@ -1,144 +0,0 @@
|
|||||||
//
|
|
||||||
// Questo file è stato generato dall'architettura JavaTM per XML Binding (JAXB) Reference Implementation, v2.2.7
|
|
||||||
// Vedere <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
|
||||||
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
|
|
||||||
// Generato il: 2019.01.25 alle 06:06:58 PM PST
|
|
||||||
//
|
|
||||||
|
|
||||||
|
|
||||||
package com.baeldung.springsoap.gen;
|
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
|
||||||
import javax.xml.bind.annotation.XmlType;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <p>Classe Java per country complex type.
|
|
||||||
*
|
|
||||||
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
|
|
||||||
*
|
|
||||||
* <pre>
|
|
||||||
* <complexType name="country">
|
|
||||||
* <complexContent>
|
|
||||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
|
||||||
* <sequence>
|
|
||||||
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
|
|
||||||
* <element name="population" type="{http://www.w3.org/2001/XMLSchema}int"/>
|
|
||||||
* <element name="capital" type="{http://www.w3.org/2001/XMLSchema}string"/>
|
|
||||||
* <element name="currency" type="{http://www.baeldung.com/springsoap/gen}currency"/>
|
|
||||||
* </sequence>
|
|
||||||
* </restriction>
|
|
||||||
* </complexContent>
|
|
||||||
* </complexType>
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@XmlAccessorType(XmlAccessType.FIELD)
|
|
||||||
@XmlType(name = "country", propOrder = {
|
|
||||||
"name",
|
|
||||||
"population",
|
|
||||||
"capital",
|
|
||||||
"currency"
|
|
||||||
})
|
|
||||||
public class Country {
|
|
||||||
|
|
||||||
@XmlElement(required = true)
|
|
||||||
protected String name;
|
|
||||||
protected int population;
|
|
||||||
@XmlElement(required = true)
|
|
||||||
protected String capital;
|
|
||||||
@XmlElement(required = true)
|
|
||||||
protected Currency currency;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Recupera il valore della proprietà name.
|
|
||||||
*
|
|
||||||
* @return
|
|
||||||
* possible object is
|
|
||||||
* {@link String }
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Imposta il valore della proprietà name.
|
|
||||||
*
|
|
||||||
* @param value
|
|
||||||
* allowed object is
|
|
||||||
* {@link String }
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public void setName(String value) {
|
|
||||||
this.name = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Recupera il valore della proprietà population.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public int getPopulation() {
|
|
||||||
return population;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Imposta il valore della proprietà population.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public void setPopulation(int value) {
|
|
||||||
this.population = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Recupera il valore della proprietà capital.
|
|
||||||
*
|
|
||||||
* @return
|
|
||||||
* possible object is
|
|
||||||
* {@link String }
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public String getCapital() {
|
|
||||||
return capital;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Imposta il valore della proprietà capital.
|
|
||||||
*
|
|
||||||
* @param value
|
|
||||||
* allowed object is
|
|
||||||
* {@link String }
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public void setCapital(String value) {
|
|
||||||
this.capital = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Recupera il valore della proprietà currency.
|
|
||||||
*
|
|
||||||
* @return
|
|
||||||
* possible object is
|
|
||||||
* {@link Currency }
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public Currency getCurrency() {
|
|
||||||
return currency;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Imposta il valore della proprietà currency.
|
|
||||||
*
|
|
||||||
* @param value
|
|
||||||
* allowed object is
|
|
||||||
* {@link Currency }
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public void setCurrency(Currency value) {
|
|
||||||
this.currency = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,47 +0,0 @@
|
|||||||
//
|
|
||||||
// Questo file è stato generato dall'architettura JavaTM per XML Binding (JAXB) Reference Implementation, v2.2.7
|
|
||||||
// Vedere <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
|
||||||
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
|
|
||||||
// Generato il: 2019.01.25 alle 06:06:58 PM PST
|
|
||||||
//
|
|
||||||
|
|
||||||
|
|
||||||
package com.baeldung.springsoap.gen;
|
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlEnum;
|
|
||||||
import javax.xml.bind.annotation.XmlType;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <p>Classe Java per currency.
|
|
||||||
*
|
|
||||||
* <p>Il seguente frammento di schema specifica il contenuto previsto contenuto in questa classe.
|
|
||||||
* <p>
|
|
||||||
* <pre>
|
|
||||||
* <simpleType name="currency">
|
|
||||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
|
|
||||||
* <enumeration value="GBP"/>
|
|
||||||
* <enumeration value="EUR"/>
|
|
||||||
* <enumeration value="PLN"/>
|
|
||||||
* </restriction>
|
|
||||||
* </simpleType>
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@XmlType(name = "currency")
|
|
||||||
@XmlEnum
|
|
||||||
public enum Currency {
|
|
||||||
|
|
||||||
GBP,
|
|
||||||
EUR,
|
|
||||||
PLN;
|
|
||||||
|
|
||||||
public String value() {
|
|
||||||
return name();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Currency fromValue(String v) {
|
|
||||||
return valueOf(v);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,71 +0,0 @@
|
|||||||
//
|
|
||||||
// Questo file è stato generato dall'architettura JavaTM per XML Binding (JAXB) Reference Implementation, v2.2.7
|
|
||||||
// Vedere <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
|
||||||
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
|
|
||||||
// Generato il: 2019.01.25 alle 06:06:58 PM PST
|
|
||||||
//
|
|
||||||
|
|
||||||
|
|
||||||
package com.baeldung.springsoap.gen;
|
|
||||||
|
|
||||||
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>
|
|
||||||
* <complexType>
|
|
||||||
* <complexContent>
|
|
||||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
|
||||||
* <sequence>
|
|
||||||
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
|
|
||||||
* </sequence>
|
|
||||||
* </restriction>
|
|
||||||
* </complexContent>
|
|
||||||
* </complexType>
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@XmlAccessorType(XmlAccessType.FIELD)
|
|
||||||
@XmlType(name = "", propOrder = {
|
|
||||||
"name"
|
|
||||||
})
|
|
||||||
@XmlRootElement(name = "getCountryRequest")
|
|
||||||
public class GetCountryRequest {
|
|
||||||
|
|
||||||
@XmlElement(required = true)
|
|
||||||
protected String name;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Recupera il valore della proprietà name.
|
|
||||||
*
|
|
||||||
* @return
|
|
||||||
* possible object is
|
|
||||||
* {@link String }
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Imposta il valore della proprietà name.
|
|
||||||
*
|
|
||||||
* @param value
|
|
||||||
* allowed object is
|
|
||||||
* {@link String }
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public void setName(String value) {
|
|
||||||
this.name = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,71 +0,0 @@
|
|||||||
//
|
|
||||||
// Questo file è stato generato dall'architettura JavaTM per XML Binding (JAXB) Reference Implementation, v2.2.7
|
|
||||||
// Vedere <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
|
||||||
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
|
|
||||||
// Generato il: 2019.01.25 alle 06:06:58 PM PST
|
|
||||||
//
|
|
||||||
|
|
||||||
|
|
||||||
package com.baeldung.springsoap.gen;
|
|
||||||
|
|
||||||
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>
|
|
||||||
* <complexType>
|
|
||||||
* <complexContent>
|
|
||||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
|
||||||
* <sequence>
|
|
||||||
* <element name="country" type="{http://www.baeldung.com/springsoap/gen}country"/>
|
|
||||||
* </sequence>
|
|
||||||
* </restriction>
|
|
||||||
* </complexContent>
|
|
||||||
* </complexType>
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@XmlAccessorType(XmlAccessType.FIELD)
|
|
||||||
@XmlType(name = "", propOrder = {
|
|
||||||
"country"
|
|
||||||
})
|
|
||||||
@XmlRootElement(name = "getCountryResponse")
|
|
||||||
public class GetCountryResponse {
|
|
||||||
|
|
||||||
@XmlElement(required = true)
|
|
||||||
protected Country country;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Recupera il valore della proprietà country.
|
|
||||||
*
|
|
||||||
* @return
|
|
||||||
* possible object is
|
|
||||||
* {@link Country }
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public Country getCountry() {
|
|
||||||
return country;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Imposta il valore della proprietà country.
|
|
||||||
*
|
|
||||||
* @param value
|
|
||||||
* allowed object is
|
|
||||||
* {@link Country }
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public void setCountry(Country value) {
|
|
||||||
this.country = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,63 +0,0 @@
|
|||||||
//
|
|
||||||
// Questo file è stato generato dall'architettura JavaTM per XML Binding (JAXB) Reference Implementation, v2.2.7
|
|
||||||
// Vedere <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
|
||||||
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
|
|
||||||
// Generato il: 2019.01.25 alle 06:06:58 PM PST
|
|
||||||
//
|
|
||||||
|
|
||||||
|
|
||||||
package com.baeldung.springsoap.gen;
|
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlRegistry;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This object contains factory methods for each
|
|
||||||
* Java content interface and Java element interface
|
|
||||||
* generated in the com.baeldung.springsoap.gen 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 {
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.baeldung.springsoap.gen
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public ObjectFactory() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Create an instance of {@link GetCountryRequest }
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public GetCountryRequest createGetCountryRequest() {
|
|
||||||
return new GetCountryRequest();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Create an instance of {@link GetCountryResponse }
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public GetCountryResponse createGetCountryResponse() {
|
|
||||||
return new GetCountryResponse();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Create an instance of {@link Country }
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public Country createCountry() {
|
|
||||||
return new Country();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
//
|
|
||||||
// Questo file è stato generato dall'architettura JavaTM per XML Binding (JAXB) Reference Implementation, v2.2.7
|
|
||||||
// Vedere <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
|
||||||
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
|
|
||||||
// Generato il: 2019.01.25 alle 06:06:58 PM PST
|
|
||||||
//
|
|
||||||
|
|
||||||
@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.baeldung.com/springsoap/gen", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
|
|
||||||
package com.baeldung.springsoap.gen;
|
|
@ -1,6 +1,5 @@
|
|||||||
package com.baeldung.springsoap;
|
package com.baeldung.springsoap;
|
||||||
|
|
||||||
import com.baeldung.springsoap.gen.GetCountryRequest;
|
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user