From: Vásáry Dániel Date: Thu, 18 Jan 2024 19:05:58 +0000 (+0100) Subject: ExchangeRate client implemented X-Git-Url: http://git.useribm.hu/?a=commitdiff_plain;h=1479c0f33806f52f38a0ec3c449737ac25933c4f;p=sly-crm.git ExchangeRate client implemented --- diff --git a/lis-app/src/test/java/hu/user/lis/service/mnb/ExchangeRateServiceIT.java b/lis-app/src/test/java/hu/user/lis/service/mnb/ExchangeRateServiceIT.java new file mode 100644 index 0000000..8ce3e5b --- /dev/null +++ b/lis-app/src/test/java/hu/user/lis/service/mnb/ExchangeRateServiceIT.java @@ -0,0 +1,34 @@ +package hu.user.lis.service.mnb; + +import lombok.extern.log4j.Log4j2; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.context.annotation.ComponentScan; +import org.springframework.test.context.ActiveProfiles; +import org.springframework.test.context.TestPropertySource; +import org.springframework.test.context.junit4.SpringRunner; + +@Log4j2 +@SpringBootTest +@RunWith(SpringRunner.class) +@ActiveProfiles("dev") +@ComponentScan("hu.user.lis") +@TestPropertySource("classpath:application-dev.yaml") +//@EnableAutoConfiguration(exclude = { +// DataSourceAutoConfiguration.class, +// DataSourceTransactionManagerAutoConfiguration.class, +// HibernateJpaAutoConfiguration.class +//}) +public class ExchangeRateServiceIT { + + @Autowired + private ExchangeRateService exchangeRateService; + + @Test + public void test() { + exchangeRateService.getInfo(); + } + +} diff --git a/lis-service/pom.xml b/lis-service/pom.xml index 49e17fd..95bca16 100644 --- a/lis-service/pom.xml +++ b/lis-service/pom.xml @@ -28,6 +28,25 @@ + + org.codehaus.mojo + jaxws-maven-plugin + 2.6 + + + + wsimport + + + + + + http://www.mnb.hu/arfolyamok.asmx?wsdl + + hu.user.lis.service.mnb.client + ${project.build.sourceDirectory} + + diff --git a/lis-service/src/main/java/hu/user/lis/service/mnb/ExchangeRateService.java b/lis-service/src/main/java/hu/user/lis/service/mnb/ExchangeRateService.java new file mode 100644 index 0000000..9b7aebc --- /dev/null +++ b/lis-service/src/main/java/hu/user/lis/service/mnb/ExchangeRateService.java @@ -0,0 +1,73 @@ +package hu.user.lis.service.mnb; + +import hu.user.lis.service.mnb.client.MNBArfolyamServiceSoap; +import hu.user.lis.service.mnb.client.MNBArfolyamServiceSoapImpl; +import org.springframework.stereotype.Service; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.Node; +import org.w3c.dom.NodeList; +import org.xml.sax.InputSource; + +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; +import java.io.StringReader; + +@Service +public class ExchangeRateService { + + public void getInfo() { + MNBArfolyamServiceSoapImpl impl = new MNBArfolyamServiceSoapImpl(); + MNBArfolyamServiceSoap service = impl.getCustomBindingMNBArfolyamServiceSoap(); + try { + // USD,EUR árfolyam 2015-01-01 és 2015-01-10 közötti lekérdezése + String resp = service.getExchangeRates("2015-01-01", "2015-01-10", "USD,EUR"); + + DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); + DocumentBuilder dBuilder = dbFactory.newDocumentBuilder(); + InputSource is = new InputSource(new StringReader(resp)); + Document doc = dBuilder.parse(is); + + doc.getDocumentElement().normalize(); + + // "Day" nevu elemek kiszedése + NodeList nList = doc.getElementsByTagName("Day"); + + // iterálás a "Day" elemeken + for (int temp = 0; temp < nList.getLength(); temp++) { + Node nNode = nList.item(temp); + if (nNode.getNodeType() == Node.ELEMENT_NODE) { + + Element eElement = (Element) nNode; + // "date" nevu attribútum értékének kinyerése + System.out.println("Date : " + eElement.getAttribute("date")); + + // az elem alatt lévo "Rate" elemek kinyerése + NodeList rateList = eElement.getElementsByTagName("Rate"); + for (int temp1 = 0; temp1 < rateList.getLength(); temp1++) { + Node nNode1 = rateList.item(temp1); + if (nNode.getNodeType() == Node.ELEMENT_NODE) { + Element eElement1 = (Element) nNode1; + + // "curr" nevu attribútum értékének kinyerése // a deviza neve // + System.out.println("Currency : " + eElement1.getAttribute("curr")); + + // "unit" nevu attribútum értékének kinyerése // a deviza egysége // + System.out.println("Unit : " + eElement1.getAttribute("unit")); + + // az xml tag értéke // jelen esetben a deviza árfolyama // + System.out.println("Value : " + eElement1.getTextContent()); + + } + } + System.out.println(); + } + } + + + } catch (Exception e) { + System.err.print(e); + } + + } +} diff --git a/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetCurrenciesRequestBody.java b/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetCurrenciesRequestBody.java new file mode 100644 index 0000000..26a0965 --- /dev/null +++ b/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetCurrenciesRequestBody.java @@ -0,0 +1,32 @@ + +package hu.user.lis.service.mnb.client; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for GetCurrenciesRequestBody complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="GetCurrenciesRequestBody">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "GetCurrenciesRequestBody") +public class GetCurrenciesRequestBody { + + +} diff --git a/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetCurrenciesResponseBody.java b/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetCurrenciesResponseBody.java new file mode 100644 index 0000000..dc158ad --- /dev/null +++ b/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetCurrenciesResponseBody.java @@ -0,0 +1,63 @@ + +package hu.user.lis.service.mnb.client; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for GetCurrenciesResponseBody complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="GetCurrenciesResponseBody">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="GetCurrenciesResult" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "GetCurrenciesResponseBody", propOrder = { + "getCurrenciesResult" +}) +public class GetCurrenciesResponseBody { + + @XmlElementRef(name = "GetCurrenciesResult", namespace = "http://www.mnb.hu/webservices/", type = JAXBElement.class, required = false) + protected JAXBElement getCurrenciesResult; + + /** + * Gets the value of the getCurrenciesResult property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + */ + public JAXBElement getGetCurrenciesResult() { + return getCurrenciesResult; + } + + /** + * Sets the value of the getCurrenciesResult property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + */ + public void setGetCurrenciesResult(JAXBElement value) { + this.getCurrenciesResult = value; + } + +} diff --git a/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetCurrencyUnitsRequestBody.java b/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetCurrencyUnitsRequestBody.java new file mode 100644 index 0000000..e3dced7 --- /dev/null +++ b/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetCurrencyUnitsRequestBody.java @@ -0,0 +1,63 @@ + +package hu.user.lis.service.mnb.client; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for GetCurrencyUnitsRequestBody complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="GetCurrencyUnitsRequestBody">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="currencyNames" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "GetCurrencyUnitsRequestBody", propOrder = { + "currencyNames" +}) +public class GetCurrencyUnitsRequestBody { + + @XmlElementRef(name = "currencyNames", namespace = "http://www.mnb.hu/webservices/", type = JAXBElement.class, required = false) + protected JAXBElement currencyNames; + + /** + * Gets the value of the currencyNames property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + */ + public JAXBElement getCurrencyNames() { + return currencyNames; + } + + /** + * Sets the value of the currencyNames property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + */ + public void setCurrencyNames(JAXBElement value) { + this.currencyNames = value; + } + +} diff --git a/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetCurrencyUnitsResponseBody.java b/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetCurrencyUnitsResponseBody.java new file mode 100644 index 0000000..994f47c --- /dev/null +++ b/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetCurrencyUnitsResponseBody.java @@ -0,0 +1,63 @@ + +package hu.user.lis.service.mnb.client; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for GetCurrencyUnitsResponseBody complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="GetCurrencyUnitsResponseBody">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="GetCurrencyUnitsResult" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "GetCurrencyUnitsResponseBody", propOrder = { + "getCurrencyUnitsResult" +}) +public class GetCurrencyUnitsResponseBody { + + @XmlElementRef(name = "GetCurrencyUnitsResult", namespace = "http://www.mnb.hu/webservices/", type = JAXBElement.class, required = false) + protected JAXBElement getCurrencyUnitsResult; + + /** + * Gets the value of the getCurrencyUnitsResult property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + */ + public JAXBElement getGetCurrencyUnitsResult() { + return getCurrencyUnitsResult; + } + + /** + * Sets the value of the getCurrencyUnitsResult property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + */ + public void setGetCurrencyUnitsResult(JAXBElement value) { + this.getCurrencyUnitsResult = value; + } + +} diff --git a/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetCurrentExchangeRatesRequestBody.java b/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetCurrentExchangeRatesRequestBody.java new file mode 100644 index 0000000..6d3d640 --- /dev/null +++ b/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetCurrentExchangeRatesRequestBody.java @@ -0,0 +1,32 @@ + +package hu.user.lis.service.mnb.client; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for GetCurrentExchangeRatesRequestBody complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="GetCurrentExchangeRatesRequestBody">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "GetCurrentExchangeRatesRequestBody") +public class GetCurrentExchangeRatesRequestBody { + + +} diff --git a/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetCurrentExchangeRatesResponseBody.java b/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetCurrentExchangeRatesResponseBody.java new file mode 100644 index 0000000..ddd763d --- /dev/null +++ b/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetCurrentExchangeRatesResponseBody.java @@ -0,0 +1,63 @@ + +package hu.user.lis.service.mnb.client; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for GetCurrentExchangeRatesResponseBody complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="GetCurrentExchangeRatesResponseBody">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="GetCurrentExchangeRatesResult" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "GetCurrentExchangeRatesResponseBody", propOrder = { + "getCurrentExchangeRatesResult" +}) +public class GetCurrentExchangeRatesResponseBody { + + @XmlElementRef(name = "GetCurrentExchangeRatesResult", namespace = "http://www.mnb.hu/webservices/", type = JAXBElement.class, required = false) + protected JAXBElement getCurrentExchangeRatesResult; + + /** + * Gets the value of the getCurrentExchangeRatesResult property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + */ + public JAXBElement getGetCurrentExchangeRatesResult() { + return getCurrentExchangeRatesResult; + } + + /** + * Sets the value of the getCurrentExchangeRatesResult property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + */ + public void setGetCurrentExchangeRatesResult(JAXBElement value) { + this.getCurrentExchangeRatesResult = value; + } + +} diff --git a/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetDateIntervalRequestBody.java b/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetDateIntervalRequestBody.java new file mode 100644 index 0000000..f457aae --- /dev/null +++ b/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetDateIntervalRequestBody.java @@ -0,0 +1,32 @@ + +package hu.user.lis.service.mnb.client; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for GetDateIntervalRequestBody complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="GetDateIntervalRequestBody">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "GetDateIntervalRequestBody") +public class GetDateIntervalRequestBody { + + +} diff --git a/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetDateIntervalResponseBody.java b/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetDateIntervalResponseBody.java new file mode 100644 index 0000000..4918938 --- /dev/null +++ b/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetDateIntervalResponseBody.java @@ -0,0 +1,63 @@ + +package hu.user.lis.service.mnb.client; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for GetDateIntervalResponseBody complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="GetDateIntervalResponseBody">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="GetDateIntervalResult" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "GetDateIntervalResponseBody", propOrder = { + "getDateIntervalResult" +}) +public class GetDateIntervalResponseBody { + + @XmlElementRef(name = "GetDateIntervalResult", namespace = "http://www.mnb.hu/webservices/", type = JAXBElement.class, required = false) + protected JAXBElement getDateIntervalResult; + + /** + * Gets the value of the getDateIntervalResult property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + */ + public JAXBElement getGetDateIntervalResult() { + return getDateIntervalResult; + } + + /** + * Sets the value of the getDateIntervalResult property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + */ + public void setGetDateIntervalResult(JAXBElement value) { + this.getDateIntervalResult = value; + } + +} diff --git a/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetExchangeRatesRequestBody.java b/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetExchangeRatesRequestBody.java new file mode 100644 index 0000000..20a6469 --- /dev/null +++ b/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetExchangeRatesRequestBody.java @@ -0,0 +1,119 @@ + +package hu.user.lis.service.mnb.client; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for GetExchangeRatesRequestBody complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="GetExchangeRatesRequestBody">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="startDate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="endDate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="currencyNames" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "GetExchangeRatesRequestBody", propOrder = { + "startDate", + "endDate", + "currencyNames" +}) +public class GetExchangeRatesRequestBody { + + @XmlElementRef(name = "startDate", namespace = "http://www.mnb.hu/webservices/", type = JAXBElement.class, required = false) + protected JAXBElement startDate; + @XmlElementRef(name = "endDate", namespace = "http://www.mnb.hu/webservices/", type = JAXBElement.class, required = false) + protected JAXBElement endDate; + @XmlElementRef(name = "currencyNames", namespace = "http://www.mnb.hu/webservices/", type = JAXBElement.class, required = false) + protected JAXBElement currencyNames; + + /** + * Gets the value of the startDate property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + */ + public JAXBElement getStartDate() { + return startDate; + } + + /** + * Sets the value of the startDate property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + */ + public void setStartDate(JAXBElement value) { + this.startDate = value; + } + + /** + * Gets the value of the endDate property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + */ + public JAXBElement getEndDate() { + return endDate; + } + + /** + * Sets the value of the endDate property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + */ + public void setEndDate(JAXBElement value) { + this.endDate = value; + } + + /** + * Gets the value of the currencyNames property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + */ + public JAXBElement getCurrencyNames() { + return currencyNames; + } + + /** + * Sets the value of the currencyNames property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + */ + public void setCurrencyNames(JAXBElement value) { + this.currencyNames = value; + } + +} diff --git a/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetExchangeRatesResponseBody.java b/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetExchangeRatesResponseBody.java new file mode 100644 index 0000000..f3ddfb5 --- /dev/null +++ b/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetExchangeRatesResponseBody.java @@ -0,0 +1,63 @@ + +package hu.user.lis.service.mnb.client; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for GetExchangeRatesResponseBody complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="GetExchangeRatesResponseBody">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="GetExchangeRatesResult" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "GetExchangeRatesResponseBody", propOrder = { + "getExchangeRatesResult" +}) +public class GetExchangeRatesResponseBody { + + @XmlElementRef(name = "GetExchangeRatesResult", namespace = "http://www.mnb.hu/webservices/", type = JAXBElement.class, required = false) + protected JAXBElement getExchangeRatesResult; + + /** + * Gets the value of the getExchangeRatesResult property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + */ + public JAXBElement getGetExchangeRatesResult() { + return getExchangeRatesResult; + } + + /** + * Sets the value of the getExchangeRatesResult property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + */ + public void setGetExchangeRatesResult(JAXBElement value) { + this.getExchangeRatesResult = value; + } + +} diff --git a/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetInfoRequestBody.java b/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetInfoRequestBody.java new file mode 100644 index 0000000..05bb6d0 --- /dev/null +++ b/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetInfoRequestBody.java @@ -0,0 +1,32 @@ + +package hu.user.lis.service.mnb.client; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for GetInfoRequestBody complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="GetInfoRequestBody">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "GetInfoRequestBody") +public class GetInfoRequestBody { + + +} diff --git a/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetInfoResponseBody.java b/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetInfoResponseBody.java new file mode 100644 index 0000000..53164ea --- /dev/null +++ b/lis-service/src/main/java/hu/user/lis/service/mnb/client/GetInfoResponseBody.java @@ -0,0 +1,63 @@ + +package hu.user.lis.service.mnb.client; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for GetInfoResponseBody complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="GetInfoResponseBody">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="GetInfoResult" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "GetInfoResponseBody", propOrder = { + "getInfoResult" +}) +public class GetInfoResponseBody { + + @XmlElementRef(name = "GetInfoResult", namespace = "http://www.mnb.hu/webservices/", type = JAXBElement.class, required = false) + protected JAXBElement getInfoResult; + + /** + * Gets the value of the getInfoResult property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + */ + public JAXBElement getGetInfoResult() { + return getInfoResult; + } + + /** + * Sets the value of the getInfoResult property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + */ + public void setGetInfoResult(JAXBElement value) { + this.getInfoResult = value; + } + +} diff --git a/lis-service/src/main/java/hu/user/lis/service/mnb/client/MNBArfolyamServiceSoap.java b/lis-service/src/main/java/hu/user/lis/service/mnb/client/MNBArfolyamServiceSoap.java new file mode 100644 index 0000000..175a897 --- /dev/null +++ b/lis-service/src/main/java/hu/user/lis/service/mnb/client/MNBArfolyamServiceSoap.java @@ -0,0 +1,122 @@ + +package hu.user.lis.service.mnb.client; + +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.3.2 + * Generated source version: 2.2 + * + */ +@WebService(name = "MNBArfolyamServiceSoap", targetNamespace = "http://www.mnb.hu/webservices/") +@XmlSeeAlso({ + ObjectFactory.class +}) +public interface MNBArfolyamServiceSoap { + + + /** + * + * @return + * returns java.lang.String + * @throws MNBArfolyamServiceSoapGetCurrenciesStringFaultFaultMessage + */ + @WebMethod(operationName = "GetCurrencies", action = "http://www.mnb.hu/webservices/MNBArfolyamServiceSoap/GetCurrencies") + @WebResult(name = "GetCurrenciesResult", targetNamespace = "http://www.mnb.hu/webservices/") + @RequestWrapper(localName = "GetCurrencies", targetNamespace = "http://www.mnb.hu/webservices/", className = "hu.user.lis.service.mnb.client.GetCurrenciesRequestBody") + @ResponseWrapper(localName = "GetCurrenciesResponse", targetNamespace = "http://www.mnb.hu/webservices/", className = "hu.user.lis.service.mnb.client.GetCurrenciesResponseBody") + public String getCurrencies() + throws MNBArfolyamServiceSoapGetCurrenciesStringFaultFaultMessage + ; + + /** + * + * @param currencyNames + * @return + * returns java.lang.String + * @throws MNBArfolyamServiceSoapGetCurrencyUnitsStringFaultFaultMessage + */ + @WebMethod(operationName = "GetCurrencyUnits", action = "http://www.mnb.hu/webservices/MNBArfolyamServiceSoap/GetCurrencyUnits") + @WebResult(name = "GetCurrencyUnitsResult", targetNamespace = "http://www.mnb.hu/webservices/") + @RequestWrapper(localName = "GetCurrencyUnits", targetNamespace = "http://www.mnb.hu/webservices/", className = "hu.user.lis.service.mnb.client.GetCurrencyUnitsRequestBody") + @ResponseWrapper(localName = "GetCurrencyUnitsResponse", targetNamespace = "http://www.mnb.hu/webservices/", className = "hu.user.lis.service.mnb.client.GetCurrencyUnitsResponseBody") + public String getCurrencyUnits( + @WebParam(name = "currencyNames", targetNamespace = "http://www.mnb.hu/webservices/") + String currencyNames) + throws MNBArfolyamServiceSoapGetCurrencyUnitsStringFaultFaultMessage + ; + + /** + * + * @return + * returns java.lang.String + * @throws MNBArfolyamServiceSoapGetCurrentExchangeRatesStringFaultFaultMessage + */ + @WebMethod(operationName = "GetCurrentExchangeRates", action = "http://www.mnb.hu/webservices/MNBArfolyamServiceSoap/GetCurrentExchangeRates") + @WebResult(name = "GetCurrentExchangeRatesResult", targetNamespace = "http://www.mnb.hu/webservices/") + @RequestWrapper(localName = "GetCurrentExchangeRates", targetNamespace = "http://www.mnb.hu/webservices/", className = "hu.user.lis.service.mnb.client.GetCurrentExchangeRatesRequestBody") + @ResponseWrapper(localName = "GetCurrentExchangeRatesResponse", targetNamespace = "http://www.mnb.hu/webservices/", className = "hu.user.lis.service.mnb.client.GetCurrentExchangeRatesResponseBody") + public String getCurrentExchangeRates() + throws MNBArfolyamServiceSoapGetCurrentExchangeRatesStringFaultFaultMessage + ; + + /** + * + * @return + * returns java.lang.String + * @throws MNBArfolyamServiceSoapGetDateIntervalStringFaultFaultMessage + */ + @WebMethod(operationName = "GetDateInterval", action = "http://www.mnb.hu/webservices/MNBArfolyamServiceSoap/GetDateInterval") + @WebResult(name = "GetDateIntervalResult", targetNamespace = "http://www.mnb.hu/webservices/") + @RequestWrapper(localName = "GetDateInterval", targetNamespace = "http://www.mnb.hu/webservices/", className = "hu.user.lis.service.mnb.client.GetDateIntervalRequestBody") + @ResponseWrapper(localName = "GetDateIntervalResponse", targetNamespace = "http://www.mnb.hu/webservices/", className = "hu.user.lis.service.mnb.client.GetDateIntervalResponseBody") + public String getDateInterval() + throws MNBArfolyamServiceSoapGetDateIntervalStringFaultFaultMessage + ; + + /** + * + * @param currencyNames + * @param endDate + * @param startDate + * @return + * returns java.lang.String + * @throws MNBArfolyamServiceSoapGetExchangeRatesStringFaultFaultMessage + */ + @WebMethod(operationName = "GetExchangeRates", action = "http://www.mnb.hu/webservices/MNBArfolyamServiceSoap/GetExchangeRates") + @WebResult(name = "GetExchangeRatesResult", targetNamespace = "http://www.mnb.hu/webservices/") + @RequestWrapper(localName = "GetExchangeRates", targetNamespace = "http://www.mnb.hu/webservices/", className = "hu.user.lis.service.mnb.client.GetExchangeRatesRequestBody") + @ResponseWrapper(localName = "GetExchangeRatesResponse", targetNamespace = "http://www.mnb.hu/webservices/", className = "hu.user.lis.service.mnb.client.GetExchangeRatesResponseBody") + public String getExchangeRates( + @WebParam(name = "startDate", targetNamespace = "http://www.mnb.hu/webservices/") + String startDate, + @WebParam(name = "endDate", targetNamespace = "http://www.mnb.hu/webservices/") + String endDate, + @WebParam(name = "currencyNames", targetNamespace = "http://www.mnb.hu/webservices/") + String currencyNames) + throws MNBArfolyamServiceSoapGetExchangeRatesStringFaultFaultMessage + ; + + /** + * + * @return + * returns java.lang.String + * @throws MNBArfolyamServiceSoapGetInfoStringFaultFaultMessage + */ + @WebMethod(operationName = "GetInfo", action = "http://www.mnb.hu/webservices/MNBArfolyamServiceSoap/GetInfo") + @WebResult(name = "GetInfoResult", targetNamespace = "http://www.mnb.hu/webservices/") + @RequestWrapper(localName = "GetInfo", targetNamespace = "http://www.mnb.hu/webservices/", className = "hu.user.lis.service.mnb.client.GetInfoRequestBody") + @ResponseWrapper(localName = "GetInfoResponse", targetNamespace = "http://www.mnb.hu/webservices/", className = "hu.user.lis.service.mnb.client.GetInfoResponseBody") + public String getInfo() + throws MNBArfolyamServiceSoapGetInfoStringFaultFaultMessage + ; + +} diff --git a/lis-service/src/main/java/hu/user/lis/service/mnb/client/MNBArfolyamServiceSoapGetCurrenciesStringFaultFaultMessage.java b/lis-service/src/main/java/hu/user/lis/service/mnb/client/MNBArfolyamServiceSoapGetCurrenciesStringFaultFaultMessage.java new file mode 100644 index 0000000..5a969c5 --- /dev/null +++ b/lis-service/src/main/java/hu/user/lis/service/mnb/client/MNBArfolyamServiceSoapGetCurrenciesStringFaultFaultMessage.java @@ -0,0 +1,54 @@ + +package hu.user.lis.service.mnb.client; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.3.2 + * Generated source version: 2.2 + * + */ +@WebFault(name = "string", targetNamespace = "http://schemas.microsoft.com/2003/10/Serialization/") +public class MNBArfolyamServiceSoapGetCurrenciesStringFaultFaultMessage + extends Exception +{ + + /** + * Java type that goes as soapenv:Fault detail element. + * + */ + private String faultInfo; + + /** + * + * @param faultInfo + * @param message + */ + public MNBArfolyamServiceSoapGetCurrenciesStringFaultFaultMessage(String message, String faultInfo) { + super(message); + this.faultInfo = faultInfo; + } + + /** + * + * @param faultInfo + * @param cause + * @param message + */ + public MNBArfolyamServiceSoapGetCurrenciesStringFaultFaultMessage(String message, String faultInfo, Throwable cause) { + super(message, cause); + this.faultInfo = faultInfo; + } + + /** + * + * @return + * returns fault bean: java.lang.String + */ + public String getFaultInfo() { + return faultInfo; + } + +} diff --git a/lis-service/src/main/java/hu/user/lis/service/mnb/client/MNBArfolyamServiceSoapGetCurrencyUnitsStringFaultFaultMessage.java b/lis-service/src/main/java/hu/user/lis/service/mnb/client/MNBArfolyamServiceSoapGetCurrencyUnitsStringFaultFaultMessage.java new file mode 100644 index 0000000..26d423d --- /dev/null +++ b/lis-service/src/main/java/hu/user/lis/service/mnb/client/MNBArfolyamServiceSoapGetCurrencyUnitsStringFaultFaultMessage.java @@ -0,0 +1,54 @@ + +package hu.user.lis.service.mnb.client; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.3.2 + * Generated source version: 2.2 + * + */ +@WebFault(name = "string", targetNamespace = "http://schemas.microsoft.com/2003/10/Serialization/") +public class MNBArfolyamServiceSoapGetCurrencyUnitsStringFaultFaultMessage + extends Exception +{ + + /** + * Java type that goes as soapenv:Fault detail element. + * + */ + private String faultInfo; + + /** + * + * @param faultInfo + * @param message + */ + public MNBArfolyamServiceSoapGetCurrencyUnitsStringFaultFaultMessage(String message, String faultInfo) { + super(message); + this.faultInfo = faultInfo; + } + + /** + * + * @param faultInfo + * @param cause + * @param message + */ + public MNBArfolyamServiceSoapGetCurrencyUnitsStringFaultFaultMessage(String message, String faultInfo, Throwable cause) { + super(message, cause); + this.faultInfo = faultInfo; + } + + /** + * + * @return + * returns fault bean: java.lang.String + */ + public String getFaultInfo() { + return faultInfo; + } + +} diff --git a/lis-service/src/main/java/hu/user/lis/service/mnb/client/MNBArfolyamServiceSoapGetCurrentExchangeRatesStringFaultFaultMessage.java b/lis-service/src/main/java/hu/user/lis/service/mnb/client/MNBArfolyamServiceSoapGetCurrentExchangeRatesStringFaultFaultMessage.java new file mode 100644 index 0000000..b2d5209 --- /dev/null +++ b/lis-service/src/main/java/hu/user/lis/service/mnb/client/MNBArfolyamServiceSoapGetCurrentExchangeRatesStringFaultFaultMessage.java @@ -0,0 +1,54 @@ + +package hu.user.lis.service.mnb.client; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.3.2 + * Generated source version: 2.2 + * + */ +@WebFault(name = "string", targetNamespace = "http://schemas.microsoft.com/2003/10/Serialization/") +public class MNBArfolyamServiceSoapGetCurrentExchangeRatesStringFaultFaultMessage + extends Exception +{ + + /** + * Java type that goes as soapenv:Fault detail element. + * + */ + private String faultInfo; + + /** + * + * @param faultInfo + * @param message + */ + public MNBArfolyamServiceSoapGetCurrentExchangeRatesStringFaultFaultMessage(String message, String faultInfo) { + super(message); + this.faultInfo = faultInfo; + } + + /** + * + * @param faultInfo + * @param cause + * @param message + */ + public MNBArfolyamServiceSoapGetCurrentExchangeRatesStringFaultFaultMessage(String message, String faultInfo, Throwable cause) { + super(message, cause); + this.faultInfo = faultInfo; + } + + /** + * + * @return + * returns fault bean: java.lang.String + */ + public String getFaultInfo() { + return faultInfo; + } + +} diff --git a/lis-service/src/main/java/hu/user/lis/service/mnb/client/MNBArfolyamServiceSoapGetDateIntervalStringFaultFaultMessage.java b/lis-service/src/main/java/hu/user/lis/service/mnb/client/MNBArfolyamServiceSoapGetDateIntervalStringFaultFaultMessage.java new file mode 100644 index 0000000..9a54018 --- /dev/null +++ b/lis-service/src/main/java/hu/user/lis/service/mnb/client/MNBArfolyamServiceSoapGetDateIntervalStringFaultFaultMessage.java @@ -0,0 +1,54 @@ + +package hu.user.lis.service.mnb.client; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.3.2 + * Generated source version: 2.2 + * + */ +@WebFault(name = "string", targetNamespace = "http://schemas.microsoft.com/2003/10/Serialization/") +public class MNBArfolyamServiceSoapGetDateIntervalStringFaultFaultMessage + extends Exception +{ + + /** + * Java type that goes as soapenv:Fault detail element. + * + */ + private String faultInfo; + + /** + * + * @param faultInfo + * @param message + */ + public MNBArfolyamServiceSoapGetDateIntervalStringFaultFaultMessage(String message, String faultInfo) { + super(message); + this.faultInfo = faultInfo; + } + + /** + * + * @param faultInfo + * @param cause + * @param message + */ + public MNBArfolyamServiceSoapGetDateIntervalStringFaultFaultMessage(String message, String faultInfo, Throwable cause) { + super(message, cause); + this.faultInfo = faultInfo; + } + + /** + * + * @return + * returns fault bean: java.lang.String + */ + public String getFaultInfo() { + return faultInfo; + } + +} diff --git a/lis-service/src/main/java/hu/user/lis/service/mnb/client/MNBArfolyamServiceSoapGetExchangeRatesStringFaultFaultMessage.java b/lis-service/src/main/java/hu/user/lis/service/mnb/client/MNBArfolyamServiceSoapGetExchangeRatesStringFaultFaultMessage.java new file mode 100644 index 0000000..98fd218 --- /dev/null +++ b/lis-service/src/main/java/hu/user/lis/service/mnb/client/MNBArfolyamServiceSoapGetExchangeRatesStringFaultFaultMessage.java @@ -0,0 +1,54 @@ + +package hu.user.lis.service.mnb.client; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.3.2 + * Generated source version: 2.2 + * + */ +@WebFault(name = "string", targetNamespace = "http://schemas.microsoft.com/2003/10/Serialization/") +public class MNBArfolyamServiceSoapGetExchangeRatesStringFaultFaultMessage + extends Exception +{ + + /** + * Java type that goes as soapenv:Fault detail element. + * + */ + private String faultInfo; + + /** + * + * @param faultInfo + * @param message + */ + public MNBArfolyamServiceSoapGetExchangeRatesStringFaultFaultMessage(String message, String faultInfo) { + super(message); + this.faultInfo = faultInfo; + } + + /** + * + * @param faultInfo + * @param cause + * @param message + */ + public MNBArfolyamServiceSoapGetExchangeRatesStringFaultFaultMessage(String message, String faultInfo, Throwable cause) { + super(message, cause); + this.faultInfo = faultInfo; + } + + /** + * + * @return + * returns fault bean: java.lang.String + */ + public String getFaultInfo() { + return faultInfo; + } + +} diff --git a/lis-service/src/main/java/hu/user/lis/service/mnb/client/MNBArfolyamServiceSoapGetInfoStringFaultFaultMessage.java b/lis-service/src/main/java/hu/user/lis/service/mnb/client/MNBArfolyamServiceSoapGetInfoStringFaultFaultMessage.java new file mode 100644 index 0000000..1d5169f --- /dev/null +++ b/lis-service/src/main/java/hu/user/lis/service/mnb/client/MNBArfolyamServiceSoapGetInfoStringFaultFaultMessage.java @@ -0,0 +1,54 @@ + +package hu.user.lis.service.mnb.client; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.3.2 + * Generated source version: 2.2 + * + */ +@WebFault(name = "string", targetNamespace = "http://schemas.microsoft.com/2003/10/Serialization/") +public class MNBArfolyamServiceSoapGetInfoStringFaultFaultMessage + extends Exception +{ + + /** + * Java type that goes as soapenv:Fault detail element. + * + */ + private String faultInfo; + + /** + * + * @param faultInfo + * @param message + */ + public MNBArfolyamServiceSoapGetInfoStringFaultFaultMessage(String message, String faultInfo) { + super(message); + this.faultInfo = faultInfo; + } + + /** + * + * @param faultInfo + * @param cause + * @param message + */ + public MNBArfolyamServiceSoapGetInfoStringFaultFaultMessage(String message, String faultInfo, Throwable cause) { + super(message, cause); + this.faultInfo = faultInfo; + } + + /** + * + * @return + * returns fault bean: java.lang.String + */ + public String getFaultInfo() { + return faultInfo; + } + +} diff --git a/lis-service/src/main/java/hu/user/lis/service/mnb/client/MNBArfolyamServiceSoapImpl.java b/lis-service/src/main/java/hu/user/lis/service/mnb/client/MNBArfolyamServiceSoapImpl.java new file mode 100644 index 0000000..88cd15b --- /dev/null +++ b/lis-service/src/main/java/hu/user/lis/service/mnb/client/MNBArfolyamServiceSoapImpl.java @@ -0,0 +1,94 @@ + +package hu.user.lis.service.mnb.client; + +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.3.2 + * Generated source version: 2.2 + * + */ +@WebServiceClient(name = "MNBArfolyamServiceSoapImpl", targetNamespace = "http://tempuri.org/", wsdlLocation = "http://www.mnb.hu/arfolyamok.asmx?wsdl") +public class MNBArfolyamServiceSoapImpl + extends Service +{ + + private final static URL MNBARFOLYAMSERVICESOAPIMPL_WSDL_LOCATION; + private final static WebServiceException MNBARFOLYAMSERVICESOAPIMPL_EXCEPTION; + private final static QName MNBARFOLYAMSERVICESOAPIMPL_QNAME = new QName("http://tempuri.org/", "MNBArfolyamServiceSoapImpl"); + + static { + URL url = null; + WebServiceException e = null; + try { + url = new URL("http://www.mnb.hu/arfolyamok.asmx?wsdl"); + } catch (MalformedURLException ex) { + e = new WebServiceException(ex); + } + MNBARFOLYAMSERVICESOAPIMPL_WSDL_LOCATION = url; + MNBARFOLYAMSERVICESOAPIMPL_EXCEPTION = e; + } + + public MNBArfolyamServiceSoapImpl() { + super(__getWsdlLocation(), MNBARFOLYAMSERVICESOAPIMPL_QNAME); + } + + public MNBArfolyamServiceSoapImpl(WebServiceFeature... features) { + super(__getWsdlLocation(), MNBARFOLYAMSERVICESOAPIMPL_QNAME, features); + } + + public MNBArfolyamServiceSoapImpl(URL wsdlLocation) { + super(wsdlLocation, MNBARFOLYAMSERVICESOAPIMPL_QNAME); + } + + public MNBArfolyamServiceSoapImpl(URL wsdlLocation, WebServiceFeature... features) { + super(wsdlLocation, MNBARFOLYAMSERVICESOAPIMPL_QNAME, features); + } + + public MNBArfolyamServiceSoapImpl(URL wsdlLocation, QName serviceName) { + super(wsdlLocation, serviceName); + } + + public MNBArfolyamServiceSoapImpl(URL wsdlLocation, QName serviceName, WebServiceFeature... features) { + super(wsdlLocation, serviceName, features); + } + + /** + * + * @return + * returns MNBArfolyamServiceSoap + */ + @WebEndpoint(name = "CustomBinding_MNBArfolyamServiceSoap") + public MNBArfolyamServiceSoap getCustomBindingMNBArfolyamServiceSoap() { + return super.getPort(new QName("http://tempuri.org/", "CustomBinding_MNBArfolyamServiceSoap"), MNBArfolyamServiceSoap.class); + } + + /** + * + * @param features + * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. + * @return + * returns MNBArfolyamServiceSoap + */ + @WebEndpoint(name = "CustomBinding_MNBArfolyamServiceSoap") + public MNBArfolyamServiceSoap getCustomBindingMNBArfolyamServiceSoap(WebServiceFeature... features) { + return super.getPort(new QName("http://tempuri.org/", "CustomBinding_MNBArfolyamServiceSoap"), MNBArfolyamServiceSoap.class, features); + } + + private static URL __getWsdlLocation() { + if (MNBARFOLYAMSERVICESOAPIMPL_EXCEPTION!= null) { + throw MNBARFOLYAMSERVICESOAPIMPL_EXCEPTION; + } + return MNBARFOLYAMSERVICESOAPIMPL_WSDL_LOCATION; + } + +} diff --git a/lis-service/src/main/java/hu/user/lis/service/mnb/client/ObjectFactory.java b/lis-service/src/main/java/hu/user/lis/service/mnb/client/ObjectFactory.java new file mode 100644 index 0000000..8b31a48 --- /dev/null +++ b/lis-service/src/main/java/hu/user/lis/service/mnb/client/ObjectFactory.java @@ -0,0 +1,904 @@ + +package hu.user.lis.service.mnb.client; + +import java.math.BigDecimal; +import java.math.BigInteger; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.datatype.Duration; +import javax.xml.datatype.XMLGregorianCalendar; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the hu.user.lis.service.mnb.client package. + *

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 _GetCurrenciesRequestBody_QNAME = new QName("http://www.mnb.hu/webservices/", "GetCurrenciesRequestBody"); + private final static QName _GetCurrencies_QNAME = new QName("http://www.mnb.hu/webservices/", "GetCurrencies"); + private final static QName _GetCurrenciesResponseBody_QNAME = new QName("http://www.mnb.hu/webservices/", "GetCurrenciesResponseBody"); + private final static QName _GetCurrenciesResponse_QNAME = new QName("http://www.mnb.hu/webservices/", "GetCurrenciesResponse"); + private final static QName _GetCurrencyUnitsRequestBody_QNAME = new QName("http://www.mnb.hu/webservices/", "GetCurrencyUnitsRequestBody"); + private final static QName _GetCurrencyUnits_QNAME = new QName("http://www.mnb.hu/webservices/", "GetCurrencyUnits"); + private final static QName _GetCurrencyUnitsResponseBody_QNAME = new QName("http://www.mnb.hu/webservices/", "GetCurrencyUnitsResponseBody"); + private final static QName _GetCurrencyUnitsResponse_QNAME = new QName("http://www.mnb.hu/webservices/", "GetCurrencyUnitsResponse"); + private final static QName _GetCurrentExchangeRatesRequestBody_QNAME = new QName("http://www.mnb.hu/webservices/", "GetCurrentExchangeRatesRequestBody"); + private final static QName _GetCurrentExchangeRates_QNAME = new QName("http://www.mnb.hu/webservices/", "GetCurrentExchangeRates"); + private final static QName _GetCurrentExchangeRatesResponseBody_QNAME = new QName("http://www.mnb.hu/webservices/", "GetCurrentExchangeRatesResponseBody"); + private final static QName _GetCurrentExchangeRatesResponse_QNAME = new QName("http://www.mnb.hu/webservices/", "GetCurrentExchangeRatesResponse"); + private final static QName _GetDateIntervalRequestBody_QNAME = new QName("http://www.mnb.hu/webservices/", "GetDateIntervalRequestBody"); + private final static QName _GetDateInterval_QNAME = new QName("http://www.mnb.hu/webservices/", "GetDateInterval"); + private final static QName _GetDateIntervalResponseBody_QNAME = new QName("http://www.mnb.hu/webservices/", "GetDateIntervalResponseBody"); + private final static QName _GetDateIntervalResponse_QNAME = new QName("http://www.mnb.hu/webservices/", "GetDateIntervalResponse"); + private final static QName _GetExchangeRatesRequestBody_QNAME = new QName("http://www.mnb.hu/webservices/", "GetExchangeRatesRequestBody"); + private final static QName _GetExchangeRates_QNAME = new QName("http://www.mnb.hu/webservices/", "GetExchangeRates"); + private final static QName _GetExchangeRatesResponseBody_QNAME = new QName("http://www.mnb.hu/webservices/", "GetExchangeRatesResponseBody"); + private final static QName _GetExchangeRatesResponse_QNAME = new QName("http://www.mnb.hu/webservices/", "GetExchangeRatesResponse"); + private final static QName _GetInfoRequestBody_QNAME = new QName("http://www.mnb.hu/webservices/", "GetInfoRequestBody"); + private final static QName _GetInfo_QNAME = new QName("http://www.mnb.hu/webservices/", "GetInfo"); + private final static QName _GetInfoResponseBody_QNAME = new QName("http://www.mnb.hu/webservices/", "GetInfoResponseBody"); + private final static QName _GetInfoResponse_QNAME = new QName("http://www.mnb.hu/webservices/", "GetInfoResponse"); + private final static QName _AnyType_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "anyType"); + private final static QName _AnyURI_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "anyURI"); + private final static QName _Base64Binary_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "base64Binary"); + private final static QName _Boolean_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "boolean"); + private final static QName _Byte_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "byte"); + private final static QName _DateTime_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "dateTime"); + private final static QName _Decimal_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "decimal"); + private final static QName _Double_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "double"); + private final static QName _Float_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "float"); + private final static QName _Int_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "int"); + private final static QName _Long_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "long"); + private final static QName _QName_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "QName"); + private final static QName _Short_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "short"); + private final static QName _String_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "string"); + private final static QName _UnsignedByte_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedByte"); + private final static QName _UnsignedInt_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedInt"); + private final static QName _UnsignedLong_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedLong"); + private final static QName _UnsignedShort_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedShort"); + private final static QName _Char_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "char"); + private final static QName _Duration_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "duration"); + private final static QName _Guid_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "guid"); + private final static QName _GetInfoResponseBodyGetInfoResult_QNAME = new QName("http://www.mnb.hu/webservices/", "GetInfoResult"); + private final static QName _GetExchangeRatesResponseBodyGetExchangeRatesResult_QNAME = new QName("http://www.mnb.hu/webservices/", "GetExchangeRatesResult"); + private final static QName _GetExchangeRatesRequestBodyStartDate_QNAME = new QName("http://www.mnb.hu/webservices/", "startDate"); + private final static QName _GetExchangeRatesRequestBodyEndDate_QNAME = new QName("http://www.mnb.hu/webservices/", "endDate"); + private final static QName _GetExchangeRatesRequestBodyCurrencyNames_QNAME = new QName("http://www.mnb.hu/webservices/", "currencyNames"); + private final static QName _GetDateIntervalResponseBodyGetDateIntervalResult_QNAME = new QName("http://www.mnb.hu/webservices/", "GetDateIntervalResult"); + private final static QName _GetCurrentExchangeRatesResponseBodyGetCurrentExchangeRatesResult_QNAME = new QName("http://www.mnb.hu/webservices/", "GetCurrentExchangeRatesResult"); + private final static QName _GetCurrencyUnitsResponseBodyGetCurrencyUnitsResult_QNAME = new QName("http://www.mnb.hu/webservices/", "GetCurrencyUnitsResult"); + private final static QName _GetCurrenciesResponseBodyGetCurrenciesResult_QNAME = new QName("http://www.mnb.hu/webservices/", "GetCurrenciesResult"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: hu.user.lis.service.mnb.client + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link GetCurrenciesRequestBody } + * + */ + public GetCurrenciesRequestBody createGetCurrenciesRequestBody() { + return new GetCurrenciesRequestBody(); + } + + /** + * Create an instance of {@link GetCurrenciesResponseBody } + * + */ + public GetCurrenciesResponseBody createGetCurrenciesResponseBody() { + return new GetCurrenciesResponseBody(); + } + + /** + * Create an instance of {@link GetCurrencyUnitsRequestBody } + * + */ + public GetCurrencyUnitsRequestBody createGetCurrencyUnitsRequestBody() { + return new GetCurrencyUnitsRequestBody(); + } + + /** + * Create an instance of {@link GetCurrencyUnitsResponseBody } + * + */ + public GetCurrencyUnitsResponseBody createGetCurrencyUnitsResponseBody() { + return new GetCurrencyUnitsResponseBody(); + } + + /** + * Create an instance of {@link GetCurrentExchangeRatesRequestBody } + * + */ + public GetCurrentExchangeRatesRequestBody createGetCurrentExchangeRatesRequestBody() { + return new GetCurrentExchangeRatesRequestBody(); + } + + /** + * Create an instance of {@link GetCurrentExchangeRatesResponseBody } + * + */ + public GetCurrentExchangeRatesResponseBody createGetCurrentExchangeRatesResponseBody() { + return new GetCurrentExchangeRatesResponseBody(); + } + + /** + * Create an instance of {@link GetDateIntervalRequestBody } + * + */ + public GetDateIntervalRequestBody createGetDateIntervalRequestBody() { + return new GetDateIntervalRequestBody(); + } + + /** + * Create an instance of {@link GetDateIntervalResponseBody } + * + */ + public GetDateIntervalResponseBody createGetDateIntervalResponseBody() { + return new GetDateIntervalResponseBody(); + } + + /** + * Create an instance of {@link GetExchangeRatesRequestBody } + * + */ + public GetExchangeRatesRequestBody createGetExchangeRatesRequestBody() { + return new GetExchangeRatesRequestBody(); + } + + /** + * Create an instance of {@link GetExchangeRatesResponseBody } + * + */ + public GetExchangeRatesResponseBody createGetExchangeRatesResponseBody() { + return new GetExchangeRatesResponseBody(); + } + + /** + * Create an instance of {@link GetInfoRequestBody } + * + */ + public GetInfoRequestBody createGetInfoRequestBody() { + return new GetInfoRequestBody(); + } + + /** + * Create an instance of {@link GetInfoResponseBody } + * + */ + public GetInfoResponseBody createGetInfoResponseBody() { + return new GetInfoResponseBody(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GetCurrenciesRequestBody }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link GetCurrenciesRequestBody }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetCurrenciesRequestBody") + public JAXBElement createGetCurrenciesRequestBody(GetCurrenciesRequestBody value) { + return new JAXBElement(_GetCurrenciesRequestBody_QNAME, GetCurrenciesRequestBody.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GetCurrenciesRequestBody }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link GetCurrenciesRequestBody }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetCurrencies") + public JAXBElement createGetCurrencies(GetCurrenciesRequestBody value) { + return new JAXBElement(_GetCurrencies_QNAME, GetCurrenciesRequestBody.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GetCurrenciesResponseBody }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link GetCurrenciesResponseBody }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetCurrenciesResponseBody") + public JAXBElement createGetCurrenciesResponseBody(GetCurrenciesResponseBody value) { + return new JAXBElement(_GetCurrenciesResponseBody_QNAME, GetCurrenciesResponseBody.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GetCurrenciesResponseBody }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link GetCurrenciesResponseBody }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetCurrenciesResponse") + public JAXBElement createGetCurrenciesResponse(GetCurrenciesResponseBody value) { + return new JAXBElement(_GetCurrenciesResponse_QNAME, GetCurrenciesResponseBody.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GetCurrencyUnitsRequestBody }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link GetCurrencyUnitsRequestBody }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetCurrencyUnitsRequestBody") + public JAXBElement createGetCurrencyUnitsRequestBody(GetCurrencyUnitsRequestBody value) { + return new JAXBElement(_GetCurrencyUnitsRequestBody_QNAME, GetCurrencyUnitsRequestBody.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GetCurrencyUnitsRequestBody }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link GetCurrencyUnitsRequestBody }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetCurrencyUnits") + public JAXBElement createGetCurrencyUnits(GetCurrencyUnitsRequestBody value) { + return new JAXBElement(_GetCurrencyUnits_QNAME, GetCurrencyUnitsRequestBody.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GetCurrencyUnitsResponseBody }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link GetCurrencyUnitsResponseBody }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetCurrencyUnitsResponseBody") + public JAXBElement createGetCurrencyUnitsResponseBody(GetCurrencyUnitsResponseBody value) { + return new JAXBElement(_GetCurrencyUnitsResponseBody_QNAME, GetCurrencyUnitsResponseBody.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GetCurrencyUnitsResponseBody }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link GetCurrencyUnitsResponseBody }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetCurrencyUnitsResponse") + public JAXBElement createGetCurrencyUnitsResponse(GetCurrencyUnitsResponseBody value) { + return new JAXBElement(_GetCurrencyUnitsResponse_QNAME, GetCurrencyUnitsResponseBody.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GetCurrentExchangeRatesRequestBody }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link GetCurrentExchangeRatesRequestBody }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetCurrentExchangeRatesRequestBody") + public JAXBElement createGetCurrentExchangeRatesRequestBody(GetCurrentExchangeRatesRequestBody value) { + return new JAXBElement(_GetCurrentExchangeRatesRequestBody_QNAME, GetCurrentExchangeRatesRequestBody.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GetCurrentExchangeRatesRequestBody }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link GetCurrentExchangeRatesRequestBody }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetCurrentExchangeRates") + public JAXBElement createGetCurrentExchangeRates(GetCurrentExchangeRatesRequestBody value) { + return new JAXBElement(_GetCurrentExchangeRates_QNAME, GetCurrentExchangeRatesRequestBody.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GetCurrentExchangeRatesResponseBody }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link GetCurrentExchangeRatesResponseBody }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetCurrentExchangeRatesResponseBody") + public JAXBElement createGetCurrentExchangeRatesResponseBody(GetCurrentExchangeRatesResponseBody value) { + return new JAXBElement(_GetCurrentExchangeRatesResponseBody_QNAME, GetCurrentExchangeRatesResponseBody.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GetCurrentExchangeRatesResponseBody }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link GetCurrentExchangeRatesResponseBody }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetCurrentExchangeRatesResponse") + public JAXBElement createGetCurrentExchangeRatesResponse(GetCurrentExchangeRatesResponseBody value) { + return new JAXBElement(_GetCurrentExchangeRatesResponse_QNAME, GetCurrentExchangeRatesResponseBody.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GetDateIntervalRequestBody }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link GetDateIntervalRequestBody }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetDateIntervalRequestBody") + public JAXBElement createGetDateIntervalRequestBody(GetDateIntervalRequestBody value) { + return new JAXBElement(_GetDateIntervalRequestBody_QNAME, GetDateIntervalRequestBody.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GetDateIntervalRequestBody }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link GetDateIntervalRequestBody }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetDateInterval") + public JAXBElement createGetDateInterval(GetDateIntervalRequestBody value) { + return new JAXBElement(_GetDateInterval_QNAME, GetDateIntervalRequestBody.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GetDateIntervalResponseBody }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link GetDateIntervalResponseBody }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetDateIntervalResponseBody") + public JAXBElement createGetDateIntervalResponseBody(GetDateIntervalResponseBody value) { + return new JAXBElement(_GetDateIntervalResponseBody_QNAME, GetDateIntervalResponseBody.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GetDateIntervalResponseBody }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link GetDateIntervalResponseBody }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetDateIntervalResponse") + public JAXBElement createGetDateIntervalResponse(GetDateIntervalResponseBody value) { + return new JAXBElement(_GetDateIntervalResponse_QNAME, GetDateIntervalResponseBody.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GetExchangeRatesRequestBody }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link GetExchangeRatesRequestBody }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetExchangeRatesRequestBody") + public JAXBElement createGetExchangeRatesRequestBody(GetExchangeRatesRequestBody value) { + return new JAXBElement(_GetExchangeRatesRequestBody_QNAME, GetExchangeRatesRequestBody.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GetExchangeRatesRequestBody }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link GetExchangeRatesRequestBody }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetExchangeRates") + public JAXBElement createGetExchangeRates(GetExchangeRatesRequestBody value) { + return new JAXBElement(_GetExchangeRates_QNAME, GetExchangeRatesRequestBody.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GetExchangeRatesResponseBody }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link GetExchangeRatesResponseBody }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetExchangeRatesResponseBody") + public JAXBElement createGetExchangeRatesResponseBody(GetExchangeRatesResponseBody value) { + return new JAXBElement(_GetExchangeRatesResponseBody_QNAME, GetExchangeRatesResponseBody.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GetExchangeRatesResponseBody }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link GetExchangeRatesResponseBody }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetExchangeRatesResponse") + public JAXBElement createGetExchangeRatesResponse(GetExchangeRatesResponseBody value) { + return new JAXBElement(_GetExchangeRatesResponse_QNAME, GetExchangeRatesResponseBody.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GetInfoRequestBody }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link GetInfoRequestBody }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetInfoRequestBody") + public JAXBElement createGetInfoRequestBody(GetInfoRequestBody value) { + return new JAXBElement(_GetInfoRequestBody_QNAME, GetInfoRequestBody.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GetInfoRequestBody }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link GetInfoRequestBody }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetInfo") + public JAXBElement createGetInfo(GetInfoRequestBody value) { + return new JAXBElement(_GetInfo_QNAME, GetInfoRequestBody.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GetInfoResponseBody }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link GetInfoResponseBody }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetInfoResponseBody") + public JAXBElement createGetInfoResponseBody(GetInfoResponseBody value) { + return new JAXBElement(_GetInfoResponseBody_QNAME, GetInfoResponseBody.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GetInfoResponseBody }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link GetInfoResponseBody }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetInfoResponse") + public JAXBElement createGetInfoResponse(GetInfoResponseBody value) { + return new JAXBElement(_GetInfoResponse_QNAME, GetInfoResponseBody.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link Object }{@code >} + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "anyType") + public JAXBElement createAnyType(Object value) { + return new JAXBElement(_AnyType_QNAME, Object.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "anyURI") + public JAXBElement createAnyURI(String value) { + return new JAXBElement(_AnyURI_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >} + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "base64Binary") + public JAXBElement createBase64Binary(byte[] value) { + return new JAXBElement(_Base64Binary_QNAME, byte[].class, null, ((byte[]) value)); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >} + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "boolean") + public JAXBElement createBoolean(Boolean value) { + return new JAXBElement(_Boolean_QNAME, Boolean.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Byte }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link Byte }{@code >} + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "byte") + public JAXBElement createByte(Byte value) { + return new JAXBElement(_Byte_QNAME, Byte.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >} + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "dateTime") + public JAXBElement createDateTime(XMLGregorianCalendar value) { + return new JAXBElement(_DateTime_QNAME, XMLGregorianCalendar.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigDecimal }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link BigDecimal }{@code >} + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "decimal") + public JAXBElement createDecimal(BigDecimal value) { + return new JAXBElement(_Decimal_QNAME, BigDecimal.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Double }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link Double }{@code >} + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "double") + public JAXBElement createDouble(Double value) { + return new JAXBElement(_Double_QNAME, Double.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Float }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link Float }{@code >} + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "float") + public JAXBElement createFloat(Float value) { + return new JAXBElement(_Float_QNAME, Float.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link Integer }{@code >} + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "int") + public JAXBElement createInt(Integer value) { + return new JAXBElement(_Int_QNAME, Integer.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Long }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link Long }{@code >} + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "long") + public JAXBElement createLong(Long value) { + return new JAXBElement(_Long_QNAME, Long.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link QName }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link QName }{@code >} + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "QName") + public JAXBElement createQName(QName value) { + return new JAXBElement(_QName_QNAME, QName.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Short }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link Short }{@code >} + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "short") + public JAXBElement createShort(Short value) { + return new JAXBElement(_Short_QNAME, Short.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "string") + public JAXBElement createString(String value) { + return new JAXBElement(_String_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Short }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link Short }{@code >} + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedByte") + public JAXBElement createUnsignedByte(Short value) { + return new JAXBElement(_UnsignedByte_QNAME, Short.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Long }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link Long }{@code >} + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedInt") + public JAXBElement createUnsignedInt(Long value) { + return new JAXBElement(_UnsignedInt_QNAME, Long.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >} + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedLong") + public JAXBElement createUnsignedLong(BigInteger value) { + return new JAXBElement(_UnsignedLong_QNAME, BigInteger.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link Integer }{@code >} + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedShort") + public JAXBElement createUnsignedShort(Integer value) { + return new JAXBElement(_UnsignedShort_QNAME, Integer.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link Integer }{@code >} + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "char") + public JAXBElement createChar(Integer value) { + return new JAXBElement(_Char_QNAME, Integer.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Duration }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link Duration }{@code >} + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "duration") + public JAXBElement createDuration(Duration value) { + return new JAXBElement(_Duration_QNAME, Duration.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "guid") + public JAXBElement createGuid(String value) { + return new JAXBElement(_Guid_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetInfoResult", scope = GetInfoResponseBody.class) + public JAXBElement createGetInfoResponseBodyGetInfoResult(String value) { + return new JAXBElement(_GetInfoResponseBodyGetInfoResult_QNAME, String.class, GetInfoResponseBody.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetExchangeRatesResult", scope = GetExchangeRatesResponseBody.class) + public JAXBElement createGetExchangeRatesResponseBodyGetExchangeRatesResult(String value) { + return new JAXBElement(_GetExchangeRatesResponseBodyGetExchangeRatesResult_QNAME, String.class, GetExchangeRatesResponseBody.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "startDate", scope = GetExchangeRatesRequestBody.class) + public JAXBElement createGetExchangeRatesRequestBodyStartDate(String value) { + return new JAXBElement(_GetExchangeRatesRequestBodyStartDate_QNAME, String.class, GetExchangeRatesRequestBody.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "endDate", scope = GetExchangeRatesRequestBody.class) + public JAXBElement createGetExchangeRatesRequestBodyEndDate(String value) { + return new JAXBElement(_GetExchangeRatesRequestBodyEndDate_QNAME, String.class, GetExchangeRatesRequestBody.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "currencyNames", scope = GetExchangeRatesRequestBody.class) + public JAXBElement createGetExchangeRatesRequestBodyCurrencyNames(String value) { + return new JAXBElement(_GetExchangeRatesRequestBodyCurrencyNames_QNAME, String.class, GetExchangeRatesRequestBody.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetDateIntervalResult", scope = GetDateIntervalResponseBody.class) + public JAXBElement createGetDateIntervalResponseBodyGetDateIntervalResult(String value) { + return new JAXBElement(_GetDateIntervalResponseBodyGetDateIntervalResult_QNAME, String.class, GetDateIntervalResponseBody.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetCurrentExchangeRatesResult", scope = GetCurrentExchangeRatesResponseBody.class) + public JAXBElement createGetCurrentExchangeRatesResponseBodyGetCurrentExchangeRatesResult(String value) { + return new JAXBElement(_GetCurrentExchangeRatesResponseBodyGetCurrentExchangeRatesResult_QNAME, String.class, GetCurrentExchangeRatesResponseBody.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetCurrencyUnitsResult", scope = GetCurrencyUnitsResponseBody.class) + public JAXBElement createGetCurrencyUnitsResponseBodyGetCurrencyUnitsResult(String value) { + return new JAXBElement(_GetCurrencyUnitsResponseBodyGetCurrencyUnitsResult_QNAME, String.class, GetCurrencyUnitsResponseBody.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "currencyNames", scope = GetCurrencyUnitsRequestBody.class) + public JAXBElement createGetCurrencyUnitsRequestBodyCurrencyNames(String value) { + return new JAXBElement(_GetExchangeRatesRequestBodyCurrencyNames_QNAME, String.class, GetCurrencyUnitsRequestBody.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://www.mnb.hu/webservices/", name = "GetCurrenciesResult", scope = GetCurrenciesResponseBody.class) + public JAXBElement createGetCurrenciesResponseBodyGetCurrenciesResult(String value) { + return new JAXBElement(_GetCurrenciesResponseBodyGetCurrenciesResult_QNAME, String.class, GetCurrenciesResponseBody.class, value); + } + +} diff --git a/lis-service/src/main/java/hu/user/lis/service/mnb/client/package-info.java b/lis-service/src/main/java/hu/user/lis/service/mnb/client/package-info.java new file mode 100644 index 0000000..ceac37b --- /dev/null +++ b/lis-service/src/main/java/hu/user/lis/service/mnb/client/package-info.java @@ -0,0 +1,2 @@ +@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.mnb.hu/webservices/", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) +package hu.user.lis.service.mnb.client;