From 51a635e21ef78cf74e5cca1f89428d076cbf3f1e Mon Sep 17 00:00:00 2001 From: "peter.vermes" Date: Sat, 1 May 2021 15:03:00 +1000 Subject: [PATCH 01/31] 1.0 --- LICENSE | 2 +- README.md | 62 +--- build.gradle | 50 +--- .../wsdl2java/ObjectFactoryMerger.groovy | 2 +- .../yupzip}/wsdl2java/Wsdl2JavaPlugin.groovy | 6 +- .../wsdl2java/Wsdl2JavaPluginExtension.groovy | 2 +- .../yupzip}/wsdl2java/Wsdl2JavaTask.groovy | 2 +- .../wsdl2java/ObjectFactoryMergerTest.groovy | 2 +- .../Wsdl2JavaPluginFunctionalTest.groovy | 2 +- .../wsdl2java/Wsdl2JavaPluginTest.groovy | 2 +- .../test-project-kotlin/build.gradle.kts | 28 -- .../test-project-kotlin/settings.gradle.kts | 0 .../no/nils/consumers/StockQuoteConsumer.kt | 9 - .../resources/custom/currencyconvertor.wsdl | 281 ------------------ .../main/resources/custom/glogalweather.wsdl | 209 ------------- .../src/main/resources/custom/stockqoute.wsdl | 123 -------- .../main/resources/xsd/CustomersAndOrders.xsd | 74 ----- .../nils/consumers/StockQuoteConsumerTest.kt | 10 - src/test/resources/test-project/build.gradle | 2 +- .../no/nils/consumers/StockQuoteConsumer.java | 2 +- .../consumers/StockQuoteConsumerTest.java | 2 +- 21 files changed, 40 insertions(+), 832 deletions(-) rename src/main/groovy/{no/nils => com/yupzip}/wsdl2java/ObjectFactoryMerger.groovy (99%) rename src/main/groovy/{no/nils => com/yupzip}/wsdl2java/Wsdl2JavaPlugin.groovy (94%) rename src/main/groovy/{no/nils => com/yupzip}/wsdl2java/Wsdl2JavaPluginExtension.groovy (95%) rename src/main/groovy/{no/nils => com/yupzip}/wsdl2java/Wsdl2JavaTask.groovy (99%) rename src/test/groovy/{no/nils => com/yupzip}/wsdl2java/ObjectFactoryMergerTest.groovy (98%) rename src/test/groovy/{no/nils => com/yupzip}/wsdl2java/Wsdl2JavaPluginFunctionalTest.groovy (99%) rename src/test/groovy/{no/nils => com/yupzip}/wsdl2java/Wsdl2JavaPluginTest.groovy (95%) delete mode 100644 src/test/resources/test-project-kotlin/build.gradle.kts delete mode 100644 src/test/resources/test-project-kotlin/settings.gradle.kts delete mode 100644 src/test/resources/test-project-kotlin/src/main/java/no/nils/consumers/StockQuoteConsumer.kt delete mode 100644 src/test/resources/test-project-kotlin/src/main/resources/custom/currencyconvertor.wsdl delete mode 100644 src/test/resources/test-project-kotlin/src/main/resources/custom/glogalweather.wsdl delete mode 100644 src/test/resources/test-project-kotlin/src/main/resources/custom/stockqoute.wsdl delete mode 100644 src/test/resources/test-project-kotlin/src/main/resources/xsd/CustomersAndOrders.xsd delete mode 100644 src/test/resources/test-project-kotlin/src/test/java/no/nils/consumers/StockQuoteConsumerTest.kt diff --git a/LICENSE b/LICENSE index 89eabd6..b92c2e4 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2014 Nils Larsgård, nilsmagnus@gmail.com +Copyright (c) 2021 Peter Vermes, peter.vermes@yupzip.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 79c6514..1fe966d 100644 --- a/README.md +++ b/README.md @@ -1,35 +1,19 @@ ### Deprecation notice -This plugin is no longer maintained by its creator since I dont have any interest in using this plugin anymore and find no pleasure in maintaining it for free/fun. Please fork it and use it as you like. The plugin is not published to any relevant plugin-portals. +This plugin is forked from deprecated nilsmagnus/wsdl2java. Version 1.0 only includes a small update to make the plugin compatible with Gradle 7+. wsdl2java gradle plugin ========= - -[![Known Vulnerabilities](https://snyk.io/test/github/nilsmagnus/wsdl2java/badge.svg?targetFile=build.gradle)](https://snyk.io/test/github/nilsmagnus/wsdl2java?targetFile=build.gradle) -[![Build Status](https://cloud.drone.io/api/badges/nilsmagnus/wsdl2java/status.svg)](https://cloud.drone.io/nilsmagnus/wsdl2java) -[ ![Download](https://api.bintray.com/packages/nilsmagnus/maven/wsdl2java/images/download.svg?version=0.12) ](https://bintray.com/nilsmagnus/maven/wsdl2java/0.12/link) - Gradle plugin for generating java from wsdl, using cxf under the hood and the same options as the maven wsdl-2-java plugin from apache-cxf. -The plugin binaries are downloadable from bintray: https://bintray.com/nilsmagnus/maven/wsdl2java/ - ### Issues -If you have any issues with the plugin, please file an issue at github, https://github.com/nilsmagnus/wsdl2java/issues +If you have any issues with the plugin, please file an issue at github, https://github.com/yupzip/wsdl2java/issues ### Contribution Contributions are welcome as long as they are sane. #### Contributors -- Nils Larsgård , https://github.com/nilsmagnus -- Mats Faugli, https://github.com/fowlie -- Thorben Schiller, https://github.com/thorbolo -- Stefan Kloe, https://github.com/Pentadrago -- Mattias Rundgren, https://github.com/matrun -- Steffen Döring, https://github.com/s-doering -- Jesper Skov, https://github.com/jskovjyskebankdk -- Manuel Sanches Ortiz, https://github.com/manuelsanchezortiz -- Ruben Gees, https://github.com/rubengees -- Stefan Krause-Kjær, https://github.com/KrauseStefan +- Peter Vermes , https://github.com/yupzip ### CXF This plugin uses the apache-cxf tools to do the actual work. @@ -39,7 +23,6 @@ This plugin uses the apache-cxf tools to do the actual work. | Name | Description | Dependecy | | ---- | ----------- | --------- | | wsdl2java | Generate java source from wsdl-files | CompileJava/CompileKotlin depends on wsdl2java | -| ~~xsd2java~~ | ~~Generate java source from xsd-files~~ Removed in version 0.8 | ~~CompileJava depends on xsd2java~~ | ## Usage @@ -53,17 +36,10 @@ To use this plugin, you must Groovy: ```groovy -buildscript{ - repositories{ - jcenter() - mavenCentral() - } - dependencies { - classpath 'no.nils:wsdl2java:0.12' - } +plugins { + id 'java' + classpath 'com.yupzip:wsdl2java:1.0' } - -apply plugin: 'no.nils.wsdl2java' ``` Kotlin: @@ -71,7 +47,7 @@ Kotlin: ```kotlin plugins { id("java") - id("no.nils.wsdl2java") version "0.12" + id("com.yupzip.wsdl2java") version "1.0" } ``` @@ -135,7 +111,7 @@ Example setting of options: xsd2java { encoding = 'utf-8' xsdsToGenerate = [ - ["src/main/resources/xsd/CustomersAndOrders.xsd", 'no.nils.xsd2java.sample', [header: false] /* optional map */] + ["src/main/resources/xsd/CustomersAndOrders.xsd", 'com.yupzip.xsd2java.sample', [header: false] /* optional map */] ] generatedXsdDir = file("generatedsources/xsd2java") } @@ -145,19 +121,11 @@ xsd2java { This is a an example of a working build.gradle for a java project. You can also take a look at the test resources, which contain two working projects. ```groovy -buildscript { - repositories { - jcenter() - mavenCentral() - } - dependencies { - classpath 'no.nils:wsdl2java:0.12' - } +plugins { + id 'java' + classpath 'com.yupzip:wsdl2java:1.0' } -apply plugin: 'java' -apply plugin: 'no.nils.wsdl2java' - repositories { mavenCentral() } @@ -184,10 +152,10 @@ This plugin automatically adds the necessary dependencies to work on Java 9+ whe As of now, these dependencies are added: ```groovy -implementation "javax.xml.bind:jaxb-api:2.3.1", -implementation "javax.xml.ws:jaxws-api:2.3.1", -implementation "org.glassfish.jaxb:jaxb-runtime:2.3.2", -implementation "org.glassfish.main.javaee-api:javax.jws:3.1.2.2", +implementation "javax.xml.bind:jaxb-api:2.3.1" +implementation "javax.xml.ws:jaxws-api:2.3.1" +implementation "org.glassfish.jaxb:jaxb-runtime:2.3.2" +implementation "org.glassfish.main.javaee-api:javax.jws:3.1.2.2" implementation "com.sun.xml.messaging.saaj:saaj-impl:1.5.1" ``` diff --git a/build.gradle b/build.gradle index e86418c..3eeb030 100644 --- a/build.gradle +++ b/build.gradle @@ -2,20 +2,20 @@ plugins { id "groovy" id "maven-publish" id "java-gradle-plugin" - id "com.jfrog.bintray" version "1.8.4" + id 'com.gradle.plugin-publish' version '0.14.0' id 'idea' id 'eclipse' } -group = 'no.nils' -version = '0.13-SNAPSHOT' +group = 'com.yupzip' +version = '1.0' // stay compatible with the crowd sourceCompatibility = JavaVersion.VERSION_1_6 targetCompatibility = JavaVersion.VERSION_1_6 repositories { - jcenter() + mavenCentral() } dependencies { @@ -41,12 +41,18 @@ test { gradlePlugin { plugins { wsdl2java { - id = 'no.nils.wsdl2java' - implementationClass = 'no.nils.wsdl2java.Wsdl2JavaPlugin' + id = 'com.yupzip.wsdl2java' + implementationClass = 'com.yupzip.wsdl2java.Wsdl2JavaPlugin' } } } +pluginBundle { + website = 'https://github.com/yupzip/wsdl2java' + vcsUrl = 'https://github.com/yupzip/wsdl2java' + tags = ['wsdl2java'] +} + publishing { publications { maven(MavenPublication) { @@ -55,38 +61,6 @@ publishing { } } -bintray { - apiUrl = "https://api.bintray.com" - user = System.env.BINTRAY_USER - key = System.env.BINTRAY_API_KEY - - publications = ['maven'] //When uploading Maven-based publication files - // - AND/OR - - dryRun = false //Whether to run this as dry-run, without deploying - publish = true //If version should be auto published after an upload - pkg { - repo = 'maven' - //userOrg = 'no.nils' //An optional organization name when the repo belongs to one of the user's orgs - name = 'wsdl2java' - desc = 'Gradle wsdl2java plugin' - websiteUrl = 'https://github.com/nilsmagnus/wsdl2java' - issueTrackerUrl = 'https://github.com/nilsmagnus/wsdl2java/issues' - vcsUrl = 'https://github.com/nilsmagnus/wsdl2java.git' - licenses = ['MIT'] - labels = ['gradle', 'wsdl2java', 'plugin'] - publicDownloadNumbers = true - //Optional version descriptor - version { - name = project.version //Bintray logical version name - desc = '' - //released = '' //2 possible values: date in the format of 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ' OR a java.util.Date instance - vcsTag = project.version - attributes = ['gradle-plugin': 'no.nils.wsdl2java:no.nils:wsdl2java'] - //Optional version-level attributes - } - } -} - wrapper { gradleVersion = '6.0.1' } diff --git a/src/main/groovy/no/nils/wsdl2java/ObjectFactoryMerger.groovy b/src/main/groovy/com/yupzip/wsdl2java/ObjectFactoryMerger.groovy similarity index 99% rename from src/main/groovy/no/nils/wsdl2java/ObjectFactoryMerger.groovy rename to src/main/groovy/com/yupzip/wsdl2java/ObjectFactoryMerger.groovy index 80dfc4a..bb0743a 100644 --- a/src/main/groovy/no/nils/wsdl2java/ObjectFactoryMerger.groovy +++ b/src/main/groovy/com/yupzip/wsdl2java/ObjectFactoryMerger.groovy @@ -1,4 +1,4 @@ -package no.nils.wsdl2java; +package com.yupzip.wsdl2java; /** * Takes one or more ObjectFactory java files and merge them, sorting the lines in the process. diff --git a/src/main/groovy/no/nils/wsdl2java/Wsdl2JavaPlugin.groovy b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy similarity index 94% rename from src/main/groovy/no/nils/wsdl2java/Wsdl2JavaPlugin.groovy rename to src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy index c0d705d..98d91c8 100644 --- a/src/main/groovy/no/nils/wsdl2java/Wsdl2JavaPlugin.groovy +++ b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy @@ -1,4 +1,4 @@ -package no.nils.wsdl2java +package com.yupzip.wsdl2java import org.gradle.api.JavaVersion import org.gradle.api.Plugin @@ -26,8 +26,8 @@ class Wsdl2JavaPlugin implements Plugin { // Add new configuration for our plugin and add required dependencies to it later. def wsdl2javaConfiguration = project.configurations.maybeCreate(WSDL2JAVA) - // Get compile configuration and add Java 9+ dependencies if required. - project.configurations.named("compile").configure { + // Get implementation configuration and add Java 9+ dependencies if required. + project.configurations.named("implementation").configure { it.withDependencies { if (JavaVersion.current().isJava9Compatible()) { JAVA_9_DEPENDENCIES.each { dep -> it.add(project.dependencies.create(dep)) } diff --git a/src/main/groovy/no/nils/wsdl2java/Wsdl2JavaPluginExtension.groovy b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginExtension.groovy similarity index 95% rename from src/main/groovy/no/nils/wsdl2java/Wsdl2JavaPluginExtension.groovy rename to src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginExtension.groovy index 38cdf48..8831222 100644 --- a/src/main/groovy/no/nils/wsdl2java/Wsdl2JavaPluginExtension.groovy +++ b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginExtension.groovy @@ -1,4 +1,4 @@ -package no.nils.wsdl2java +package com.yupzip.wsdl2java import org.gradle.api.tasks.* diff --git a/src/main/groovy/no/nils/wsdl2java/Wsdl2JavaTask.groovy b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy similarity index 99% rename from src/main/groovy/no/nils/wsdl2java/Wsdl2JavaTask.groovy rename to src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy index b422cee..f008120 100644 --- a/src/main/groovy/no/nils/wsdl2java/Wsdl2JavaTask.groovy +++ b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy @@ -1,4 +1,4 @@ -package no.nils.wsdl2java +package com.yupzip.wsdl2java import groovy.io.FileType import org.gradle.api.DefaultTask diff --git a/src/test/groovy/no/nils/wsdl2java/ObjectFactoryMergerTest.groovy b/src/test/groovy/com/yupzip/wsdl2java/ObjectFactoryMergerTest.groovy similarity index 98% rename from src/test/groovy/no/nils/wsdl2java/ObjectFactoryMergerTest.groovy rename to src/test/groovy/com/yupzip/wsdl2java/ObjectFactoryMergerTest.groovy index dd536e7..6bb69a8 100644 --- a/src/test/groovy/no/nils/wsdl2java/ObjectFactoryMergerTest.groovy +++ b/src/test/groovy/com/yupzip/wsdl2java/ObjectFactoryMergerTest.groovy @@ -1,4 +1,4 @@ -package no.nils.wsdl2java +package com.yupzip.wsdl2java import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.Test diff --git a/src/test/groovy/no/nils/wsdl2java/Wsdl2JavaPluginFunctionalTest.groovy b/src/test/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginFunctionalTest.groovy similarity index 99% rename from src/test/groovy/no/nils/wsdl2java/Wsdl2JavaPluginFunctionalTest.groovy rename to src/test/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginFunctionalTest.groovy index d2eba12..ab53112 100644 --- a/src/test/groovy/no/nils/wsdl2java/Wsdl2JavaPluginFunctionalTest.groovy +++ b/src/test/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginFunctionalTest.groovy @@ -1,4 +1,4 @@ -package no.nils.wsdl2java +package com.yupzip.wsdl2java import org.gradle.testkit.runner.GradleRunner import org.junit.jupiter.api.Test diff --git a/src/test/groovy/no/nils/wsdl2java/Wsdl2JavaPluginTest.groovy b/src/test/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginTest.groovy similarity index 95% rename from src/test/groovy/no/nils/wsdl2java/Wsdl2JavaPluginTest.groovy rename to src/test/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginTest.groovy index ada1b0f..512f600 100644 --- a/src/test/groovy/no/nils/wsdl2java/Wsdl2JavaPluginTest.groovy +++ b/src/test/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginTest.groovy @@ -1,4 +1,4 @@ -package no.nils.wsdl2java +package com.yupzip.wsdl2java import org.gradle.api.Project import org.gradle.testfixtures.ProjectBuilder diff --git a/src/test/resources/test-project-kotlin/build.gradle.kts b/src/test/resources/test-project-kotlin/build.gradle.kts deleted file mode 100644 index 7d90a48..0000000 --- a/src/test/resources/test-project-kotlin/build.gradle.kts +++ /dev/null @@ -1,28 +0,0 @@ -plugins { - kotlin("jvm") version "1.3.61" - kotlin("kapt") version "1.3.61" - id("no.nils.wsdl2java") -} - -repositories { - jcenter() -} - -dependencies { - implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.61") - - testImplementation("org.junit.jupiter:junit-jupiter-api:5.5.2") - testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.5.2") -} - -tasks.test { - useJUnitPlatform() -} - -wsdl2java { - wsdlsToGenerate = listOf( - listOf(project.file("src/main/resources/custom/stockqoute.wsdl")) - ) - wsdlDir = project.file("src/main/resources/custom") - cxfVersion = "+" -} diff --git a/src/test/resources/test-project-kotlin/settings.gradle.kts b/src/test/resources/test-project-kotlin/settings.gradle.kts deleted file mode 100644 index e69de29..0000000 diff --git a/src/test/resources/test-project-kotlin/src/main/java/no/nils/consumers/StockQuoteConsumer.kt b/src/test/resources/test-project-kotlin/src/main/java/no/nils/consumers/StockQuoteConsumer.kt deleted file mode 100644 index 50d5272..0000000 --- a/src/test/resources/test-project-kotlin/src/main/java/no/nils/consumers/StockQuoteConsumer.kt +++ /dev/null @@ -1,9 +0,0 @@ -package no.nils.consumers - -import net.webservicex.GetQuote - -class StockQuoteConsumer { - fun iWillCompile() { - val getQuote = GetQuote() - } -} diff --git a/src/test/resources/test-project-kotlin/src/main/resources/custom/currencyconvertor.wsdl b/src/test/resources/test-project-kotlin/src/main/resources/custom/currencyconvertor.wsdl deleted file mode 100644 index e6510b7..0000000 --- a/src/test/resources/test-project-kotlin/src/main/resources/custom/currencyconvertor.wsdl +++ /dev/null @@ -1,281 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br><b>Get conversion rate from one currency to another currency <b><br><p><b><font color='#000080' size='1' face='Verdana'><u>Differenct currency Code and Names around the world</u></font></b></p><blockquote><p><font face='Verdana' size='1'>AFA-Afghanistan Afghani<br>ALL-Albanian Lek<br>DZD-Algerian Dinar<br>ARS-Argentine Peso<br>AWG-Aruba Florin<br>AUD-Australian Dollar<br>BSD-Bahamian Dollar<br>BHD-Bahraini Dinar<br>BDT-Bangladesh Taka<br>BBD-Barbados Dollar<br>BZD-Belize Dollar<br>BMD-Bermuda Dollar<br>BTN-Bhutan Ngultrum<br>BOB-Bolivian Boliviano<br>BWP-Botswana Pula<br>BRL-Brazilian Real<br>GBP-British Pound<br>BND-Brunei Dollar<br>BIF-Burundi Franc<br>XOF-CFA Franc (BCEAO)<br>XAF-CFA Franc (BEAC)<br>KHR-Cambodia Riel<br>CAD-Canadian Dollar<br>CVE-Cape Verde Escudo<br>KYD-Cayman Islands Dollar<br>CLP-Chilean Peso<br>CNY-Chinese Yuan<br>COP-Colombian Peso<br>KMF-Comoros Franc<br>CRC-Costa Rica Colon<br>HRK-Croatian Kuna<br>CUP-Cuban Peso<br>CYP-Cyprus Pound<br>CZK-Czech Koruna<br>DKK-Danish Krone<br>DJF-Dijibouti Franc<br>DOP-Dominican Peso<br>XCD-East Caribbean Dollar<br>EGP-Egyptian Pound<br>SVC-El Salvador Colon<br>EEK-Estonian Kroon<br>ETB-Ethiopian Birr<br>EUR-Euro<br>FKP-Falkland Islands Pound<br>GMD-Gambian Dalasi<br>GHC-Ghanian Cedi<br>GIP-Gibraltar Pound<br>XAU-Gold Ounces<br>GTQ-Guatemala Quetzal<br>GNF-Guinea Franc<br>GYD-Guyana Dollar<br>HTG-Haiti Gourde<br>HNL-Honduras Lempira<br>HKD-Hong Kong Dollar<br>HUF-Hungarian Forint<br>ISK-Iceland Krona<br>INR-Indian Rupee<br>IDR-Indonesian Rupiah<br>IQD-Iraqi Dinar<br>ILS-Israeli Shekel<br>JMD-Jamaican Dollar<br>JPY-Japanese Yen<br>JOD-Jordanian Dinar<br>KZT-Kazakhstan Tenge<br>KES-Kenyan Shilling<br>KRW-Korean Won<br>KWD-Kuwaiti Dinar<br>LAK-Lao Kip<br>LVL-Latvian Lat<br>LBP-Lebanese Pound<br>LSL-Lesotho Loti<br>LRD-Liberian Dollar<br>LYD-Libyan Dinar<br>LTL-Lithuanian Lita<br>MOP-Macau Pataca<br>MKD-Macedonian Denar<br>MGF-Malagasy Franc<br>MWK-Malawi Kwacha<br>MYR-Malaysian Ringgit<br>MVR-Maldives Rufiyaa<br>MTL-Maltese Lira<br>MRO-Mauritania Ougulya<br>MUR-Mauritius Rupee<br>MXN-Mexican Peso<br>MDL-Moldovan Leu<br>MNT-Mongolian Tugrik<br>MAD-Moroccan Dirham<br>MZM-Mozambique Metical<br>MMK-Myanmar Kyat<br>NAD-Namibian Dollar<br>NPR-Nepalese Rupee<br>ANG-Neth Antilles Guilder<br>NZD-New Zealand Dollar<br>NIO-Nicaragua Cordoba<br>NGN-Nigerian Naira<br>KPW-North Korean Won<br>NOK-Norwegian Krone<br>OMR-Omani Rial<br>XPF-Pacific Franc<br>PKR-Pakistani Rupee<br>XPD-Palladium Ounces<br>PAB-Panama Balboa<br>PGK-Papua New Guinea Kina<br>PYG-Paraguayan Guarani<br>PEN-Peruvian Nuevo Sol<br>PHP-Philippine Peso<br>XPT-Platinum Ounces<br>PLN-Polish Zloty<br>QAR-Qatar Rial<br>ROL-Romanian Leu<br>RUB-Russian Rouble<br>WST-Samoa Tala<br>STD-Sao Tome Dobra<br>SAR-Saudi Arabian Riyal<br>SCR-Seychelles Rupee<br>SLL-Sierra Leone Leone<br>XAG-Silver Ounces<br>SGD-Singapore Dollar<br>SKK-Slovak Koruna<br>SIT-Slovenian Tolar<br>SBD-Solomon Islands Dollar<br>SOS-Somali Shilling<br>ZAR-South African Rand<br>LKR-Sri Lanka Rupee<br>SHP-St Helena Pound<br>SDD-Sudanese Dinar<br>SRG-Surinam Guilder<br>SZL-Swaziland Lilageni<br>SEK-Swedish Krona<br>TRY-Turkey Lira<br>CHF-Swiss Franc<br>SYP-Syrian Pound<br>TWD-Taiwan Dollar<br>TZS-Tanzanian Shilling<br>THB-Thai Baht<br>TOP-Tonga Pa'anga<br>TTD-Trinidad&amp;amp;Tobago Dollar<br>TND-Tunisian Dinar<br>TRL-Turkish Lira<br>USD-U.S. Dollar<br>AED-UAE Dirham<br>UGX-Ugandan Shilling<br>UAH-Ukraine Hryvnia<br>UYU-Uruguayan New Peso<br>VUV-Vanuatu Vatu<br>VEB-Venezuelan Bolivar<br>VND-Vietnam Dong<br>YER-Yemen Riyal<br>YUM-Yugoslav Dinar<br>ZMK-Zambian Kwacha<br>ZWD-Zimbabwe Dollar</font></p></blockquote> - - - - - - - <br><b>Get conversion rate from one currency to another currency <b><br><p><b><font color='#000080' size='1' face='Verdana'><u>Differenct currency Code and Names around the world</u></font></b></p><blockquote><p><font face='Verdana' size='1'>AFA-Afghanistan Afghani<br>ALL-Albanian Lek<br>DZD-Algerian Dinar<br>ARS-Argentine Peso<br>AWG-Aruba Florin<br>AUD-Australian Dollar<br>BSD-Bahamian Dollar<br>BHD-Bahraini Dinar<br>BDT-Bangladesh Taka<br>BBD-Barbados Dollar<br>BZD-Belize Dollar<br>BMD-Bermuda Dollar<br>BTN-Bhutan Ngultrum<br>BOB-Bolivian Boliviano<br>BWP-Botswana Pula<br>BRL-Brazilian Real<br>GBP-British Pound<br>BND-Brunei Dollar<br>BIF-Burundi Franc<br>XOF-CFA Franc (BCEAO)<br>XAF-CFA Franc (BEAC)<br>KHR-Cambodia Riel<br>CAD-Canadian Dollar<br>CVE-Cape Verde Escudo<br>KYD-Cayman Islands Dollar<br>CLP-Chilean Peso<br>CNY-Chinese Yuan<br>COP-Colombian Peso<br>KMF-Comoros Franc<br>CRC-Costa Rica Colon<br>HRK-Croatian Kuna<br>CUP-Cuban Peso<br>CYP-Cyprus Pound<br>CZK-Czech Koruna<br>DKK-Danish Krone<br>DJF-Dijibouti Franc<br>DOP-Dominican Peso<br>XCD-East Caribbean Dollar<br>EGP-Egyptian Pound<br>SVC-El Salvador Colon<br>EEK-Estonian Kroon<br>ETB-Ethiopian Birr<br>EUR-Euro<br>FKP-Falkland Islands Pound<br>GMD-Gambian Dalasi<br>GHC-Ghanian Cedi<br>GIP-Gibraltar Pound<br>XAU-Gold Ounces<br>GTQ-Guatemala Quetzal<br>GNF-Guinea Franc<br>GYD-Guyana Dollar<br>HTG-Haiti Gourde<br>HNL-Honduras Lempira<br>HKD-Hong Kong Dollar<br>HUF-Hungarian Forint<br>ISK-Iceland Krona<br>INR-Indian Rupee<br>IDR-Indonesian Rupiah<br>IQD-Iraqi Dinar<br>ILS-Israeli Shekel<br>JMD-Jamaican Dollar<br>JPY-Japanese Yen<br>JOD-Jordanian Dinar<br>KZT-Kazakhstan Tenge<br>KES-Kenyan Shilling<br>KRW-Korean Won<br>KWD-Kuwaiti Dinar<br>LAK-Lao Kip<br>LVL-Latvian Lat<br>LBP-Lebanese Pound<br>LSL-Lesotho Loti<br>LRD-Liberian Dollar<br>LYD-Libyan Dinar<br>LTL-Lithuanian Lita<br>MOP-Macau Pataca<br>MKD-Macedonian Denar<br>MGF-Malagasy Franc<br>MWK-Malawi Kwacha<br>MYR-Malaysian Ringgit<br>MVR-Maldives Rufiyaa<br>MTL-Maltese Lira<br>MRO-Mauritania Ougulya<br>MUR-Mauritius Rupee<br>MXN-Mexican Peso<br>MDL-Moldovan Leu<br>MNT-Mongolian Tugrik<br>MAD-Moroccan Dirham<br>MZM-Mozambique Metical<br>MMK-Myanmar Kyat<br>NAD-Namibian Dollar<br>NPR-Nepalese Rupee<br>ANG-Neth Antilles Guilder<br>NZD-New Zealand Dollar<br>NIO-Nicaragua Cordoba<br>NGN-Nigerian Naira<br>KPW-North Korean Won<br>NOK-Norwegian Krone<br>OMR-Omani Rial<br>XPF-Pacific Franc<br>PKR-Pakistani Rupee<br>XPD-Palladium Ounces<br>PAB-Panama Balboa<br>PGK-Papua New Guinea Kina<br>PYG-Paraguayan Guarani<br>PEN-Peruvian Nuevo Sol<br>PHP-Philippine Peso<br>XPT-Platinum Ounces<br>PLN-Polish Zloty<br>QAR-Qatar Rial<br>ROL-Romanian Leu<br>RUB-Russian Rouble<br>WST-Samoa Tala<br>STD-Sao Tome Dobra<br>SAR-Saudi Arabian Riyal<br>SCR-Seychelles Rupee<br>SLL-Sierra Leone Leone<br>XAG-Silver Ounces<br>SGD-Singapore Dollar<br>SKK-Slovak Koruna<br>SIT-Slovenian Tolar<br>SBD-Solomon Islands Dollar<br>SOS-Somali Shilling<br>ZAR-South African Rand<br>LKR-Sri Lanka Rupee<br>SHP-St Helena Pound<br>SDD-Sudanese Dinar<br>SRG-Surinam Guilder<br>SZL-Swaziland Lilageni<br>SEK-Swedish Krona<br>TRY-Turkey Lira<br>CHF-Swiss Franc<br>SYP-Syrian Pound<br>TWD-Taiwan Dollar<br>TZS-Tanzanian Shilling<br>THB-Thai Baht<br>TOP-Tonga Pa'anga<br>TTD-Trinidad&amp;amp;Tobago Dollar<br>TND-Tunisian Dinar<br>TRL-Turkish Lira<br>USD-U.S. Dollar<br>AED-UAE Dirham<br>UGX-Ugandan Shilling<br>UAH-Ukraine Hryvnia<br>UYU-Uruguayan New Peso<br>VUV-Vanuatu Vatu<br>VEB-Venezuelan Bolivar<br>VND-Vietnam Dong<br>YER-Yemen Riyal<br>YUM-Yugoslav Dinar<br>ZMK-Zambian Kwacha<br>ZWD-Zimbabwe Dollar</font></p></blockquote> - - - - - - - <br><b>Get conversion rate from one currency to another currency <b><br><p><b><font color='#000080' size='1' face='Verdana'><u>Differenct currency Code and Names around the world</u></font></b></p><blockquote><p><font face='Verdana' size='1'>AFA-Afghanistan Afghani<br>ALL-Albanian Lek<br>DZD-Algerian Dinar<br>ARS-Argentine Peso<br>AWG-Aruba Florin<br>AUD-Australian Dollar<br>BSD-Bahamian Dollar<br>BHD-Bahraini Dinar<br>BDT-Bangladesh Taka<br>BBD-Barbados Dollar<br>BZD-Belize Dollar<br>BMD-Bermuda Dollar<br>BTN-Bhutan Ngultrum<br>BOB-Bolivian Boliviano<br>BWP-Botswana Pula<br>BRL-Brazilian Real<br>GBP-British Pound<br>BND-Brunei Dollar<br>BIF-Burundi Franc<br>XOF-CFA Franc (BCEAO)<br>XAF-CFA Franc (BEAC)<br>KHR-Cambodia Riel<br>CAD-Canadian Dollar<br>CVE-Cape Verde Escudo<br>KYD-Cayman Islands Dollar<br>CLP-Chilean Peso<br>CNY-Chinese Yuan<br>COP-Colombian Peso<br>KMF-Comoros Franc<br>CRC-Costa Rica Colon<br>HRK-Croatian Kuna<br>CUP-Cuban Peso<br>CYP-Cyprus Pound<br>CZK-Czech Koruna<br>DKK-Danish Krone<br>DJF-Dijibouti Franc<br>DOP-Dominican Peso<br>XCD-East Caribbean Dollar<br>EGP-Egyptian Pound<br>SVC-El Salvador Colon<br>EEK-Estonian Kroon<br>ETB-Ethiopian Birr<br>EUR-Euro<br>FKP-Falkland Islands Pound<br>GMD-Gambian Dalasi<br>GHC-Ghanian Cedi<br>GIP-Gibraltar Pound<br>XAU-Gold Ounces<br>GTQ-Guatemala Quetzal<br>GNF-Guinea Franc<br>GYD-Guyana Dollar<br>HTG-Haiti Gourde<br>HNL-Honduras Lempira<br>HKD-Hong Kong Dollar<br>HUF-Hungarian Forint<br>ISK-Iceland Krona<br>INR-Indian Rupee<br>IDR-Indonesian Rupiah<br>IQD-Iraqi Dinar<br>ILS-Israeli Shekel<br>JMD-Jamaican Dollar<br>JPY-Japanese Yen<br>JOD-Jordanian Dinar<br>KZT-Kazakhstan Tenge<br>KES-Kenyan Shilling<br>KRW-Korean Won<br>KWD-Kuwaiti Dinar<br>LAK-Lao Kip<br>LVL-Latvian Lat<br>LBP-Lebanese Pound<br>LSL-Lesotho Loti<br>LRD-Liberian Dollar<br>LYD-Libyan Dinar<br>LTL-Lithuanian Lita<br>MOP-Macau Pataca<br>MKD-Macedonian Denar<br>MGF-Malagasy Franc<br>MWK-Malawi Kwacha<br>MYR-Malaysian Ringgit<br>MVR-Maldives Rufiyaa<br>MTL-Maltese Lira<br>MRO-Mauritania Ougulya<br>MUR-Mauritius Rupee<br>MXN-Mexican Peso<br>MDL-Moldovan Leu<br>MNT-Mongolian Tugrik<br>MAD-Moroccan Dirham<br>MZM-Mozambique Metical<br>MMK-Myanmar Kyat<br>NAD-Namibian Dollar<br>NPR-Nepalese Rupee<br>ANG-Neth Antilles Guilder<br>NZD-New Zealand Dollar<br>NIO-Nicaragua Cordoba<br>NGN-Nigerian Naira<br>KPW-North Korean Won<br>NOK-Norwegian Krone<br>OMR-Omani Rial<br>XPF-Pacific Franc<br>PKR-Pakistani Rupee<br>XPD-Palladium Ounces<br>PAB-Panama Balboa<br>PGK-Papua New Guinea Kina<br>PYG-Paraguayan Guarani<br>PEN-Peruvian Nuevo Sol<br>PHP-Philippine Peso<br>XPT-Platinum Ounces<br>PLN-Polish Zloty<br>QAR-Qatar Rial<br>ROL-Romanian Leu<br>RUB-Russian Rouble<br>WST-Samoa Tala<br>STD-Sao Tome Dobra<br>SAR-Saudi Arabian Riyal<br>SCR-Seychelles Rupee<br>SLL-Sierra Leone Leone<br>XAG-Silver Ounces<br>SGD-Singapore Dollar<br>SKK-Slovak Koruna<br>SIT-Slovenian Tolar<br>SBD-Solomon Islands Dollar<br>SOS-Somali Shilling<br>ZAR-South African Rand<br>LKR-Sri Lanka Rupee<br>SHP-St Helena Pound<br>SDD-Sudanese Dinar<br>SRG-Surinam Guilder<br>SZL-Swaziland Lilageni<br>SEK-Swedish Krona<br>TRY-Turkey Lira<br>CHF-Swiss Franc<br>SYP-Syrian Pound<br>TWD-Taiwan Dollar<br>TZS-Tanzanian Shilling<br>THB-Thai Baht<br>TOP-Tonga Pa'anga<br>TTD-Trinidad&amp;amp;Tobago Dollar<br>TND-Tunisian Dinar<br>TRL-Turkish Lira<br>USD-U.S. Dollar<br>AED-UAE Dirham<br>UGX-Ugandan Shilling<br>UAH-Ukraine Hryvnia<br>UYU-Uruguayan New Peso<br>VUV-Vanuatu Vatu<br>VEB-Venezuelan Bolivar<br>VND-Vietnam Dong<br>YER-Yemen Riyal<br>YUM-Yugoslav Dinar<br>ZMK-Zambian Kwacha<br>ZWD-Zimbabwe Dollar</font></p></blockquote> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/test/resources/test-project-kotlin/src/main/resources/custom/glogalweather.wsdl b/src/test/resources/test-project-kotlin/src/main/resources/custom/glogalweather.wsdl deleted file mode 100644 index a81178c..0000000 --- a/src/test/resources/test-project-kotlin/src/main/resources/custom/glogalweather.wsdl +++ /dev/null @@ -1,209 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get weather report for all major cities around the world. - - - - - Get all major cities by country name(full / part). - - - - - - - Get weather report for all major cities around the world. - - - - - Get all major cities by country name(full / part). - - - - - - - Get weather report for all major cities around the world. - - - - - Get all major cities by country name(full / part). - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/test/resources/test-project-kotlin/src/main/resources/custom/stockqoute.wsdl b/src/test/resources/test-project-kotlin/src/main/resources/custom/stockqoute.wsdl deleted file mode 100644 index 2214dfc..0000000 --- a/src/test/resources/test-project-kotlin/src/main/resources/custom/stockqoute.wsdl +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get Stock quote for a company Symbol - - - - - - - Get Stock quote for a company Symbol - - - - - - - Get Stock quote for a company Symbol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/test/resources/test-project-kotlin/src/main/resources/xsd/CustomersAndOrders.xsd b/src/test/resources/test-project-kotlin/src/main/resources/xsd/CustomersAndOrders.xsd deleted file mode 100644 index 014c008..0000000 --- a/src/test/resources/test-project-kotlin/src/main/resources/xsd/CustomersAndOrders.xsd +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/test/resources/test-project-kotlin/src/test/java/no/nils/consumers/StockQuoteConsumerTest.kt b/src/test/resources/test-project-kotlin/src/test/java/no/nils/consumers/StockQuoteConsumerTest.kt deleted file mode 100644 index aa934a8..0000000 --- a/src/test/resources/test-project-kotlin/src/test/java/no/nils/consumers/StockQuoteConsumerTest.kt +++ /dev/null @@ -1,10 +0,0 @@ -package no.nils.consumers - -import org.junit.jupiter.api.Test - -class StockQuoteConsumerTest { - @Test - fun willCompile() { - StockQuoteConsumer().iWillCompile() - } -} diff --git a/src/test/resources/test-project/build.gradle b/src/test/resources/test-project/build.gradle index b8bf494..e87594e 100644 --- a/src/test/resources/test-project/build.gradle +++ b/src/test/resources/test-project/build.gradle @@ -1,6 +1,6 @@ plugins { id 'java' - id 'no.nils.wsdl2java' + id 'com.yupzip.wsdl2java' } repositories { diff --git a/src/test/resources/test-project/src/main/java/no/nils/consumers/StockQuoteConsumer.java b/src/test/resources/test-project/src/main/java/no/nils/consumers/StockQuoteConsumer.java index d130ba5..1b31cd3 100644 --- a/src/test/resources/test-project/src/main/java/no/nils/consumers/StockQuoteConsumer.java +++ b/src/test/resources/test-project/src/main/java/no/nils/consumers/StockQuoteConsumer.java @@ -1,4 +1,4 @@ -package no.nils.consumers; +package com.yupzip.consumers; import net.webservicex.GetQuote; diff --git a/src/test/resources/test-project/src/test/java/no/nils/consumers/StockQuoteConsumerTest.java b/src/test/resources/test-project/src/test/java/no/nils/consumers/StockQuoteConsumerTest.java index a46239a..d5dfde4 100644 --- a/src/test/resources/test-project/src/test/java/no/nils/consumers/StockQuoteConsumerTest.java +++ b/src/test/resources/test-project/src/test/java/no/nils/consumers/StockQuoteConsumerTest.java @@ -1,4 +1,4 @@ -package no.nils.consumers; +package com.yupzip.consumers; import org.junit.jupiter.api.Test; From 93a8c8f09b72d13ca0ea5328f9f4c821118dcf86 Mon Sep 17 00:00:00 2001 From: "peter.vermes" Date: Sat, 1 May 2021 15:16:20 +1000 Subject: [PATCH 02/31] 1.0 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1fe966d..c716355 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -### Deprecation notice +### Note This plugin is forked from deprecated nilsmagnus/wsdl2java. Version 1.0 only includes a small update to make the plugin compatible with Gradle 7+. From f90884dad9fa5b72c252bbb19504633e69a2cab0 Mon Sep 17 00:00:00 2001 From: "peter.vermes" Date: Sat, 1 May 2021 15:21:30 +1000 Subject: [PATCH 03/31] 1.0 --- build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.gradle b/build.gradle index 3eeb030..40a3300 100644 --- a/build.gradle +++ b/build.gradle @@ -43,6 +43,8 @@ gradlePlugin { wsdl2java { id = 'com.yupzip.wsdl2java' implementationClass = 'com.yupzip.wsdl2java.Wsdl2JavaPlugin' + displayName = 'com.yupzip.wsdl2java' + description = 'Generate java code form wsdl/xsd with cxf' } } } From 0932b0cada23366d57391f01699eb63d2c3b5aad Mon Sep 17 00:00:00 2001 From: "peter.vermes" Date: Sat, 1 May 2021 15:24:04 +1000 Subject: [PATCH 04/31] 1.0 --- .gitignore | 1 + gradle.properties | 0 2 files changed, 1 insertion(+) delete mode 100644 gradle.properties diff --git a/.gitignore b/.gitignore index fac0b9c..dda28f5 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ repo/ consumer/generated* out .DS_Store +./gradle.properties diff --git a/gradle.properties b/gradle.properties deleted file mode 100644 index e69de29..0000000 From fb64a24899b9a64269b9ddcc7d2a1f0557b711cc Mon Sep 17 00:00:00 2001 From: "peter.vermes" Date: Tue, 4 May 2021 23:47:18 +1000 Subject: [PATCH 05/31] 2.0 - configurable outputdir --- README.md | 6 +- build.gradle | 2 +- .../yupzip/wsdl2java/Wsdl2JavaPlugin.groovy | 2 +- .../wsdl2java/Wsdl2JavaPluginExtension.groovy | 3 + .../com/yupzip/wsdl2java/Wsdl2JavaTask.groovy | 4 +- .../wsdl2java/ObjectFactoryMergerTest.groovy | 42 - .../Wsdl2JavaPluginFunctionalTest.groovy | 84 -- .../wsdl2java/Wsdl2JavaPluginTest.groovy | 25 - .../autodesktopservice/ObjectFactory.java | 170 ---- .../ObjectFactory_sorted.java | 171 ---- .../dokumentutil/ObjectFactory.java | 930 ------------------ .../dokumentutil/ObjectFactory_sorted.java | 930 ------------------ src/test/resources/test-project/build.gradle | 28 - .../resources/test-project/settings.gradle | 5 - .../no/nils/consumers/StockQuoteConsumer.java | 9 - .../resources/wsdl/currencyconvertor.wsdl | 281 ------ .../main/resources/wsdl/glogalweather.wsdl | 209 ---- .../src/main/resources/wsdl/stockqoute.wsdl | 123 --- .../main/resources/xsd/CustomersAndOrders.xsd | 74 -- .../consumers/StockQuoteConsumerTest.java | 11 - 20 files changed, 10 insertions(+), 3099 deletions(-) delete mode 100644 src/test/groovy/com/yupzip/wsdl2java/ObjectFactoryMergerTest.groovy delete mode 100644 src/test/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginFunctionalTest.groovy delete mode 100644 src/test/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginTest.groovy delete mode 100644 src/test/resources/objectfactorymerger/autodesktopservice/ObjectFactory.java delete mode 100644 src/test/resources/objectfactorymerger/autodesktopservice/ObjectFactory_sorted.java delete mode 100644 src/test/resources/objectfactorymerger/dokumentutil/ObjectFactory.java delete mode 100644 src/test/resources/objectfactorymerger/dokumentutil/ObjectFactory_sorted.java delete mode 100644 src/test/resources/test-project/build.gradle delete mode 100644 src/test/resources/test-project/settings.gradle delete mode 100644 src/test/resources/test-project/src/main/java/no/nils/consumers/StockQuoteConsumer.java delete mode 100644 src/test/resources/test-project/src/main/resources/wsdl/currencyconvertor.wsdl delete mode 100644 src/test/resources/test-project/src/main/resources/wsdl/glogalweather.wsdl delete mode 100644 src/test/resources/test-project/src/main/resources/wsdl/stockqoute.wsdl delete mode 100644 src/test/resources/test-project/src/main/resources/xsd/CustomersAndOrders.xsd delete mode 100644 src/test/resources/test-project/src/test/java/no/nils/consumers/StockQuoteConsumerTest.java diff --git a/README.md b/README.md index c716355..571f79e 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Groovy: ```groovy plugins { id 'java' - classpath 'com.yupzip:wsdl2java:1.0' + classpath 'com.yupzip:wsdl2java:2.0' } ``` @@ -47,7 +47,7 @@ Kotlin: ```kotlin plugins { id("java") - id("com.yupzip.wsdl2java") version "1.0" + id("com.yupzip.wsdl2java") version "2.0" } ``` @@ -123,7 +123,7 @@ This is a an example of a working build.gradle for a java project. You can also ```groovy plugins { id 'java' - classpath 'com.yupzip:wsdl2java:1.0' + classpath 'com.yupzip:wsdl2java:2.0' } repositories { diff --git a/build.gradle b/build.gradle index 40a3300..e98dffa 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ plugins { } group = 'com.yupzip' -version = '1.0' +version = '2.0' // stay compatible with the crowd sourceCompatibility = JavaVersion.VERSION_1_6 diff --git a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy index 98d91c8..64851f8 100644 --- a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy +++ b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy @@ -74,7 +74,7 @@ class Wsdl2JavaPlugin implements Plugin { } project.sourceSets { - main.java.srcDirs += Wsdl2JavaTask.DESTINATION_DIR + main.java.srcDirs += extension.generatedWsdlDir } } diff --git a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginExtension.groovy b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginExtension.groovy index 8831222..49fab30 100644 --- a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginExtension.groovy +++ b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginExtension.groovy @@ -33,4 +33,7 @@ class Wsdl2JavaPluginExtension { @Input String cxfPluginVersion = "+" + @Input + String generatedWsdlDir = "build/generated/wsdl" + } diff --git a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy index f008120..a8d9f7a 100644 --- a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy +++ b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy @@ -9,12 +9,11 @@ import java.security.MessageDigest @CacheableTask class Wsdl2JavaTask extends DefaultTask { - static final DESTINATION_DIR = "build/generated/wsdl" private static final NEWLINE = System.getProperty("line.separator") @OutputDirectory - File generatedWsdlDir = new File(DESTINATION_DIR) + File generatedWsdlDir = new File( "build/generated/wsdl") @InputFiles @Classpath @@ -28,6 +27,7 @@ class Wsdl2JavaTask extends DefaultTask { @TaskAction def wsdl2java() { + generatedWsdlDir = new File(extension.generatedWsdlDir) deleteOutputFolders() MessageDigest md5 = MessageDigest.getInstance("MD5") diff --git a/src/test/groovy/com/yupzip/wsdl2java/ObjectFactoryMergerTest.groovy b/src/test/groovy/com/yupzip/wsdl2java/ObjectFactoryMergerTest.groovy deleted file mode 100644 index 6bb69a8..0000000 --- a/src/test/groovy/com/yupzip/wsdl2java/ObjectFactoryMergerTest.groovy +++ /dev/null @@ -1,42 +0,0 @@ -package com.yupzip.wsdl2java - -import org.junit.jupiter.api.BeforeEach -import org.junit.jupiter.api.Test - -import static org.junit.jupiter.api.Assertions.assertEquals - -class ObjectFactoryMergerTest { - File outputDir = new File("build/test") - - @BeforeEach - void cleanOutput() { - outputDir.deleteDir() - outputDir.mkdirs() - } - - @Test - void mergeWithEmptyCreatorsWorks() { - File input = new File(this.class.classLoader.getResource("objectfactorymerger/dokumentutil/ObjectFactory.java").toURI()) - File output = new File(outputDir, "ObjectFactory.java") - - output.withWriter("UTF-8") { w -> w.write(input.getText("UTF-8")) } - - ObjectFactoryMerger.merge(input, output, "UTF-8") - - File expected = new File(this.class.classLoader.getResource("objectfactorymerger/dokumentutil/ObjectFactory_sorted.java").toURI()) - assertEquals(expected.getText("UTF-8"), output.getText("UTF-8"), "Sorting should be stable") - } - - @Test - void mergeWithoutNoCreatorWorks() { - File input = new File(this.class.classLoader.getResource("objectfactorymerger/autodesktopservice/ObjectFactory.java").toURI()) - File output = new File(outputDir, "ObjectFactory.java") - - output.withWriter("UTF-8") { w -> w.write(input.getText("UTF-8")) } - - ObjectFactoryMerger.merge(input, output, "UTF-8") - - File expected = new File(this.class.classLoader.getResource("objectfactorymerger/autodesktopservice/ObjectFactory_sorted.java").toURI()) - assertEquals(expected.getText("UTF-8"), output.getText("UTF-8"), "Sorting should be stable") - } -} diff --git a/src/test/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginFunctionalTest.groovy b/src/test/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginFunctionalTest.groovy deleted file mode 100644 index ab53112..0000000 --- a/src/test/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginFunctionalTest.groovy +++ /dev/null @@ -1,84 +0,0 @@ -package com.yupzip.wsdl2java - -import org.gradle.testkit.runner.GradleRunner -import org.junit.jupiter.api.Test -import org.junit.jupiter.params.ParameterizedTest -import org.junit.jupiter.params.provider.ValueSource - -import static org.gradle.testkit.runner.TaskOutcome.FROM_CACHE -import static org.gradle.testkit.runner.TaskOutcome.SUCCESS -import static org.junit.jupiter.api.Assertions.assertEquals - -class Wsdl2JavaPluginFunctionalTest { - - private File projectDir = new File(this.class.classLoader.getResource("test-project").toURI()) - private File kotlinProjectDir = new File(this.class.classLoader.getResource("test-project-kotlin").toURI()) - - @Test - void canRunWsdl2Java() { - def result = GradleRunner.create() - .withPluginClasspath() - .withProjectDir(projectDir) - .withArguments("clean", "wsdl2java", "--stacktrace") - .build() - - assertEquals(SUCCESS, result.task(":wsdl2java").getOutcome()) - } - - @Test - void canCompileProjectWithGeneratedWsdls() { - def result = GradleRunner.create() - .withPluginClasspath() - .withProjectDir(projectDir) - .withArguments("clean", "build", "--stacktrace") - .build() - - assertEquals(SUCCESS, result.task(":build").getOutcome()) - } - - @Test - void canCompileKotlinProject() { - def result = GradleRunner.create() - .withPluginClasspath() - .withProjectDir(kotlinProjectDir) - .withArguments("clean", "build", "--stacktrace") - .build() - - assertEquals(SUCCESS, result.task(":build").getOutcome()) - } - - @ParameterizedTest(name = "{0}") - @ValueSource(strings = ["5.6.4", "4.10.3"]) - void worksWithOlderGradleVersions(String version) { - def result = GradleRunner.create() - .withPluginClasspath() - .withProjectDir(projectDir) - .withGradleVersion(version) - .withArguments("clean", "build", "--stacktrace") - .build() - - assertEquals(SUCCESS, result.task(":build").getOutcome()) - } - - @Test - void buildCacheWorks() { - // Delete build cache form previous test runs. - new File(projectDir, "build-cache").deleteDir() - - def result1 = GradleRunner.create() - .withPluginClasspath() - .withProjectDir(projectDir) - .withArguments("clean", "wsdl2java", "--build-cache", "--stacktrace") - .build() - - assertEquals(SUCCESS, result1.task(":wsdl2java").getOutcome()) - - def result2 = GradleRunner.create() - .withPluginClasspath() - .withProjectDir(projectDir) - .withArguments("clean", "wsdl2java", "--build-cache", "--stacktrace") - .build() - - assertEquals(FROM_CACHE, result2.task(":wsdl2java").getOutcome()) - } -} diff --git a/src/test/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginTest.groovy b/src/test/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginTest.groovy deleted file mode 100644 index 512f600..0000000 --- a/src/test/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginTest.groovy +++ /dev/null @@ -1,25 +0,0 @@ -package com.yupzip.wsdl2java - -import org.gradle.api.Project -import org.gradle.testfixtures.ProjectBuilder -import org.junit.jupiter.api.Test - -import static org.junit.jupiter.api.Assertions.assertTrue - -class Wsdl2JavaPluginTest { - - @Test - void canAddWsdlTaskToProject() { - Project project = ProjectBuilder.builder().build() - def task = project.task('wsdl2java', type: Wsdl2JavaTask) - assertTrue(task instanceof Wsdl2JavaTask) - } - - @Test - void wsdl2javaPluginAddsWsdl2javaTaskToProject() { - Project project = ProjectBuilder.builder().build() - project.apply(plugin: Wsdl2JavaPlugin) - - assertTrue(project.tasks.wsdl2java instanceof Wsdl2JavaTask) - } -} diff --git a/src/test/resources/objectfactorymerger/autodesktopservice/ObjectFactory.java b/src/test/resources/objectfactorymerger/autodesktopservice/ObjectFactory.java deleted file mode 100644 index 01cb8fb..0000000 --- a/src/test/resources/objectfactorymerger/autodesktopservice/ObjectFactory.java +++ /dev/null @@ -1,170 +0,0 @@ - -package https.www_jyffi_dk.autodesktopservice.v1_0; - -import javax.xml.bind.annotation.XmlRegistry; - - -/** - * This object contains factory methods for each - * Java content interface and Java element interface - * generated in the https.www_jyffi_dk.autodesktopservice.v1_0 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 { - - - - /** - * Create an instance of {@link UsedCar } - * - */ - public UsedCar createUsedCar() { - return new UsedCar(); - } - - /** - * Create an instance of {@link Car } - * - */ - public Car createCar() { - return new Car(); - } - - /** - * Create an instance of {@link ClientFault } - * - */ - public ClientFault createClientFault() { - return new ClientFault(); - } - - /** - * Create an instance of {@link CommercialCustomerType } - * - */ - public CommercialCustomerType createCommercialCustomerType() { - return new CommercialCustomerType(); - } - - /** - * Create an instance of {@link ConsumerCustomerType } - * - */ - public ConsumerCustomerType createConsumerCustomerType() { - return new ConsumerCustomerType(); - } - - /** - * Create an instance of {@link ContactPersonType } - * - */ - public ContactPersonType createContactPersonType() { - return new ContactPersonType(); - } - - /** - * Create an instance of {@link CustomerType } - * - */ - public CustomerType createCustomerType() { - return new CustomerType(); - } - - /** - * Create an instance of {@link DbiCar } - * - */ - public DbiCar createDbiCar() { - return new DbiCar(); - } - - /** - * Create an instance of {@link DbiEquipment } - * - */ - public DbiEquipment createDbiEquipment() { - return new DbiEquipment(); - } - - /** - * Create an instance of {@link DocumentKey } - * - */ - public DocumentKey createDocumentKey() { - return new DocumentKey(); - } - - /** - * Create an instance of {@link DocumentListRequest } - * - */ - public DocumentListRequest createDocumentListRequest() { - return new DocumentListRequest(); - } - - /** - * Create an instance of {@link DocumentListResponse } - * - */ - public DocumentListResponse createDocumentListResponse() { - return new DocumentListResponse(); - } - - /** - * Create an instance of {@link Equipment } - * - */ - public Equipment createEquipment() { - return new Equipment(); - } - - /** - * Create an instance of {@link ServiceAgreement } - * - */ - public ServiceAgreement createServiceAgreement() { - return new ServiceAgreement(); - } - - /** - * Create an instance of {@link TokenRequest } - * - */ - public TokenRequest createTokenRequest() { - return new TokenRequest(); - } - - /** - * Create an instance of {@link TokenResponse } - * - */ - public TokenResponse createTokenResponse() { - return new TokenResponse(); - } - - /** - * Create an instance of {@link TradeInCar } - * - */ - public TradeInCar createTradeInCar() { - return new TradeInCar(); - } - - /** - * Create an instance of {@link UserDataType } - * - */ - public UserDataType createUserDataType() { - return new UserDataType(); - } - -} diff --git a/src/test/resources/objectfactorymerger/autodesktopservice/ObjectFactory_sorted.java b/src/test/resources/objectfactorymerger/autodesktopservice/ObjectFactory_sorted.java deleted file mode 100644 index aab787a..0000000 --- a/src/test/resources/objectfactorymerger/autodesktopservice/ObjectFactory_sorted.java +++ /dev/null @@ -1,171 +0,0 @@ - -package https.www_jyffi_dk.autodesktopservice.v1_0; - -import javax.xml.bind.annotation.XmlRegistry; - - -/** - * This object contains factory methods for each - * Java content interface and Java element interface - * generated in the https.www_jyffi_dk.autodesktopservice.v1_0 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 { - - - - - /** - * Create an instance of {@link Car } - * - */ - public Car createCar() { - return new Car(); - } - - /** - * Create an instance of {@link ClientFault } - * - */ - public ClientFault createClientFault() { - return new ClientFault(); - } - - /** - * Create an instance of {@link CommercialCustomerType } - * - */ - public CommercialCustomerType createCommercialCustomerType() { - return new CommercialCustomerType(); - } - - /** - * Create an instance of {@link ConsumerCustomerType } - * - */ - public ConsumerCustomerType createConsumerCustomerType() { - return new ConsumerCustomerType(); - } - - /** - * Create an instance of {@link ContactPersonType } - * - */ - public ContactPersonType createContactPersonType() { - return new ContactPersonType(); - } - - /** - * Create an instance of {@link CustomerType } - * - */ - public CustomerType createCustomerType() { - return new CustomerType(); - } - - /** - * Create an instance of {@link DbiCar } - * - */ - public DbiCar createDbiCar() { - return new DbiCar(); - } - - /** - * Create an instance of {@link DbiEquipment } - * - */ - public DbiEquipment createDbiEquipment() { - return new DbiEquipment(); - } - - /** - * Create an instance of {@link DocumentKey } - * - */ - public DocumentKey createDocumentKey() { - return new DocumentKey(); - } - - /** - * Create an instance of {@link DocumentListRequest } - * - */ - public DocumentListRequest createDocumentListRequest() { - return new DocumentListRequest(); - } - - /** - * Create an instance of {@link DocumentListResponse } - * - */ - public DocumentListResponse createDocumentListResponse() { - return new DocumentListResponse(); - } - - /** - * Create an instance of {@link Equipment } - * - */ - public Equipment createEquipment() { - return new Equipment(); - } - - /** - * Create an instance of {@link ServiceAgreement } - * - */ - public ServiceAgreement createServiceAgreement() { - return new ServiceAgreement(); - } - - /** - * Create an instance of {@link TokenRequest } - * - */ - public TokenRequest createTokenRequest() { - return new TokenRequest(); - } - - /** - * Create an instance of {@link TokenResponse } - * - */ - public TokenResponse createTokenResponse() { - return new TokenResponse(); - } - - /** - * Create an instance of {@link TradeInCar } - * - */ - public TradeInCar createTradeInCar() { - return new TradeInCar(); - } - - /** - * Create an instance of {@link UsedCar } - * - */ - public UsedCar createUsedCar() { - return new UsedCar(); - } - - /** - * Create an instance of {@link UserDataType } - * - */ - public UserDataType createUserDataType() { - return new UserDataType(); - } - -} diff --git a/src/test/resources/objectfactorymerger/dokumentutil/ObjectFactory.java b/src/test/resources/objectfactorymerger/dokumentutil/ObjectFactory.java deleted file mode 100644 index 053f3e1..0000000 --- a/src/test/resources/objectfactorymerger/dokumentutil/ObjectFactory.java +++ /dev/null @@ -1,930 +0,0 @@ - -package dk.jyskebank.service.dokumentutil.ws; - -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 dk.jyskebank.service.dokumentutil.ws 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 _UnsignedLong_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedLong"); - private final static QName _UnsignedByte_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedByte"); - private final static QName _UnsignedShort_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedShort"); - private final static QName _MessageHeader_QNAME = new QName("http://v1.messageheader.esv.bankdata.dk", "MessageHeader"); - private final static QName _DocumentInfoList_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentInfoList"); - private final static QName _Duration_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "duration"); - private final static QName _DocumentTypeList_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentTypeList"); - private final static QName _ReferenceNumberList_QNAME = new QName("http://did.esv.bankdata.dk", "ReferenceNumberList"); - private final static QName _DocumentType_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentType"); - private final static QName _DocumentTypes_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentTypes"); - private final static QName _Long_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "long"); - private final static QName _HentDokumentSvarConvres_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.DID.DokumentUtil.Generated", "hentDokumentSvarConvres"); - private final static QName _Float_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "float"); - private final static QName _DocumentInfo_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentInfo"); - private final static QName _DateTime_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "dateTime"); - private final static QName _HentDokumentSvar_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.DID.DokumentUtil.Generated", "hentDokumentSvar"); - private final static QName _ArchivePdfDocument_QNAME = new QName("http://did.esv.bankdata.dk", "ArchivePdfDocument"); - private final static QName _AnyType_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "anyType"); - private final static QName _String_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "string"); - private final static QName _ParameterList_QNAME = new QName("http://did.esv.bankdata.dk", "ParameterList"); - private final static QName _Parameter_QNAME = new QName("http://did.esv.bankdata.dk", "Parameter"); - private final static QName _UnsignedInt_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedInt"); - private final static QName _Char_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "char"); - private final static QName _Short_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "short"); - private final static QName _Guid_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "guid"); - private final static QName _GetDocumentTypes_QNAME = new QName("http://did.esv.bankdata.dk", "GetDocumentTypes"); - private final static QName _Decimal_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "decimal"); - private final static QName _Boolean_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "boolean"); - private final static QName _FieldList_QNAME = new QName("http://did.esv.bankdata.dk", "FieldList"); - private final static QName _HentDokumentResp_QNAME = new QName("http://did.esv.bankdata.dk", "HentDokumentResp"); - private final static QName _HentDokumentSvarConvresNettrans_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.DID.DokumentUtil.Generated", "hentDokumentSvarConvresNettrans"); - private final static QName _Base64Binary_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "base64Binary"); - private final static QName _ArchivedPdfDocument_QNAME = new QName("http://did.esv.bankdata.dk", "ArchivedPdfDocument"); - private final static QName _Int_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "int"); - private final static QName _AnyURI_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "anyURI"); - private final static QName _Field_QNAME = new QName("http://did.esv.bankdata.dk", "Field"); - private final static QName _Byte_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "byte"); - private final static QName _Double_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "double"); - private final static QName _QName_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "QName"); - private final static QName _HentDokumentReqBody_QNAME = new QName("http://did.esv.bankdata.dk", "HentDokumentReqBody"); - private final static QName _DocumentArea_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentArea"); - private final static QName _HentDokumentRequestBody_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", "HentDokumentRequestBody"); - private final static QName _DocumentAreaList_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentAreaList"); - private final static QName _ParameterKey_QNAME = new QName("http://did.esv.bankdata.dk", "Key"); - private final static QName _ParameterValue_QNAME = new QName("http://did.esv.bankdata.dk", "Value"); - private final static QName _DocumentAreaName_QNAME = new QName("http://did.esv.bankdata.dk", "Name"); - private final static QName _DocumentAreaId_QNAME = new QName("http://did.esv.bankdata.dk", "Id"); - private final static QName _ArchivePdfDocumentDocument_QNAME = new QName("http://did.esv.bankdata.dk", "Document"); - private final static QName _DocumentTypeShowCustomerCode_QNAME = new QName("http://did.esv.bankdata.dk", "ShowCustomerCode"); - private final static QName _DocumentTypeMessage_QNAME = new QName("http://did.esv.bankdata.dk", "Message"); - private final static QName _DocumentTypePrintId_QNAME = new QName("http://did.esv.bankdata.dk", "PrintId"); - private final static QName _DocumentTypeDocumentTypeId_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentTypeId"); - private final static QName _DocumentTypeDocumentTypeName_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentTypeName"); - private final static QName _DocumentTypeAccessOnlineBankingCode_QNAME = new QName("http://did.esv.bankdata.dk", "AccessOnlineBankingCode"); - private final static QName _DocumentTypeDocumentAreaId_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentAreaId"); - private final static QName _FieldTypeCodeText_QNAME = new QName("http://did.esv.bankdata.dk", "TypeCodeText"); - private final static QName _FieldObltorCode_QNAME = new QName("http://did.esv.bankdata.dk", "ObltorCode"); - private final static QName _FieldSortNumber_QNAME = new QName("http://did.esv.bankdata.dk", "SortNumber"); - private final static QName _FieldFieldName_QNAME = new QName("http://did.esv.bankdata.dk", "FieldName"); - private final static QName _FieldPlaceCode_QNAME = new QName("http://did.esv.bankdata.dk", "PlaceCode"); - private final static QName _HentDokumentRequestBodyUserId_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", "userId"); - private final static QName _HentDokumentRequestBodyDokId_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", "dokId"); - private final static QName _HentDokumentRequestBodyBankNr_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", "bankNr"); - private final static QName _HentDokumentRequestBodyRefNr_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", "refNr"); - private final static QName _DocumentInfoReferenceNumber_QNAME = new QName("http://did.esv.bankdata.dk", "ReferenceNumber"); - private final static QName _DocumentInfoDocumentId_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentId"); - - /** - * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: dk.jyskebank.service.dokumentutil.ws - * - */ - public ObjectFactory() { - } - - /** - * Create an instance of {@link Parameter } - * - */ - public Parameter createParameter() { - return new Parameter(); - } - - /** - * Create an instance of {@link DocumentAreaList } - * - */ - public DocumentAreaList createDocumentAreaList() { - return new DocumentAreaList(); - } - - /** - * Create an instance of {@link DocumentType } - * - */ - public DocumentType createDocumentType() { - return new DocumentType(); - } - - /** - * Create an instance of {@link GetDocumentTypes } - * - */ - public GetDocumentTypes createGetDocumentTypes() { - return new GetDocumentTypes(); - } - - /** - * Create an instance of {@link HentDokumentSvarConvres } - * - */ - public HentDokumentSvarConvres createHentDokumentSvarConvres() { - return new HentDokumentSvarConvres(); - } - - /** - * Create an instance of {@link Field } - * - */ - public Field createField() { - return new Field(); - } - - /** - * Create an instance of {@link DocumentTypes } - * - */ - public DocumentTypes createDocumentTypes() { - return new DocumentTypes(); - } - - /** - * Create an instance of {@link ReferenceNumberList } - * - */ - public ReferenceNumberList createReferenceNumberList() { - return new ReferenceNumberList(); - } - - /** - * Create an instance of {@link HentDokumentRequestBody } - * - */ - public HentDokumentRequestBody createHentDokumentRequestBody() { - return new HentDokumentRequestBody(); - } - - /** - * Create an instance of {@link HentDokumentSvar } - * - */ - public HentDokumentSvar createHentDokumentSvar() { - return new HentDokumentSvar(); - } - - /** - * Create an instance of {@link ParameterList } - * - */ - public ParameterList createParameterList() { - return new ParameterList(); - } - - /** - * Create an instance of {@link MessageHeader } - * - */ - public MessageHeader createMessageHeader() { - return new MessageHeader(); - } - - /** - * Create an instance of {@link ArchivePdfDocumentRequest } - * - */ - public ArchivePdfDocumentRequest createArchivePdfDocumentRequest() { - return new ArchivePdfDocumentRequest(); - } - - /** - * Create an instance of {@link DocumentInfo } - * - */ - public DocumentInfo createDocumentInfo() { - return new DocumentInfo(); - } - - /** - * Create an instance of {@link DocumentTypeList } - * - */ - public DocumentTypeList createDocumentTypeList() { - return new DocumentTypeList(); - } - - /** - * Create an instance of {@link DocumentArea } - * - */ - public DocumentArea createDocumentArea() { - return new DocumentArea(); - } - - /** - * Create an instance of {@link FieldList } - * - */ - public FieldList createFieldList() { - return new FieldList(); - } - - /** - * Create an instance of {@link ArchivePdfDocument } - * - */ - public ArchivePdfDocument createArchivePdfDocument() { - return new ArchivePdfDocument(); - } - - /** - * Create an instance of {@link ArchivedPdfDocument } - * - */ - public ArchivedPdfDocument createArchivedPdfDocument() { - return new ArchivedPdfDocument(); - } - - /** - * Create an instance of {@link HentDokumentSvarConvresNettrans } - * - */ - public HentDokumentSvarConvresNettrans createHentDokumentSvarConvresNettrans() { - return new HentDokumentSvarConvresNettrans(); - } - - /** - * Create an instance of {@link DocumentInfoList } - * - */ - public DocumentInfoList createDocumentInfoList() { - return new DocumentInfoList(); - } - - /** - * Create an 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 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 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 MessageHeader }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://v1.messageheader.esv.bankdata.dk", name = "MessageHeader") - public JAXBElement createMessageHeader(MessageHeader value) { - return new JAXBElement(_MessageHeader_QNAME, MessageHeader.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentInfoList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentInfoList") - public JAXBElement createDocumentInfoList(DocumentInfoList value) { - return new JAXBElement(_DocumentInfoList_QNAME, DocumentInfoList.class, null, value); - } - - /** - * Create an 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 DocumentTypeList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentTypeList") - public JAXBElement createDocumentTypeList(DocumentTypeList value) { - return new JAXBElement(_DocumentTypeList_QNAME, DocumentTypeList.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ReferenceNumberList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ReferenceNumberList") - public JAXBElement createReferenceNumberList(ReferenceNumberList value) { - return new JAXBElement(_ReferenceNumberList_QNAME, ReferenceNumberList.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentType") - public JAXBElement createDocumentType(DocumentType value) { - return new JAXBElement(_DocumentType_QNAME, DocumentType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentTypes }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentTypes") - public JAXBElement createDocumentTypes(DocumentTypes value) { - return new JAXBElement(_DocumentTypes_QNAME, DocumentTypes.class, null, value); - } - - /** - * Create an 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 HentDokumentSvarConvres }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.DID.DokumentUtil.Generated", name = "hentDokumentSvarConvres") - public JAXBElement createHentDokumentSvarConvres(HentDokumentSvarConvres value) { - return new JAXBElement(_HentDokumentSvarConvres_QNAME, HentDokumentSvarConvres.class, null, value); - } - - /** - * Create an 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 DocumentInfo }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentInfo") - public JAXBElement createDocumentInfo(DocumentInfo value) { - return new JAXBElement(_DocumentInfo_QNAME, DocumentInfo.class, null, value); - } - - /** - * Create an 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 HentDokumentSvar }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.DID.DokumentUtil.Generated", name = "hentDokumentSvar") - public JAXBElement createHentDokumentSvar(HentDokumentSvar value) { - return new JAXBElement(_HentDokumentSvar_QNAME, HentDokumentSvar.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchivePdfDocument }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ArchivePdfDocument") - public JAXBElement createArchivePdfDocument(ArchivePdfDocument value) { - return new JAXBElement(_ArchivePdfDocument_QNAME, ArchivePdfDocument.class, null, value); - } - - /** - * Create an 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 >}} - * - */ - @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 ParameterList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ParameterList") - public JAXBElement createParameterList(ParameterList value) { - return new JAXBElement(_ParameterList_QNAME, ParameterList.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Parameter }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Parameter") - public JAXBElement createParameter(Parameter value) { - return new JAXBElement(_Parameter_QNAME, Parameter.class, null, value); - } - - /** - * Create an 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 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 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 >}} - * - */ - @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 GetDocumentTypes }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "GetDocumentTypes") - public JAXBElement createGetDocumentTypes(GetDocumentTypes value) { - return new JAXBElement(_GetDocumentTypes_QNAME, GetDocumentTypes.class, null, value); - } - - /** - * Create an 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 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 FieldList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "FieldList") - public JAXBElement createFieldList(FieldList value) { - return new JAXBElement(_FieldList_QNAME, FieldList.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link HentDokumentSvar }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "HentDokumentResp") - public JAXBElement createHentDokumentResp(HentDokumentSvar value) { - return new JAXBElement(_HentDokumentResp_QNAME, HentDokumentSvar.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link HentDokumentSvarConvresNettrans }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.DID.DokumentUtil.Generated", name = "hentDokumentSvarConvresNettrans") - public JAXBElement createHentDokumentSvarConvresNettrans(HentDokumentSvarConvresNettrans value) { - return new JAXBElement(_HentDokumentSvarConvresNettrans_QNAME, HentDokumentSvarConvresNettrans.class, null, value); - } - - /** - * Create an 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 ArchivedPdfDocument }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ArchivedPdfDocument") - public JAXBElement createArchivedPdfDocument(ArchivedPdfDocument value) { - return new JAXBElement(_ArchivedPdfDocument_QNAME, ArchivedPdfDocument.class, null, value); - } - - /** - * Create an 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 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 Field }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Field") - public JAXBElement createField(Field value) { - return new JAXBElement(_Field_QNAME, Field.class, null, value); - } - - /** - * Create an 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 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 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 HentDokumentRequestBody }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "HentDokumentReqBody") - public JAXBElement createHentDokumentReqBody(HentDokumentRequestBody value) { - return new JAXBElement(_HentDokumentReqBody_QNAME, HentDokumentRequestBody.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentArea }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentArea") - public JAXBElement createDocumentArea(DocumentArea value) { - return new JAXBElement(_DocumentArea_QNAME, DocumentArea.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link HentDokumentRequestBody }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", name = "HentDokumentRequestBody") - public JAXBElement createHentDokumentRequestBody(HentDokumentRequestBody value) { - return new JAXBElement(_HentDokumentRequestBody_QNAME, HentDokumentRequestBody.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentAreaList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentAreaList") - public JAXBElement createDocumentAreaList(DocumentAreaList value) { - return new JAXBElement(_DocumentAreaList_QNAME, DocumentAreaList.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Key", scope = Parameter.class) - public JAXBElement createParameterKey(String value) { - return new JAXBElement(_ParameterKey_QNAME, String.class, Parameter.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Value", scope = Parameter.class) - public JAXBElement createParameterValue(String value) { - return new JAXBElement(_ParameterValue_QNAME, String.class, Parameter.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Name", scope = DocumentArea.class) - public JAXBElement createDocumentAreaName(String value) { - return new JAXBElement(_DocumentAreaName_QNAME, String.class, DocumentArea.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Id", scope = DocumentArea.class) - public JAXBElement createDocumentAreaId(String value) { - return new JAXBElement(_DocumentAreaId_QNAME, String.class, DocumentArea.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Document", scope = ArchivePdfDocument.class) - public JAXBElement createArchivePdfDocumentDocument(byte[] value) { - return new JAXBElement(_ArchivePdfDocumentDocument_QNAME, byte[].class, ArchivePdfDocument.class, ((byte[]) value)); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ReferenceNumberList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ReferenceNumberList", scope = ArchivePdfDocument.class) - public JAXBElement createArchivePdfDocumentReferenceNumberList(ReferenceNumberList value) { - return new JAXBElement(_ReferenceNumberList_QNAME, ReferenceNumberList.class, ArchivePdfDocument.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ParameterList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ParameterList", scope = ArchivePdfDocument.class) - public JAXBElement createArchivePdfDocumentParameterList(ParameterList value) { - return new JAXBElement(_ParameterList_QNAME, ParameterList.class, ArchivePdfDocument.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ShowCustomerCode", scope = DocumentType.class) - public JAXBElement createDocumentTypeShowCustomerCode(String value) { - return new JAXBElement(_DocumentTypeShowCustomerCode_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Message", scope = DocumentType.class) - public JAXBElement createDocumentTypeMessage(String value) { - return new JAXBElement(_DocumentTypeMessage_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "PrintId", scope = DocumentType.class) - public JAXBElement createDocumentTypePrintId(String value) { - return new JAXBElement(_DocumentTypePrintId_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentTypeId", scope = DocumentType.class) - public JAXBElement createDocumentTypeDocumentTypeId(String value) { - return new JAXBElement(_DocumentTypeDocumentTypeId_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentTypeName", scope = DocumentType.class) - public JAXBElement createDocumentTypeDocumentTypeName(String value) { - return new JAXBElement(_DocumentTypeDocumentTypeName_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link FieldList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "FieldList", scope = DocumentType.class) - public JAXBElement createDocumentTypeFieldList(FieldList value) { - return new JAXBElement(_FieldList_QNAME, FieldList.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "AccessOnlineBankingCode", scope = DocumentType.class) - public JAXBElement createDocumentTypeAccessOnlineBankingCode(String value) { - return new JAXBElement(_DocumentTypeAccessOnlineBankingCode_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentAreaId", scope = DocumentType.class) - public JAXBElement createDocumentTypeDocumentAreaId(String value) { - return new JAXBElement(_DocumentTypeDocumentAreaId_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentInfoList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentInfoList", scope = ArchivedPdfDocument.class) - public JAXBElement createArchivedPdfDocumentDocumentInfoList(DocumentInfoList value) { - return new JAXBElement(_DocumentInfoList_QNAME, DocumentInfoList.class, ArchivedPdfDocument.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentTypeList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentTypeList", scope = DocumentTypes.class) - public JAXBElement createDocumentTypesDocumentTypeList(DocumentTypeList value) { - return new JAXBElement(_DocumentTypeList_QNAME, DocumentTypeList.class, DocumentTypes.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentAreaList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentAreaList", scope = DocumentTypes.class) - public JAXBElement createDocumentTypesDocumentAreaList(DocumentAreaList value) { - return new JAXBElement(_DocumentAreaList_QNAME, DocumentAreaList.class, DocumentTypes.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "TypeCodeText", scope = Field.class) - public JAXBElement createFieldTypeCodeText(String value) { - return new JAXBElement(_FieldTypeCodeText_QNAME, String.class, Field.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ObltorCode", scope = Field.class) - public JAXBElement createFieldObltorCode(String value) { - return new JAXBElement(_FieldObltorCode_QNAME, String.class, Field.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "SortNumber", scope = Field.class) - public JAXBElement createFieldSortNumber(String value) { - return new JAXBElement(_FieldSortNumber_QNAME, String.class, Field.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "FieldName", scope = Field.class) - public JAXBElement createFieldFieldName(String value) { - return new JAXBElement(_FieldFieldName_QNAME, String.class, Field.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "PlaceCode", scope = Field.class) - public JAXBElement createFieldPlaceCode(String value) { - return new JAXBElement(_FieldPlaceCode_QNAME, String.class, Field.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", name = "userId", scope = HentDokumentRequestBody.class) - public JAXBElement createHentDokumentRequestBodyUserId(String value) { - return new JAXBElement(_HentDokumentRequestBodyUserId_QNAME, String.class, HentDokumentRequestBody.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", name = "dokId", scope = HentDokumentRequestBody.class) - public JAXBElement createHentDokumentRequestBodyDokId(String value) { - return new JAXBElement(_HentDokumentRequestBodyDokId_QNAME, String.class, HentDokumentRequestBody.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", name = "bankNr", scope = HentDokumentRequestBody.class) - public JAXBElement createHentDokumentRequestBodyBankNr(String value) { - return new JAXBElement(_HentDokumentRequestBodyBankNr_QNAME, String.class, HentDokumentRequestBody.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", name = "refNr", scope = HentDokumentRequestBody.class) - public JAXBElement createHentDokumentRequestBodyRefNr(String value) { - return new JAXBElement(_HentDokumentRequestBodyRefNr_QNAME, String.class, HentDokumentRequestBody.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchivePdfDocument }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ArchivePdfDocument", scope = ArchivePdfDocumentRequest.class) - public JAXBElement createArchivePdfDocumentRequestArchivePdfDocument(ArchivePdfDocument value) { - return new JAXBElement(_ArchivePdfDocument_QNAME, ArchivePdfDocument.class, ArchivePdfDocumentRequest.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ReferenceNumber", scope = DocumentInfo.class) - public JAXBElement createDocumentInfoReferenceNumber(String value) { - return new JAXBElement(_DocumentInfoReferenceNumber_QNAME, String.class, DocumentInfo.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentId", scope = DocumentInfo.class) - public JAXBElement createDocumentInfoDocumentId(String value) { - return new JAXBElement(_DocumentInfoDocumentId_QNAME, String.class, DocumentInfo.class, value); - } - -} diff --git a/src/test/resources/objectfactorymerger/dokumentutil/ObjectFactory_sorted.java b/src/test/resources/objectfactorymerger/dokumentutil/ObjectFactory_sorted.java deleted file mode 100644 index fe36c7d..0000000 --- a/src/test/resources/objectfactorymerger/dokumentutil/ObjectFactory_sorted.java +++ /dev/null @@ -1,930 +0,0 @@ - -package dk.jyskebank.service.dokumentutil.ws; - -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 dk.jyskebank.service.dokumentutil.ws 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 _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 _ArchivePdfDocumentDocument_QNAME = new QName("http://did.esv.bankdata.dk", "Document"); - private final static QName _ArchivePdfDocument_QNAME = new QName("http://did.esv.bankdata.dk", "ArchivePdfDocument"); - private final static QName _ArchivedPdfDocument_QNAME = new QName("http://did.esv.bankdata.dk", "ArchivedPdfDocument"); - 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 _Char_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "char"); - 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 _DocumentAreaId_QNAME = new QName("http://did.esv.bankdata.dk", "Id"); - private final static QName _DocumentAreaList_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentAreaList"); - private final static QName _DocumentAreaName_QNAME = new QName("http://did.esv.bankdata.dk", "Name"); - private final static QName _DocumentArea_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentArea"); - private final static QName _DocumentInfoDocumentId_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentId"); - private final static QName _DocumentInfoList_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentInfoList"); - private final static QName _DocumentInfoReferenceNumber_QNAME = new QName("http://did.esv.bankdata.dk", "ReferenceNumber"); - private final static QName _DocumentInfo_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentInfo"); - private final static QName _DocumentTypeAccessOnlineBankingCode_QNAME = new QName("http://did.esv.bankdata.dk", "AccessOnlineBankingCode"); - private final static QName _DocumentTypeDocumentAreaId_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentAreaId"); - private final static QName _DocumentTypeDocumentTypeId_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentTypeId"); - private final static QName _DocumentTypeDocumentTypeName_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentTypeName"); - private final static QName _DocumentTypeList_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentTypeList"); - private final static QName _DocumentTypeMessage_QNAME = new QName("http://did.esv.bankdata.dk", "Message"); - private final static QName _DocumentTypePrintId_QNAME = new QName("http://did.esv.bankdata.dk", "PrintId"); - private final static QName _DocumentTypeShowCustomerCode_QNAME = new QName("http://did.esv.bankdata.dk", "ShowCustomerCode"); - private final static QName _DocumentType_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentType"); - private final static QName _DocumentTypes_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentTypes"); - private final static QName _Double_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "double"); - private final static QName _Duration_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "duration"); - private final static QName _FieldFieldName_QNAME = new QName("http://did.esv.bankdata.dk", "FieldName"); - private final static QName _FieldList_QNAME = new QName("http://did.esv.bankdata.dk", "FieldList"); - private final static QName _FieldObltorCode_QNAME = new QName("http://did.esv.bankdata.dk", "ObltorCode"); - private final static QName _FieldPlaceCode_QNAME = new QName("http://did.esv.bankdata.dk", "PlaceCode"); - private final static QName _FieldSortNumber_QNAME = new QName("http://did.esv.bankdata.dk", "SortNumber"); - private final static QName _FieldTypeCodeText_QNAME = new QName("http://did.esv.bankdata.dk", "TypeCodeText"); - private final static QName _Field_QNAME = new QName("http://did.esv.bankdata.dk", "Field"); - private final static QName _Float_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "float"); - private final static QName _GetDocumentTypes_QNAME = new QName("http://did.esv.bankdata.dk", "GetDocumentTypes"); - private final static QName _Guid_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "guid"); - private final static QName _HentDokumentReqBody_QNAME = new QName("http://did.esv.bankdata.dk", "HentDokumentReqBody"); - private final static QName _HentDokumentRequestBodyBankNr_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", "bankNr"); - private final static QName _HentDokumentRequestBodyDokId_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", "dokId"); - private final static QName _HentDokumentRequestBodyRefNr_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", "refNr"); - private final static QName _HentDokumentRequestBodyUserId_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", "userId"); - private final static QName _HentDokumentRequestBody_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", "HentDokumentRequestBody"); - private final static QName _HentDokumentResp_QNAME = new QName("http://did.esv.bankdata.dk", "HentDokumentResp"); - private final static QName _HentDokumentSvarConvresNettrans_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.DID.DokumentUtil.Generated", "hentDokumentSvarConvresNettrans"); - private final static QName _HentDokumentSvarConvres_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.DID.DokumentUtil.Generated", "hentDokumentSvarConvres"); - private final static QName _HentDokumentSvar_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.DID.DokumentUtil.Generated", "hentDokumentSvar"); - 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 _MessageHeader_QNAME = new QName("http://v1.messageheader.esv.bankdata.dk", "MessageHeader"); - private final static QName _ParameterKey_QNAME = new QName("http://did.esv.bankdata.dk", "Key"); - private final static QName _ParameterList_QNAME = new QName("http://did.esv.bankdata.dk", "ParameterList"); - private final static QName _ParameterValue_QNAME = new QName("http://did.esv.bankdata.dk", "Value"); - private final static QName _Parameter_QNAME = new QName("http://did.esv.bankdata.dk", "Parameter"); - private final static QName _QName_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "QName"); - private final static QName _ReferenceNumberList_QNAME = new QName("http://did.esv.bankdata.dk", "ReferenceNumberList"); - 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"); - - /** - * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: dk.jyskebank.service.dokumentutil.ws - * - */ - public ObjectFactory() { - } - - /** - * Create an instance of {@link ArchivePdfDocument } - * - */ - public ArchivePdfDocument createArchivePdfDocument() { - return new ArchivePdfDocument(); - } - - /** - * Create an instance of {@link ArchivePdfDocumentRequest } - * - */ - public ArchivePdfDocumentRequest createArchivePdfDocumentRequest() { - return new ArchivePdfDocumentRequest(); - } - - /** - * Create an instance of {@link ArchivedPdfDocument } - * - */ - public ArchivedPdfDocument createArchivedPdfDocument() { - return new ArchivedPdfDocument(); - } - - /** - * Create an instance of {@link DocumentArea } - * - */ - public DocumentArea createDocumentArea() { - return new DocumentArea(); - } - - /** - * Create an instance of {@link DocumentAreaList } - * - */ - public DocumentAreaList createDocumentAreaList() { - return new DocumentAreaList(); - } - - /** - * Create an instance of {@link DocumentInfo } - * - */ - public DocumentInfo createDocumentInfo() { - return new DocumentInfo(); - } - - /** - * Create an instance of {@link DocumentInfoList } - * - */ - public DocumentInfoList createDocumentInfoList() { - return new DocumentInfoList(); - } - - /** - * Create an instance of {@link DocumentType } - * - */ - public DocumentType createDocumentType() { - return new DocumentType(); - } - - /** - * Create an instance of {@link DocumentTypeList } - * - */ - public DocumentTypeList createDocumentTypeList() { - return new DocumentTypeList(); - } - - /** - * Create an instance of {@link DocumentTypes } - * - */ - public DocumentTypes createDocumentTypes() { - return new DocumentTypes(); - } - - /** - * Create an instance of {@link Field } - * - */ - public Field createField() { - return new Field(); - } - - /** - * Create an instance of {@link FieldList } - * - */ - public FieldList createFieldList() { - return new FieldList(); - } - - /** - * Create an instance of {@link GetDocumentTypes } - * - */ - public GetDocumentTypes createGetDocumentTypes() { - return new GetDocumentTypes(); - } - - /** - * Create an instance of {@link HentDokumentRequestBody } - * - */ - public HentDokumentRequestBody createHentDokumentRequestBody() { - return new HentDokumentRequestBody(); - } - - /** - * Create an instance of {@link HentDokumentSvar } - * - */ - public HentDokumentSvar createHentDokumentSvar() { - return new HentDokumentSvar(); - } - - /** - * Create an instance of {@link HentDokumentSvarConvres } - * - */ - public HentDokumentSvarConvres createHentDokumentSvarConvres() { - return new HentDokumentSvarConvres(); - } - - /** - * Create an instance of {@link HentDokumentSvarConvresNettrans } - * - */ - public HentDokumentSvarConvresNettrans createHentDokumentSvarConvresNettrans() { - return new HentDokumentSvarConvresNettrans(); - } - - /** - * Create an instance of {@link MessageHeader } - * - */ - public MessageHeader createMessageHeader() { - return new MessageHeader(); - } - - /** - * Create an instance of {@link Parameter } - * - */ - public Parameter createParameter() { - return new Parameter(); - } - - /** - * Create an instance of {@link ParameterList } - * - */ - public ParameterList createParameterList() { - return new ParameterList(); - } - - /** - * Create an instance of {@link ReferenceNumberList } - * - */ - public ReferenceNumberList createReferenceNumberList() { - return new ReferenceNumberList(); - } - - /** - * Create an 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 >}} - * - */ - @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 ArchivePdfDocument }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ArchivePdfDocument") - public JAXBElement createArchivePdfDocument(ArchivePdfDocument value) { - return new JAXBElement(_ArchivePdfDocument_QNAME, ArchivePdfDocument.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Document", scope = ArchivePdfDocument.class) - public JAXBElement createArchivePdfDocumentDocument(byte[] value) { - return new JAXBElement(_ArchivePdfDocumentDocument_QNAME, byte[].class, ArchivePdfDocument.class, ((byte[]) value)); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ParameterList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ParameterList", scope = ArchivePdfDocument.class) - public JAXBElement createArchivePdfDocumentParameterList(ParameterList value) { - return new JAXBElement(_ParameterList_QNAME, ParameterList.class, ArchivePdfDocument.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ReferenceNumberList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ReferenceNumberList", scope = ArchivePdfDocument.class) - public JAXBElement createArchivePdfDocumentReferenceNumberList(ReferenceNumberList value) { - return new JAXBElement(_ReferenceNumberList_QNAME, ReferenceNumberList.class, ArchivePdfDocument.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchivePdfDocument }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ArchivePdfDocument", scope = ArchivePdfDocumentRequest.class) - public JAXBElement createArchivePdfDocumentRequestArchivePdfDocument(ArchivePdfDocument value) { - return new JAXBElement(_ArchivePdfDocument_QNAME, ArchivePdfDocument.class, ArchivePdfDocumentRequest.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchivedPdfDocument }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ArchivedPdfDocument") - public JAXBElement createArchivedPdfDocument(ArchivedPdfDocument value) { - return new JAXBElement(_ArchivedPdfDocument_QNAME, ArchivedPdfDocument.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentInfoList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentInfoList", scope = ArchivedPdfDocument.class) - public JAXBElement createArchivedPdfDocumentDocumentInfoList(DocumentInfoList value) { - return new JAXBElement(_DocumentInfoList_QNAME, DocumentInfoList.class, ArchivedPdfDocument.class, value); - } - - /** - * Create an 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 >}} - * - */ - @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 >}} - * - */ - @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 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 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 >}} - * - */ - @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 DocumentArea }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentArea") - public JAXBElement createDocumentArea(DocumentArea value) { - return new JAXBElement(_DocumentArea_QNAME, DocumentArea.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Id", scope = DocumentArea.class) - public JAXBElement createDocumentAreaId(String value) { - return new JAXBElement(_DocumentAreaId_QNAME, String.class, DocumentArea.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentAreaList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentAreaList") - public JAXBElement createDocumentAreaList(DocumentAreaList value) { - return new JAXBElement(_DocumentAreaList_QNAME, DocumentAreaList.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Name", scope = DocumentArea.class) - public JAXBElement createDocumentAreaName(String value) { - return new JAXBElement(_DocumentAreaName_QNAME, String.class, DocumentArea.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentInfo }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentInfo") - public JAXBElement createDocumentInfo(DocumentInfo value) { - return new JAXBElement(_DocumentInfo_QNAME, DocumentInfo.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentId", scope = DocumentInfo.class) - public JAXBElement createDocumentInfoDocumentId(String value) { - return new JAXBElement(_DocumentInfoDocumentId_QNAME, String.class, DocumentInfo.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentInfoList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentInfoList") - public JAXBElement createDocumentInfoList(DocumentInfoList value) { - return new JAXBElement(_DocumentInfoList_QNAME, DocumentInfoList.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ReferenceNumber", scope = DocumentInfo.class) - public JAXBElement createDocumentInfoReferenceNumber(String value) { - return new JAXBElement(_DocumentInfoReferenceNumber_QNAME, String.class, DocumentInfo.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentType") - public JAXBElement createDocumentType(DocumentType value) { - return new JAXBElement(_DocumentType_QNAME, DocumentType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "AccessOnlineBankingCode", scope = DocumentType.class) - public JAXBElement createDocumentTypeAccessOnlineBankingCode(String value) { - return new JAXBElement(_DocumentTypeAccessOnlineBankingCode_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentAreaId", scope = DocumentType.class) - public JAXBElement createDocumentTypeDocumentAreaId(String value) { - return new JAXBElement(_DocumentTypeDocumentAreaId_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentTypeId", scope = DocumentType.class) - public JAXBElement createDocumentTypeDocumentTypeId(String value) { - return new JAXBElement(_DocumentTypeDocumentTypeId_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentTypeName", scope = DocumentType.class) - public JAXBElement createDocumentTypeDocumentTypeName(String value) { - return new JAXBElement(_DocumentTypeDocumentTypeName_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link FieldList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "FieldList", scope = DocumentType.class) - public JAXBElement createDocumentTypeFieldList(FieldList value) { - return new JAXBElement(_FieldList_QNAME, FieldList.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentTypeList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentTypeList") - public JAXBElement createDocumentTypeList(DocumentTypeList value) { - return new JAXBElement(_DocumentTypeList_QNAME, DocumentTypeList.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Message", scope = DocumentType.class) - public JAXBElement createDocumentTypeMessage(String value) { - return new JAXBElement(_DocumentTypeMessage_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "PrintId", scope = DocumentType.class) - public JAXBElement createDocumentTypePrintId(String value) { - return new JAXBElement(_DocumentTypePrintId_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ShowCustomerCode", scope = DocumentType.class) - public JAXBElement createDocumentTypeShowCustomerCode(String value) { - return new JAXBElement(_DocumentTypeShowCustomerCode_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentTypes }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentTypes") - public JAXBElement createDocumentTypes(DocumentTypes value) { - return new JAXBElement(_DocumentTypes_QNAME, DocumentTypes.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentAreaList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentAreaList", scope = DocumentTypes.class) - public JAXBElement createDocumentTypesDocumentAreaList(DocumentAreaList value) { - return new JAXBElement(_DocumentAreaList_QNAME, DocumentAreaList.class, DocumentTypes.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentTypeList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentTypeList", scope = DocumentTypes.class) - public JAXBElement createDocumentTypesDocumentTypeList(DocumentTypeList value) { - return new JAXBElement(_DocumentTypeList_QNAME, DocumentTypeList.class, DocumentTypes.class, value); - } - - /** - * Create an 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 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 Field }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Field") - public JAXBElement createField(Field value) { - return new JAXBElement(_Field_QNAME, Field.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "FieldName", scope = Field.class) - public JAXBElement createFieldFieldName(String value) { - return new JAXBElement(_FieldFieldName_QNAME, String.class, Field.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link FieldList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "FieldList") - public JAXBElement createFieldList(FieldList value) { - return new JAXBElement(_FieldList_QNAME, FieldList.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ObltorCode", scope = Field.class) - public JAXBElement createFieldObltorCode(String value) { - return new JAXBElement(_FieldObltorCode_QNAME, String.class, Field.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "PlaceCode", scope = Field.class) - public JAXBElement createFieldPlaceCode(String value) { - return new JAXBElement(_FieldPlaceCode_QNAME, String.class, Field.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "SortNumber", scope = Field.class) - public JAXBElement createFieldSortNumber(String value) { - return new JAXBElement(_FieldSortNumber_QNAME, String.class, Field.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "TypeCodeText", scope = Field.class) - public JAXBElement createFieldTypeCodeText(String value) { - return new JAXBElement(_FieldTypeCodeText_QNAME, String.class, Field.class, value); - } - - /** - * Create an 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 GetDocumentTypes }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "GetDocumentTypes") - public JAXBElement createGetDocumentTypes(GetDocumentTypes value) { - return new JAXBElement(_GetDocumentTypes_QNAME, GetDocumentTypes.class, null, value); - } - - /** - * Create an 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 HentDokumentRequestBody }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "HentDokumentReqBody") - public JAXBElement createHentDokumentReqBody(HentDokumentRequestBody value) { - return new JAXBElement(_HentDokumentReqBody_QNAME, HentDokumentRequestBody.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link HentDokumentRequestBody }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", name = "HentDokumentRequestBody") - public JAXBElement createHentDokumentRequestBody(HentDokumentRequestBody value) { - return new JAXBElement(_HentDokumentRequestBody_QNAME, HentDokumentRequestBody.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", name = "bankNr", scope = HentDokumentRequestBody.class) - public JAXBElement createHentDokumentRequestBodyBankNr(String value) { - return new JAXBElement(_HentDokumentRequestBodyBankNr_QNAME, String.class, HentDokumentRequestBody.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", name = "dokId", scope = HentDokumentRequestBody.class) - public JAXBElement createHentDokumentRequestBodyDokId(String value) { - return new JAXBElement(_HentDokumentRequestBodyDokId_QNAME, String.class, HentDokumentRequestBody.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", name = "refNr", scope = HentDokumentRequestBody.class) - public JAXBElement createHentDokumentRequestBodyRefNr(String value) { - return new JAXBElement(_HentDokumentRequestBodyRefNr_QNAME, String.class, HentDokumentRequestBody.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", name = "userId", scope = HentDokumentRequestBody.class) - public JAXBElement createHentDokumentRequestBodyUserId(String value) { - return new JAXBElement(_HentDokumentRequestBodyUserId_QNAME, String.class, HentDokumentRequestBody.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link HentDokumentSvar }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "HentDokumentResp") - public JAXBElement createHentDokumentResp(HentDokumentSvar value) { - return new JAXBElement(_HentDokumentResp_QNAME, HentDokumentSvar.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link HentDokumentSvar }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.DID.DokumentUtil.Generated", name = "hentDokumentSvar") - public JAXBElement createHentDokumentSvar(HentDokumentSvar value) { - return new JAXBElement(_HentDokumentSvar_QNAME, HentDokumentSvar.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link HentDokumentSvarConvres }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.DID.DokumentUtil.Generated", name = "hentDokumentSvarConvres") - public JAXBElement createHentDokumentSvarConvres(HentDokumentSvarConvres value) { - return new JAXBElement(_HentDokumentSvarConvres_QNAME, HentDokumentSvarConvres.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link HentDokumentSvarConvresNettrans }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.DID.DokumentUtil.Generated", name = "hentDokumentSvarConvresNettrans") - public JAXBElement createHentDokumentSvarConvresNettrans(HentDokumentSvarConvresNettrans value) { - return new JAXBElement(_HentDokumentSvarConvresNettrans_QNAME, HentDokumentSvarConvresNettrans.class, null, value); - } - - /** - * Create an 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 >}} - * - */ - @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 MessageHeader }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://v1.messageheader.esv.bankdata.dk", name = "MessageHeader") - public JAXBElement createMessageHeader(MessageHeader value) { - return new JAXBElement(_MessageHeader_QNAME, MessageHeader.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Parameter }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Parameter") - public JAXBElement createParameter(Parameter value) { - return new JAXBElement(_Parameter_QNAME, Parameter.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Key", scope = Parameter.class) - public JAXBElement createParameterKey(String value) { - return new JAXBElement(_ParameterKey_QNAME, String.class, Parameter.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ParameterList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ParameterList") - public JAXBElement createParameterList(ParameterList value) { - return new JAXBElement(_ParameterList_QNAME, ParameterList.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Value", scope = Parameter.class) - public JAXBElement createParameterValue(String value) { - return new JAXBElement(_ParameterValue_QNAME, String.class, Parameter.class, value); - } - - /** - * Create an 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 ReferenceNumberList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ReferenceNumberList") - public JAXBElement createReferenceNumberList(ReferenceNumberList value) { - return new JAXBElement(_ReferenceNumberList_QNAME, ReferenceNumberList.class, null, value); - } - - /** - * Create an 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 >}} - * - */ - @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 >}} - * - */ - @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 >}} - * - */ - @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 >}} - * - */ - @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 >}} - * - */ - @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); - } - -} diff --git a/src/test/resources/test-project/build.gradle b/src/test/resources/test-project/build.gradle deleted file mode 100644 index e87594e..0000000 --- a/src/test/resources/test-project/build.gradle +++ /dev/null @@ -1,28 +0,0 @@ -plugins { - id 'java' - id 'com.yupzip.wsdl2java' -} - -repositories { - jcenter() -} - -dependencies { - testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.2' - testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.5.2' - // enable extension support for wsdl2java - wsdl2java 'org.jvnet.jaxb2_commons:jaxb2-basics-runtime:0.11.0' - wsdl2java 'org.jvnet.jaxb2_commons:jaxb2-basics:0.11.0' - implementation 'org.jvnet.jaxb2_commons:jaxb2-basics-runtime:0.11.0' - implementation 'org.jvnet.jaxb2_commons:jaxb2-basics:0.11.0' -} - -test { - useJUnitPlatform() -} - -wsdl2java { - wsdlsToGenerate = [ - ['-xjc-Xequals', '-xjc-XhashCode', file('src/main/resources/wsdl/stockqoute.wsdl')] - ] -} diff --git a/src/test/resources/test-project/settings.gradle b/src/test/resources/test-project/settings.gradle deleted file mode 100644 index 21c46e6..0000000 --- a/src/test/resources/test-project/settings.gradle +++ /dev/null @@ -1,5 +0,0 @@ -buildCache { - local { - directory = new File(rootDir, 'build-cache') - } -} diff --git a/src/test/resources/test-project/src/main/java/no/nils/consumers/StockQuoteConsumer.java b/src/test/resources/test-project/src/main/java/no/nils/consumers/StockQuoteConsumer.java deleted file mode 100644 index 1b31cd3..0000000 --- a/src/test/resources/test-project/src/main/java/no/nils/consumers/StockQuoteConsumer.java +++ /dev/null @@ -1,9 +0,0 @@ -package com.yupzip.consumers; - -import net.webservicex.GetQuote; - -public class StockQuoteConsumer { - public void iWillCompile() { - GetQuote getQuote = new GetQuote(); - } -} diff --git a/src/test/resources/test-project/src/main/resources/wsdl/currencyconvertor.wsdl b/src/test/resources/test-project/src/main/resources/wsdl/currencyconvertor.wsdl deleted file mode 100644 index e6510b7..0000000 --- a/src/test/resources/test-project/src/main/resources/wsdl/currencyconvertor.wsdl +++ /dev/null @@ -1,281 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br><b>Get conversion rate from one currency to another currency <b><br><p><b><font color='#000080' size='1' face='Verdana'><u>Differenct currency Code and Names around the world</u></font></b></p><blockquote><p><font face='Verdana' size='1'>AFA-Afghanistan Afghani<br>ALL-Albanian Lek<br>DZD-Algerian Dinar<br>ARS-Argentine Peso<br>AWG-Aruba Florin<br>AUD-Australian Dollar<br>BSD-Bahamian Dollar<br>BHD-Bahraini Dinar<br>BDT-Bangladesh Taka<br>BBD-Barbados Dollar<br>BZD-Belize Dollar<br>BMD-Bermuda Dollar<br>BTN-Bhutan Ngultrum<br>BOB-Bolivian Boliviano<br>BWP-Botswana Pula<br>BRL-Brazilian Real<br>GBP-British Pound<br>BND-Brunei Dollar<br>BIF-Burundi Franc<br>XOF-CFA Franc (BCEAO)<br>XAF-CFA Franc (BEAC)<br>KHR-Cambodia Riel<br>CAD-Canadian Dollar<br>CVE-Cape Verde Escudo<br>KYD-Cayman Islands Dollar<br>CLP-Chilean Peso<br>CNY-Chinese Yuan<br>COP-Colombian Peso<br>KMF-Comoros Franc<br>CRC-Costa Rica Colon<br>HRK-Croatian Kuna<br>CUP-Cuban Peso<br>CYP-Cyprus Pound<br>CZK-Czech Koruna<br>DKK-Danish Krone<br>DJF-Dijibouti Franc<br>DOP-Dominican Peso<br>XCD-East Caribbean Dollar<br>EGP-Egyptian Pound<br>SVC-El Salvador Colon<br>EEK-Estonian Kroon<br>ETB-Ethiopian Birr<br>EUR-Euro<br>FKP-Falkland Islands Pound<br>GMD-Gambian Dalasi<br>GHC-Ghanian Cedi<br>GIP-Gibraltar Pound<br>XAU-Gold Ounces<br>GTQ-Guatemala Quetzal<br>GNF-Guinea Franc<br>GYD-Guyana Dollar<br>HTG-Haiti Gourde<br>HNL-Honduras Lempira<br>HKD-Hong Kong Dollar<br>HUF-Hungarian Forint<br>ISK-Iceland Krona<br>INR-Indian Rupee<br>IDR-Indonesian Rupiah<br>IQD-Iraqi Dinar<br>ILS-Israeli Shekel<br>JMD-Jamaican Dollar<br>JPY-Japanese Yen<br>JOD-Jordanian Dinar<br>KZT-Kazakhstan Tenge<br>KES-Kenyan Shilling<br>KRW-Korean Won<br>KWD-Kuwaiti Dinar<br>LAK-Lao Kip<br>LVL-Latvian Lat<br>LBP-Lebanese Pound<br>LSL-Lesotho Loti<br>LRD-Liberian Dollar<br>LYD-Libyan Dinar<br>LTL-Lithuanian Lita<br>MOP-Macau Pataca<br>MKD-Macedonian Denar<br>MGF-Malagasy Franc<br>MWK-Malawi Kwacha<br>MYR-Malaysian Ringgit<br>MVR-Maldives Rufiyaa<br>MTL-Maltese Lira<br>MRO-Mauritania Ougulya<br>MUR-Mauritius Rupee<br>MXN-Mexican Peso<br>MDL-Moldovan Leu<br>MNT-Mongolian Tugrik<br>MAD-Moroccan Dirham<br>MZM-Mozambique Metical<br>MMK-Myanmar Kyat<br>NAD-Namibian Dollar<br>NPR-Nepalese Rupee<br>ANG-Neth Antilles Guilder<br>NZD-New Zealand Dollar<br>NIO-Nicaragua Cordoba<br>NGN-Nigerian Naira<br>KPW-North Korean Won<br>NOK-Norwegian Krone<br>OMR-Omani Rial<br>XPF-Pacific Franc<br>PKR-Pakistani Rupee<br>XPD-Palladium Ounces<br>PAB-Panama Balboa<br>PGK-Papua New Guinea Kina<br>PYG-Paraguayan Guarani<br>PEN-Peruvian Nuevo Sol<br>PHP-Philippine Peso<br>XPT-Platinum Ounces<br>PLN-Polish Zloty<br>QAR-Qatar Rial<br>ROL-Romanian Leu<br>RUB-Russian Rouble<br>WST-Samoa Tala<br>STD-Sao Tome Dobra<br>SAR-Saudi Arabian Riyal<br>SCR-Seychelles Rupee<br>SLL-Sierra Leone Leone<br>XAG-Silver Ounces<br>SGD-Singapore Dollar<br>SKK-Slovak Koruna<br>SIT-Slovenian Tolar<br>SBD-Solomon Islands Dollar<br>SOS-Somali Shilling<br>ZAR-South African Rand<br>LKR-Sri Lanka Rupee<br>SHP-St Helena Pound<br>SDD-Sudanese Dinar<br>SRG-Surinam Guilder<br>SZL-Swaziland Lilageni<br>SEK-Swedish Krona<br>TRY-Turkey Lira<br>CHF-Swiss Franc<br>SYP-Syrian Pound<br>TWD-Taiwan Dollar<br>TZS-Tanzanian Shilling<br>THB-Thai Baht<br>TOP-Tonga Pa'anga<br>TTD-Trinidad&amp;amp;Tobago Dollar<br>TND-Tunisian Dinar<br>TRL-Turkish Lira<br>USD-U.S. Dollar<br>AED-UAE Dirham<br>UGX-Ugandan Shilling<br>UAH-Ukraine Hryvnia<br>UYU-Uruguayan New Peso<br>VUV-Vanuatu Vatu<br>VEB-Venezuelan Bolivar<br>VND-Vietnam Dong<br>YER-Yemen Riyal<br>YUM-Yugoslav Dinar<br>ZMK-Zambian Kwacha<br>ZWD-Zimbabwe Dollar</font></p></blockquote> - - - - - - - <br><b>Get conversion rate from one currency to another currency <b><br><p><b><font color='#000080' size='1' face='Verdana'><u>Differenct currency Code and Names around the world</u></font></b></p><blockquote><p><font face='Verdana' size='1'>AFA-Afghanistan Afghani<br>ALL-Albanian Lek<br>DZD-Algerian Dinar<br>ARS-Argentine Peso<br>AWG-Aruba Florin<br>AUD-Australian Dollar<br>BSD-Bahamian Dollar<br>BHD-Bahraini Dinar<br>BDT-Bangladesh Taka<br>BBD-Barbados Dollar<br>BZD-Belize Dollar<br>BMD-Bermuda Dollar<br>BTN-Bhutan Ngultrum<br>BOB-Bolivian Boliviano<br>BWP-Botswana Pula<br>BRL-Brazilian Real<br>GBP-British Pound<br>BND-Brunei Dollar<br>BIF-Burundi Franc<br>XOF-CFA Franc (BCEAO)<br>XAF-CFA Franc (BEAC)<br>KHR-Cambodia Riel<br>CAD-Canadian Dollar<br>CVE-Cape Verde Escudo<br>KYD-Cayman Islands Dollar<br>CLP-Chilean Peso<br>CNY-Chinese Yuan<br>COP-Colombian Peso<br>KMF-Comoros Franc<br>CRC-Costa Rica Colon<br>HRK-Croatian Kuna<br>CUP-Cuban Peso<br>CYP-Cyprus Pound<br>CZK-Czech Koruna<br>DKK-Danish Krone<br>DJF-Dijibouti Franc<br>DOP-Dominican Peso<br>XCD-East Caribbean Dollar<br>EGP-Egyptian Pound<br>SVC-El Salvador Colon<br>EEK-Estonian Kroon<br>ETB-Ethiopian Birr<br>EUR-Euro<br>FKP-Falkland Islands Pound<br>GMD-Gambian Dalasi<br>GHC-Ghanian Cedi<br>GIP-Gibraltar Pound<br>XAU-Gold Ounces<br>GTQ-Guatemala Quetzal<br>GNF-Guinea Franc<br>GYD-Guyana Dollar<br>HTG-Haiti Gourde<br>HNL-Honduras Lempira<br>HKD-Hong Kong Dollar<br>HUF-Hungarian Forint<br>ISK-Iceland Krona<br>INR-Indian Rupee<br>IDR-Indonesian Rupiah<br>IQD-Iraqi Dinar<br>ILS-Israeli Shekel<br>JMD-Jamaican Dollar<br>JPY-Japanese Yen<br>JOD-Jordanian Dinar<br>KZT-Kazakhstan Tenge<br>KES-Kenyan Shilling<br>KRW-Korean Won<br>KWD-Kuwaiti Dinar<br>LAK-Lao Kip<br>LVL-Latvian Lat<br>LBP-Lebanese Pound<br>LSL-Lesotho Loti<br>LRD-Liberian Dollar<br>LYD-Libyan Dinar<br>LTL-Lithuanian Lita<br>MOP-Macau Pataca<br>MKD-Macedonian Denar<br>MGF-Malagasy Franc<br>MWK-Malawi Kwacha<br>MYR-Malaysian Ringgit<br>MVR-Maldives Rufiyaa<br>MTL-Maltese Lira<br>MRO-Mauritania Ougulya<br>MUR-Mauritius Rupee<br>MXN-Mexican Peso<br>MDL-Moldovan Leu<br>MNT-Mongolian Tugrik<br>MAD-Moroccan Dirham<br>MZM-Mozambique Metical<br>MMK-Myanmar Kyat<br>NAD-Namibian Dollar<br>NPR-Nepalese Rupee<br>ANG-Neth Antilles Guilder<br>NZD-New Zealand Dollar<br>NIO-Nicaragua Cordoba<br>NGN-Nigerian Naira<br>KPW-North Korean Won<br>NOK-Norwegian Krone<br>OMR-Omani Rial<br>XPF-Pacific Franc<br>PKR-Pakistani Rupee<br>XPD-Palladium Ounces<br>PAB-Panama Balboa<br>PGK-Papua New Guinea Kina<br>PYG-Paraguayan Guarani<br>PEN-Peruvian Nuevo Sol<br>PHP-Philippine Peso<br>XPT-Platinum Ounces<br>PLN-Polish Zloty<br>QAR-Qatar Rial<br>ROL-Romanian Leu<br>RUB-Russian Rouble<br>WST-Samoa Tala<br>STD-Sao Tome Dobra<br>SAR-Saudi Arabian Riyal<br>SCR-Seychelles Rupee<br>SLL-Sierra Leone Leone<br>XAG-Silver Ounces<br>SGD-Singapore Dollar<br>SKK-Slovak Koruna<br>SIT-Slovenian Tolar<br>SBD-Solomon Islands Dollar<br>SOS-Somali Shilling<br>ZAR-South African Rand<br>LKR-Sri Lanka Rupee<br>SHP-St Helena Pound<br>SDD-Sudanese Dinar<br>SRG-Surinam Guilder<br>SZL-Swaziland Lilageni<br>SEK-Swedish Krona<br>TRY-Turkey Lira<br>CHF-Swiss Franc<br>SYP-Syrian Pound<br>TWD-Taiwan Dollar<br>TZS-Tanzanian Shilling<br>THB-Thai Baht<br>TOP-Tonga Pa'anga<br>TTD-Trinidad&amp;amp;Tobago Dollar<br>TND-Tunisian Dinar<br>TRL-Turkish Lira<br>USD-U.S. Dollar<br>AED-UAE Dirham<br>UGX-Ugandan Shilling<br>UAH-Ukraine Hryvnia<br>UYU-Uruguayan New Peso<br>VUV-Vanuatu Vatu<br>VEB-Venezuelan Bolivar<br>VND-Vietnam Dong<br>YER-Yemen Riyal<br>YUM-Yugoslav Dinar<br>ZMK-Zambian Kwacha<br>ZWD-Zimbabwe Dollar</font></p></blockquote> - - - - - - - <br><b>Get conversion rate from one currency to another currency <b><br><p><b><font color='#000080' size='1' face='Verdana'><u>Differenct currency Code and Names around the world</u></font></b></p><blockquote><p><font face='Verdana' size='1'>AFA-Afghanistan Afghani<br>ALL-Albanian Lek<br>DZD-Algerian Dinar<br>ARS-Argentine Peso<br>AWG-Aruba Florin<br>AUD-Australian Dollar<br>BSD-Bahamian Dollar<br>BHD-Bahraini Dinar<br>BDT-Bangladesh Taka<br>BBD-Barbados Dollar<br>BZD-Belize Dollar<br>BMD-Bermuda Dollar<br>BTN-Bhutan Ngultrum<br>BOB-Bolivian Boliviano<br>BWP-Botswana Pula<br>BRL-Brazilian Real<br>GBP-British Pound<br>BND-Brunei Dollar<br>BIF-Burundi Franc<br>XOF-CFA Franc (BCEAO)<br>XAF-CFA Franc (BEAC)<br>KHR-Cambodia Riel<br>CAD-Canadian Dollar<br>CVE-Cape Verde Escudo<br>KYD-Cayman Islands Dollar<br>CLP-Chilean Peso<br>CNY-Chinese Yuan<br>COP-Colombian Peso<br>KMF-Comoros Franc<br>CRC-Costa Rica Colon<br>HRK-Croatian Kuna<br>CUP-Cuban Peso<br>CYP-Cyprus Pound<br>CZK-Czech Koruna<br>DKK-Danish Krone<br>DJF-Dijibouti Franc<br>DOP-Dominican Peso<br>XCD-East Caribbean Dollar<br>EGP-Egyptian Pound<br>SVC-El Salvador Colon<br>EEK-Estonian Kroon<br>ETB-Ethiopian Birr<br>EUR-Euro<br>FKP-Falkland Islands Pound<br>GMD-Gambian Dalasi<br>GHC-Ghanian Cedi<br>GIP-Gibraltar Pound<br>XAU-Gold Ounces<br>GTQ-Guatemala Quetzal<br>GNF-Guinea Franc<br>GYD-Guyana Dollar<br>HTG-Haiti Gourde<br>HNL-Honduras Lempira<br>HKD-Hong Kong Dollar<br>HUF-Hungarian Forint<br>ISK-Iceland Krona<br>INR-Indian Rupee<br>IDR-Indonesian Rupiah<br>IQD-Iraqi Dinar<br>ILS-Israeli Shekel<br>JMD-Jamaican Dollar<br>JPY-Japanese Yen<br>JOD-Jordanian Dinar<br>KZT-Kazakhstan Tenge<br>KES-Kenyan Shilling<br>KRW-Korean Won<br>KWD-Kuwaiti Dinar<br>LAK-Lao Kip<br>LVL-Latvian Lat<br>LBP-Lebanese Pound<br>LSL-Lesotho Loti<br>LRD-Liberian Dollar<br>LYD-Libyan Dinar<br>LTL-Lithuanian Lita<br>MOP-Macau Pataca<br>MKD-Macedonian Denar<br>MGF-Malagasy Franc<br>MWK-Malawi Kwacha<br>MYR-Malaysian Ringgit<br>MVR-Maldives Rufiyaa<br>MTL-Maltese Lira<br>MRO-Mauritania Ougulya<br>MUR-Mauritius Rupee<br>MXN-Mexican Peso<br>MDL-Moldovan Leu<br>MNT-Mongolian Tugrik<br>MAD-Moroccan Dirham<br>MZM-Mozambique Metical<br>MMK-Myanmar Kyat<br>NAD-Namibian Dollar<br>NPR-Nepalese Rupee<br>ANG-Neth Antilles Guilder<br>NZD-New Zealand Dollar<br>NIO-Nicaragua Cordoba<br>NGN-Nigerian Naira<br>KPW-North Korean Won<br>NOK-Norwegian Krone<br>OMR-Omani Rial<br>XPF-Pacific Franc<br>PKR-Pakistani Rupee<br>XPD-Palladium Ounces<br>PAB-Panama Balboa<br>PGK-Papua New Guinea Kina<br>PYG-Paraguayan Guarani<br>PEN-Peruvian Nuevo Sol<br>PHP-Philippine Peso<br>XPT-Platinum Ounces<br>PLN-Polish Zloty<br>QAR-Qatar Rial<br>ROL-Romanian Leu<br>RUB-Russian Rouble<br>WST-Samoa Tala<br>STD-Sao Tome Dobra<br>SAR-Saudi Arabian Riyal<br>SCR-Seychelles Rupee<br>SLL-Sierra Leone Leone<br>XAG-Silver Ounces<br>SGD-Singapore Dollar<br>SKK-Slovak Koruna<br>SIT-Slovenian Tolar<br>SBD-Solomon Islands Dollar<br>SOS-Somali Shilling<br>ZAR-South African Rand<br>LKR-Sri Lanka Rupee<br>SHP-St Helena Pound<br>SDD-Sudanese Dinar<br>SRG-Surinam Guilder<br>SZL-Swaziland Lilageni<br>SEK-Swedish Krona<br>TRY-Turkey Lira<br>CHF-Swiss Franc<br>SYP-Syrian Pound<br>TWD-Taiwan Dollar<br>TZS-Tanzanian Shilling<br>THB-Thai Baht<br>TOP-Tonga Pa'anga<br>TTD-Trinidad&amp;amp;Tobago Dollar<br>TND-Tunisian Dinar<br>TRL-Turkish Lira<br>USD-U.S. Dollar<br>AED-UAE Dirham<br>UGX-Ugandan Shilling<br>UAH-Ukraine Hryvnia<br>UYU-Uruguayan New Peso<br>VUV-Vanuatu Vatu<br>VEB-Venezuelan Bolivar<br>VND-Vietnam Dong<br>YER-Yemen Riyal<br>YUM-Yugoslav Dinar<br>ZMK-Zambian Kwacha<br>ZWD-Zimbabwe Dollar</font></p></blockquote> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/test/resources/test-project/src/main/resources/wsdl/glogalweather.wsdl b/src/test/resources/test-project/src/main/resources/wsdl/glogalweather.wsdl deleted file mode 100644 index a81178c..0000000 --- a/src/test/resources/test-project/src/main/resources/wsdl/glogalweather.wsdl +++ /dev/null @@ -1,209 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get weather report for all major cities around the world. - - - - - Get all major cities by country name(full / part). - - - - - - - Get weather report for all major cities around the world. - - - - - Get all major cities by country name(full / part). - - - - - - - Get weather report for all major cities around the world. - - - - - Get all major cities by country name(full / part). - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/test/resources/test-project/src/main/resources/wsdl/stockqoute.wsdl b/src/test/resources/test-project/src/main/resources/wsdl/stockqoute.wsdl deleted file mode 100644 index 2214dfc..0000000 --- a/src/test/resources/test-project/src/main/resources/wsdl/stockqoute.wsdl +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get Stock quote for a company Symbol - - - - - - - Get Stock quote for a company Symbol - - - - - - - Get Stock quote for a company Symbol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/test/resources/test-project/src/main/resources/xsd/CustomersAndOrders.xsd b/src/test/resources/test-project/src/main/resources/xsd/CustomersAndOrders.xsd deleted file mode 100644 index 014c008..0000000 --- a/src/test/resources/test-project/src/main/resources/xsd/CustomersAndOrders.xsd +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/test/resources/test-project/src/test/java/no/nils/consumers/StockQuoteConsumerTest.java b/src/test/resources/test-project/src/test/java/no/nils/consumers/StockQuoteConsumerTest.java deleted file mode 100644 index d5dfde4..0000000 --- a/src/test/resources/test-project/src/test/java/no/nils/consumers/StockQuoteConsumerTest.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.yupzip.consumers; - -import org.junit.jupiter.api.Test; - -public class StockQuoteConsumerTest { - - @Test - public void willCompile() { - new StockQuoteConsumer().iWillCompile(); - } -} From 0ea463960e54e19de5c9f32ae4c31c57925ac456 Mon Sep 17 00:00:00 2001 From: "peter.vermes" Date: Sat, 22 May 2021 12:23:42 +1000 Subject: [PATCH 06/31] readme.md --- README.md | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 571f79e..d22cc2b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ### Note -This plugin is forked from deprecated nilsmagnus/wsdl2java. Version 1.0 only includes a small update to make the plugin compatible with Gradle 7+. +This plugin is forked from deprecated nilsmagnus/wsdl2java. Version 2.0 only includes a small update to make the plugin compatible with Gradle 7+. wsdl2java gradle plugin ========= @@ -166,7 +166,7 @@ To use those extensions some more dependencies are necessary. ```groovy dependencies() { - compile 'org.jvnet.jaxb2_commons:jaxb2-basics-runtime:0.11.0' + implementation 'org.jvnet.jaxb2_commons:jaxb2-basics-runtime:0.11.0' // enable extension support for wsdl2java wsdl2java 'org.jvnet.jaxb2_commons:jaxb2-basics-runtime:0.11.0' @@ -185,17 +185,3 @@ This example creates the hashCode and the equals method. ### A notice on multi-module projects Instead of referring to absolute paths in your build-file, try using $projectDir as a prefix to your files and directories. As shown in the "Complete example usage". - - -# Releasing - -* set version to final in build.gradle & commit - -* build artifact and upload - - export BINTRAY_USER= - export BINTRAY_API_KEY= - ./gradlew clean bintrayPublish bintrayUpload - -* increment version and set to SNAPSHOT & commit -* git push From 7f839a939226ea58964b37f7d4bd4bb557d96fa1 Mon Sep 17 00:00:00 2001 From: Nicklas Bondesson Date: Wed, 11 Aug 2021 19:30:29 +0200 Subject: [PATCH 07/31] Task and extension should use different names Fixes the following error when referencing the `wsdl2java` task: Could not determine the dependencies of task ':compileJava'. > Cannot convert extension 'wsdl2java' to a task. The following types/formats are supported: - A String or CharSequence task name or path - A Task instance - A TaskReference instance - A Buildable instance - A TaskDependency instance - A Provider that represents a task output - A Provider instance that returns any of these types - A Closure instance that returns any of these types - A Callable instance that returns any of these types - An Iterable, Collection, Map or array instance that contains any of these types And enables us to do things like: dependsOn wsdl2javaTask --- README.md | 2 +- src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d22cc2b..1e80b3e 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ This plugin uses the apache-cxf tools to do the actual work. | Name | Description | Dependecy | | ---- | ----------- | --------- | -| wsdl2java | Generate java source from wsdl-files | CompileJava/CompileKotlin depends on wsdl2java | +| wsdl2javaTask | Generate java source from wsdl-files | CompileJava/CompileKotlin depends on wsdl2java | ## Usage diff --git a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy index 64851f8..45cf1df 100644 --- a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy +++ b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy @@ -7,6 +7,7 @@ import org.gradle.api.Task class Wsdl2JavaPlugin implements Plugin { public static final String WSDL2JAVA = "wsdl2java" + public static final String WSDL2JAVA_TASK = "wsdl2javaTask" private static final JAVA_9_DEPENDENCIES = [ "javax.xml.bind:jaxb-api:2.3.1", @@ -35,7 +36,7 @@ class Wsdl2JavaPlugin implements Plugin { } } - def wsdl2JavaTask = project.tasks.register(WSDL2JAVA, Wsdl2JavaTask.class) { task -> + def wsdl2JavaTask = project.tasks.register(WSDL2JAVA_TASK, Wsdl2JavaTask.class) { task -> wsdl2javaConfiguration.withDependencies { it.add(project.dependencies.create("org.apache.cxf:cxf-tools-wsdlto-databinding-jaxb:${cxfVersion.get()}")) it.add(project.dependencies.create("org.apache.cxf:cxf-tools-wsdlto-frontend-jaxws:${cxfVersion.get()}")) From d4758f66d519d8fe57c7dc236ad62621f062dcb9 Mon Sep 17 00:00:00 2001 From: Nicklas Bondesson Date: Wed, 11 Aug 2021 19:34:47 +0200 Subject: [PATCH 08/31] Bump version --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index e98dffa..71f0640 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ plugins { } group = 'com.yupzip' -version = '2.0' +version = '2.1' // stay compatible with the crowd sourceCompatibility = JavaVersion.VERSION_1_6 From 97262917ba4fc19ec9f252238f1d4b644d6b48e4 Mon Sep 17 00:00:00 2001 From: "peter.vermes" Date: Thu, 12 Aug 2021 09:12:58 +1000 Subject: [PATCH 09/31] readme.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1e80b3e..6dacb8c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ### Note -This plugin is forked from deprecated nilsmagnus/wsdl2java. Version 2.0 only includes a small update to make the plugin compatible with Gradle 7+. +This plugin is forked from deprecated nilsmagnus/wsdl2java. Version 2.1 only includes a small update to make the plugin compatible with Gradle 7+. wsdl2java gradle plugin ========= @@ -38,7 +38,7 @@ Groovy: ```groovy plugins { id 'java' - classpath 'com.yupzip:wsdl2java:2.0' + classpath 'com.yupzip:wsdl2java:2.1' } ``` @@ -47,7 +47,7 @@ Kotlin: ```kotlin plugins { id("java") - id("com.yupzip.wsdl2java") version "2.0" + id("com.yupzip.wsdl2java") version "2.1" } ``` @@ -123,7 +123,7 @@ This is a an example of a working build.gradle for a java project. You can also ```groovy plugins { id 'java' - classpath 'com.yupzip:wsdl2java:2.0' + classpath 'com.yupzip:wsdl2java:2.1' } repositories { From fecfbaed049d8d537ce3177d1529f564ec7501c7 Mon Sep 17 00:00:00 2001 From: yupzip Date: Thu, 12 Aug 2021 09:20:47 +1000 Subject: [PATCH 10/31] readme.md - adding Nicklas as contributor --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6dacb8c..357aa73 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ Contributions are welcome as long as they are sane. #### Contributors - Peter Vermes , https://github.com/yupzip +- Nicklas Bondesson , https://github.com/nicklasbondesson ### CXF This plugin uses the apache-cxf tools to do the actual work. From 8e91abcba5443991807b7f8137aeb566f51a173e Mon Sep 17 00:00:00 2001 From: Nicklas Bondesson Date: Wed, 11 Aug 2021 20:54:10 +0200 Subject: [PATCH 11/31] Fix kotlin detection --- .../groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy index 45cf1df..978eb59 100644 --- a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy +++ b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy @@ -62,14 +62,8 @@ class Wsdl2JavaPlugin implements Plugin { it.dependsOn wsdl2JavaTask } - project.pluginManager.withPlugin("org.jetbrains.kotlin.jvm") { - project.tasks.withType(getTaskClass("org.jetbrains.kotlin.gradle.tasks.KotlinCompile")).configureEach { - it.dependsOn wsdl2JavaTask - } - } - - project.pluginManager.withPlugin("org.jetbrains.kotlin.kapt") { - project.tasks.withType(getTaskClass("org.jetbrains.kotlin.gradle.internal.KaptGenerateStubsTask")).configureEach { + if (project.tasks.findByName("compileKotlin") != null) { + project.tasks.named("compileKotlin").configure { it.dependsOn wsdl2JavaTask } } From 262383a38036e76cffc84e44d014c36f606e5482 Mon Sep 17 00:00:00 2001 From: Nicklas Bondesson Date: Wed, 11 Aug 2021 20:55:22 +0200 Subject: [PATCH 12/31] Bump version --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 71f0640..bd5e8e5 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ plugins { } group = 'com.yupzip' -version = '2.1' +version = '2.11' // stay compatible with the crowd sourceCompatibility = JavaVersion.VERSION_1_6 From d7a1900304ad09bd5d37e7798be080529a2edbe7 Mon Sep 17 00:00:00 2001 From: yupzip Date: Thu, 12 Aug 2021 09:36:20 +1000 Subject: [PATCH 13/31] 2.1.1 --- README.md | 8 ++++---- build.gradle | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 357aa73..da7fba4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ### Note -This plugin is forked from deprecated nilsmagnus/wsdl2java. Version 2.1 only includes a small update to make the plugin compatible with Gradle 7+. +This plugin is forked from deprecated nilsmagnus/wsdl2java. Version 2.1.1 only includes a small update to make the plugin compatible with Gradle 7+. wsdl2java gradle plugin ========= @@ -39,7 +39,7 @@ Groovy: ```groovy plugins { id 'java' - classpath 'com.yupzip:wsdl2java:2.1' + classpath 'com.yupzip:wsdl2java:2.1.1' } ``` @@ -48,7 +48,7 @@ Kotlin: ```kotlin plugins { id("java") - id("com.yupzip.wsdl2java") version "2.1" + id("com.yupzip.wsdl2java") version "2.1.1" } ``` @@ -124,7 +124,7 @@ This is a an example of a working build.gradle for a java project. You can also ```groovy plugins { id 'java' - classpath 'com.yupzip:wsdl2java:2.1' + classpath 'com.yupzip:wsdl2java:2.1.1' } repositories { diff --git a/build.gradle b/build.gradle index bd5e8e5..95591f6 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ plugins { } group = 'com.yupzip' -version = '2.11' +version = '2.1.1' // stay compatible with the crowd sourceCompatibility = JavaVersion.VERSION_1_6 From 78e62b2fa020826ed3a070695e818b29e3a929ee Mon Sep 17 00:00:00 2001 From: yupzip Date: Thu, 12 Aug 2021 09:48:14 +1000 Subject: [PATCH 14/31] Additional changes included in 2.1 --- README.md | 8 ++++---- build.gradle | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index da7fba4..357aa73 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ### Note -This plugin is forked from deprecated nilsmagnus/wsdl2java. Version 2.1.1 only includes a small update to make the plugin compatible with Gradle 7+. +This plugin is forked from deprecated nilsmagnus/wsdl2java. Version 2.1 only includes a small update to make the plugin compatible with Gradle 7+. wsdl2java gradle plugin ========= @@ -39,7 +39,7 @@ Groovy: ```groovy plugins { id 'java' - classpath 'com.yupzip:wsdl2java:2.1.1' + classpath 'com.yupzip:wsdl2java:2.1' } ``` @@ -48,7 +48,7 @@ Kotlin: ```kotlin plugins { id("java") - id("com.yupzip.wsdl2java") version "2.1.1" + id("com.yupzip.wsdl2java") version "2.1" } ``` @@ -124,7 +124,7 @@ This is a an example of a working build.gradle for a java project. You can also ```groovy plugins { id 'java' - classpath 'com.yupzip:wsdl2java:2.1.1' + classpath 'com.yupzip:wsdl2java:2.1' } repositories { diff --git a/build.gradle b/build.gradle index 95591f6..71f0640 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ plugins { } group = 'com.yupzip' -version = '2.1.1' +version = '2.1' // stay compatible with the crowd sourceCompatibility = JavaVersion.VERSION_1_6 From 0ed4842544b44f9c10a9a69edea2bd932c7d6b93 Mon Sep 17 00:00:00 2001 From: Nicklas Bondesson Date: Thu, 12 Aug 2021 11:47:50 +0200 Subject: [PATCH 15/31] Remove unused method --- src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy index 978eb59..76b3131 100644 --- a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy +++ b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy @@ -72,8 +72,4 @@ class Wsdl2JavaPlugin implements Plugin { main.java.srcDirs += extension.generatedWsdlDir } } - - static Class getTaskClass(name) { - return Class.forName(name) as Class - } } From b83ad29c7fd8a82275186d4442885cc124811057 Mon Sep 17 00:00:00 2001 From: Nicklas Bondesson Date: Thu, 12 Aug 2021 12:39:05 +0200 Subject: [PATCH 16/31] Improved up-to-date checks --- .../com/yupzip/wsdl2java/Wsdl2JavaTask.groovy | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy index a8d9f7a..518f787 100644 --- a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy +++ b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy @@ -12,9 +12,6 @@ class Wsdl2JavaTask extends DefaultTask { private static final NEWLINE = System.getProperty("line.separator") - @OutputDirectory - File generatedWsdlDir = new File( "build/generated/wsdl") - @InputFiles @Classpath Configuration classpath @@ -25,9 +22,17 @@ class Wsdl2JavaTask extends DefaultTask { @Nested Wsdl2JavaPluginExtension extension + @Internal + File generatedWsdlDir + + @OutputDirectory + File getGeneratedWsdlFile() { + return new File(extension != null ? extension.generatedWsdlDir : "build/generated/wsdl") + } + @TaskAction def wsdl2java() { - generatedWsdlDir = new File(extension.generatedWsdlDir) + generatedWsdlDir = getGeneratedWsdlFile() deleteOutputFolders() MessageDigest md5 = MessageDigest.getInstance("MD5") From ebfcd4acd753a7500f0d880bc7076898cb416ebf Mon Sep 17 00:00:00 2001 From: Nicklas Bondesson Date: Thu, 12 Aug 2021 12:40:59 +0200 Subject: [PATCH 17/31] Bump version --- README.md | 8 ++++---- build.gradle | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 357aa73..76f9832 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ### Note -This plugin is forked from deprecated nilsmagnus/wsdl2java. Version 2.1 only includes a small update to make the plugin compatible with Gradle 7+. +This plugin is forked from deprecated nilsmagnus/wsdl2java. Version 2.11 only includes a small update to make the plugin compatible with Gradle 7+. wsdl2java gradle plugin ========= @@ -39,7 +39,7 @@ Groovy: ```groovy plugins { id 'java' - classpath 'com.yupzip:wsdl2java:2.1' + classpath 'com.yupzip:wsdl2java:2.11' } ``` @@ -48,7 +48,7 @@ Kotlin: ```kotlin plugins { id("java") - id("com.yupzip.wsdl2java") version "2.1" + id("com.yupzip.wsdl2java") version "2.11" } ``` @@ -124,7 +124,7 @@ This is a an example of a working build.gradle for a java project. You can also ```groovy plugins { id 'java' - classpath 'com.yupzip:wsdl2java:2.1' + classpath 'com.yupzip:wsdl2java:2.11' } repositories { diff --git a/build.gradle b/build.gradle index 71f0640..bd5e8e5 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ plugins { } group = 'com.yupzip' -version = '2.1' +version = '2.11' // stay compatible with the crowd sourceCompatibility = JavaVersion.VERSION_1_6 From d5c618c996b1e9a147c8ebd8a7cd2ba4c2cd8529 Mon Sep 17 00:00:00 2001 From: Nicklas Bondesson Date: Thu, 12 Aug 2021 13:53:09 +0200 Subject: [PATCH 18/31] Update README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 76f9832..51be6e8 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ plugins { | ------ | ------------- | ----------- | | wsdlDir | src/main/resources | Define the wsdl files directory to support incremental build. This means that the task will be up-to-date if nothing in this directory has changed. | | wsdlsToGenerate | empty | This is the main input to the plugin that defines the wsdls to process. It is a list of arguments where each argument is a list of arguments to process a wsdl-file. The Wsdl-file with full path is the last argument. The array can be supplied with the same options as described for the maven-cxf plugin(http://cxf.apache.org/docs/wsdl-to-java.html). | +| generatedWsdlDir | build/generated/wsdl | Destination directory for generated sources. The task will be up-to-date if nothing in this directory changes between builds. | | locale | Locale.getDefault() | The locale for the generated sources – especially the JavaDoc. This might be necessary to prevent differing sources due to several development environments. | | encoding | platform default encoding | Set the encoding name for generated sources, such as EUC-JP or UTF-8. | | stabilizeAndMergeObjectFactory| false | If multiple WSDLs target the same package, merge their `ObjectFactory` classes. | From c6e707ac1f278938173b6152d63145819468c71e Mon Sep 17 00:00:00 2001 From: yupzip Date: Thu, 12 Aug 2021 22:14:27 +1000 Subject: [PATCH 19/31] 2.1.1 --- README.md | 6 +++--- build.gradle | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 51be6e8..5c00a0b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ### Note -This plugin is forked from deprecated nilsmagnus/wsdl2java. Version 2.11 only includes a small update to make the plugin compatible with Gradle 7+. +This plugin is forked from deprecated nilsmagnus/wsdl2java. Version 2.1.1 only includes a small update to make the plugin compatible with Gradle 7+. wsdl2java gradle plugin ========= @@ -39,7 +39,7 @@ Groovy: ```groovy plugins { id 'java' - classpath 'com.yupzip:wsdl2java:2.11' + classpath 'com.yupzip:wsdl2java:2.1.1' } ``` @@ -48,7 +48,7 @@ Kotlin: ```kotlin plugins { id("java") - id("com.yupzip.wsdl2java") version "2.11" + id("com.yupzip.wsdl2java") version "2.1.1" } ``` diff --git a/build.gradle b/build.gradle index bd5e8e5..95591f6 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ plugins { } group = 'com.yupzip' -version = '2.11' +version = '2.1.1' // stay compatible with the crowd sourceCompatibility = JavaVersion.VERSION_1_6 From 09ffc058a8648be8f62b81c109b2832bcafc2498 Mon Sep 17 00:00:00 2001 From: yupzip Date: Thu, 12 Aug 2021 22:43:49 +1000 Subject: [PATCH 20/31] 2.2 --- README.md | 8 ++++---- build.gradle | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5c00a0b..85499d2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ### Note -This plugin is forked from deprecated nilsmagnus/wsdl2java. Version 2.1.1 only includes a small update to make the plugin compatible with Gradle 7+. +This plugin is forked from deprecated nilsmagnus/wsdl2java. Version 2.2 only includes a small update to make the plugin compatible with Gradle 7+. wsdl2java gradle plugin ========= @@ -39,7 +39,7 @@ Groovy: ```groovy plugins { id 'java' - classpath 'com.yupzip:wsdl2java:2.1.1' + classpath 'com.yupzip:wsdl2java:2.2' } ``` @@ -48,7 +48,7 @@ Kotlin: ```kotlin plugins { id("java") - id("com.yupzip.wsdl2java") version "2.1.1" + id("com.yupzip.wsdl2java") version "2.2" } ``` @@ -125,7 +125,7 @@ This is a an example of a working build.gradle for a java project. You can also ```groovy plugins { id 'java' - classpath 'com.yupzip:wsdl2java:2.11' + classpath 'com.yupzip:wsdl2java:2.2' } repositories { diff --git a/build.gradle b/build.gradle index 95591f6..17be423 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ plugins { } group = 'com.yupzip' -version = '2.1.1' +version = '2.2' // stay compatible with the crowd sourceCompatibility = JavaVersion.VERSION_1_6 From 0eef05c057fd799aeec59c9cf057793ad4c73743 Mon Sep 17 00:00:00 2001 From: yupzip Date: Fri, 13 Aug 2021 09:45:37 +1000 Subject: [PATCH 21/31] 2.2.0 --- README.md | 8 ++++---- build.gradle | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 85499d2..74e9bf8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ### Note -This plugin is forked from deprecated nilsmagnus/wsdl2java. Version 2.2 only includes a small update to make the plugin compatible with Gradle 7+. +This plugin is forked from deprecated nilsmagnus/wsdl2java. Version 2.2.0 only includes a small update to make the plugin compatible with Gradle 7+. wsdl2java gradle plugin ========= @@ -39,7 +39,7 @@ Groovy: ```groovy plugins { id 'java' - classpath 'com.yupzip:wsdl2java:2.2' + classpath 'com.yupzip:wsdl2java:2.2.0' } ``` @@ -48,7 +48,7 @@ Kotlin: ```kotlin plugins { id("java") - id("com.yupzip.wsdl2java") version "2.2" + id("com.yupzip.wsdl2java") version "2.2.0" } ``` @@ -125,7 +125,7 @@ This is a an example of a working build.gradle for a java project. You can also ```groovy plugins { id 'java' - classpath 'com.yupzip:wsdl2java:2.2' + classpath 'com.yupzip:wsdl2java:2.2.0' } repositories { diff --git a/build.gradle b/build.gradle index 17be423..99feb85 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ plugins { } group = 'com.yupzip' -version = '2.2' +version = '2.2.0' // stay compatible with the crowd sourceCompatibility = JavaVersion.VERSION_1_6 From aec986ad0c69585e81a836fc72d29a6df8a8e7d7 Mon Sep 17 00:00:00 2001 From: hschindel Date: Fri, 19 Nov 2021 10:11:20 -0500 Subject: [PATCH 22/31] Add a flag to exclude java 8 xml dependencies during runtime --- build.gradle | 2 +- src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy | 4 ++-- .../com/yupzip/wsdl2java/Wsdl2JavaPluginExtension.groovy | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 99feb85..e9210c7 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ plugins { } group = 'com.yupzip' -version = '2.2.0' +version = '2.3.0' // stay compatible with the crowd sourceCompatibility = JavaVersion.VERSION_1_6 diff --git a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy index 76b3131..051517c 100644 --- a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy +++ b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy @@ -30,7 +30,7 @@ class Wsdl2JavaPlugin implements Plugin { // Get implementation configuration and add Java 9+ dependencies if required. project.configurations.named("implementation").configure { it.withDependencies { - if (JavaVersion.current().isJava9Compatible()) { + if (JavaVersion.current().isJava9Compatible() && extension.includeJava8XmlDependencies) { JAVA_9_DEPENDENCIES.each { dep -> it.add(project.dependencies.create(dep)) } } } @@ -47,7 +47,7 @@ class Wsdl2JavaPlugin implements Plugin { it.add(project.dependencies.create("org.apache.cxf.xjcplugins:cxf-xjc-boolean:${cxfPluginVersion.get()}")) } - if (JavaVersion.current().isJava9Compatible()) { + if (JavaVersion.current().isJava9Compatible() && extension.includeJava8XmlDependencies) { JAVA_9_DEPENDENCIES.each { dep -> it.add(project.dependencies.create(dep)) } } } diff --git a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginExtension.groovy b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginExtension.groovy index 49fab30..1a99b03 100644 --- a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginExtension.groovy +++ b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginExtension.groovy @@ -36,4 +36,7 @@ class Wsdl2JavaPluginExtension { @Input String generatedWsdlDir = "build/generated/wsdl" + @Input + boolean includeJava8XmlDependencies = true; + } From c2a1e32dc34ca1f0059a395cc325ec2a9162aecb Mon Sep 17 00:00:00 2001 From: hschindel Date: Fri, 19 Nov 2021 10:39:31 -0500 Subject: [PATCH 23/31] Update readme for new flag --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 74e9bf8..10f9841 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,7 @@ plugins { | stabilizeAndMergeObjectFactory| false | If multiple WSDLs target the same package, merge their `ObjectFactory` classes. | | cxfVersion | "+" | Controls the CXF version used to generate code. | | cxfPluginVersion | "+" | Controls the CXF XJC-plugins version used to generate code. | +| includeJava8XmlDependencies | true | If on Java 9 or later this flag includes xml libraries that were previously included with the JRE. Set to false if you use recent versions of Java and the Jakarta xml implementations. | Example setting of options: From 943d1e4cca8d6508225254d97fcbad863a1f2ebd Mon Sep 17 00:00:00 2001 From: yupzip Date: Tue, 30 Nov 2021 22:43:12 +1100 Subject: [PATCH 24/31] README.md - version --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 10f9841..e17c860 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ### Note -This plugin is forked from deprecated nilsmagnus/wsdl2java. Version 2.2.0 only includes a small update to make the plugin compatible with Gradle 7+. +This plugin is forked from deprecated nilsmagnus/wsdl2java. Version 2.3.0 only includes a small update to make the plugin compatible with Gradle 7+. wsdl2java gradle plugin ========= @@ -39,7 +39,7 @@ Groovy: ```groovy plugins { id 'java' - classpath 'com.yupzip:wsdl2java:2.2.0' + classpath 'com.yupzip:wsdl2java:2.3.0' } ``` @@ -48,7 +48,7 @@ Kotlin: ```kotlin plugins { id("java") - id("com.yupzip.wsdl2java") version "2.2.0" + id("com.yupzip.wsdl2java") version "2.3.0" } ``` @@ -126,7 +126,7 @@ This is a an example of a working build.gradle for a java project. You can also ```groovy plugins { id 'java' - classpath 'com.yupzip:wsdl2java:2.2.0' + classpath 'com.yupzip:wsdl2java:2.3.0' } repositories { From 350aeda79907f1f2e8c02dc8e37296dbd26b68b0 Mon Sep 17 00:00:00 2001 From: "mishimaltd@gmail.com" Date: Tue, 26 Apr 2022 18:35:03 -0400 Subject: [PATCH 25/31] MISC: Updated plugin to reference ArrayList .size() instead of .size to address issue with Sun JDK. See: https://issues.apache.org/jira/browse/GROOVY-4094 --- src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy index 518f787..7417495 100644 --- a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy +++ b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy @@ -51,8 +51,8 @@ class Wsdl2JavaTask extends DefaultTask { String wsdlPath = md5.digest(argsCopy[-1].toString().bytes).encodeHex().toString() File targetDir = new File(tmpDir, wsdlPath) - argsCopy.add(argsCopy.size - 1, '-d') - argsCopy.add(argsCopy.size - 1, targetDir) + argsCopy.add(argsCopy.size() - 1, '-d') + argsCopy.add(argsCopy.size() - 1, targetDir) String[] wsdl2JavaArgs = new String[argsCopy.size()] for (int i = 0; i < argsCopy.size(); i++) wsdl2JavaArgs[i] = argsCopy[i] From cb5c5bed601ebb46ab7f772af0065be3aa23b2a1 Mon Sep 17 00:00:00 2001 From: yupzip Date: Fri, 24 Jun 2022 20:13:07 +1000 Subject: [PATCH 26/31] 2.3.1 --- README.md | 8 ++++---- build.gradle | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e17c860..1688435 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ### Note -This plugin is forked from deprecated nilsmagnus/wsdl2java. Version 2.3.0 only includes a small update to make the plugin compatible with Gradle 7+. +This plugin is forked from deprecated nilsmagnus/wsdl2java. Version 2.3.1 only includes a small update to make the plugin compatible with Gradle 7+. wsdl2java gradle plugin ========= @@ -39,7 +39,7 @@ Groovy: ```groovy plugins { id 'java' - classpath 'com.yupzip:wsdl2java:2.3.0' + classpath 'com.yupzip:wsdl2java:2.3.1' } ``` @@ -48,7 +48,7 @@ Kotlin: ```kotlin plugins { id("java") - id("com.yupzip.wsdl2java") version "2.3.0" + id("com.yupzip.wsdl2java") version "2.3.1" } ``` @@ -126,7 +126,7 @@ This is a an example of a working build.gradle for a java project. You can also ```groovy plugins { id 'java' - classpath 'com.yupzip:wsdl2java:2.3.0' + classpath 'com.yupzip:wsdl2java:2.3.1' } repositories { diff --git a/build.gradle b/build.gradle index e9210c7..aad557d 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ plugins { } group = 'com.yupzip' -version = '2.3.0' +version = '2.3.1' // stay compatible with the crowd sourceCompatibility = JavaVersion.VERSION_1_6 From f8a6de0ca9fd4db1d36ce1dfe0c8ce093a0e79ba Mon Sep 17 00:00:00 2001 From: Paul Fridrick Date: Mon, 7 Nov 2022 11:08:46 +0100 Subject: [PATCH 27/31] Add lineEnding extension property to configure generated files line endings --- .../com/yupzip/wsdl2java/LineEnding.groovy | 31 +++++++++++++++++++ .../wsdl2java/Wsdl2JavaPluginExtension.groovy | 3 ++ .../com/yupzip/wsdl2java/Wsdl2JavaTask.groovy | 7 ++--- 3 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 src/main/groovy/com/yupzip/wsdl2java/LineEnding.groovy diff --git a/src/main/groovy/com/yupzip/wsdl2java/LineEnding.groovy b/src/main/groovy/com/yupzip/wsdl2java/LineEnding.groovy new file mode 100644 index 0000000..5b5fffa --- /dev/null +++ b/src/main/groovy/com/yupzip/wsdl2java/LineEnding.groovy @@ -0,0 +1,31 @@ +package com.yupzip.wsdl2java + +enum LineEnding { + /** + * {@code \n} on unix systems, {@code \r\n} on windows systems. + */ + PLATFORM_NATIVE(System.lineSeparator()), + /** + * {@code \r\n} + */ + WINDOWS("\r\n"), + /** + * {@code \n} + */ + UNIX("\n"), + /** + * {@code \r} + */ + MAC_CLASSIC("\r"); + + + private LineEnding(String value) { + this.value = value; + } + + private final String value; + + String getValue() { + return value; + } +} diff --git a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginExtension.groovy b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginExtension.groovy index 1a99b03..03c01f1 100644 --- a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginExtension.groovy +++ b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginExtension.groovy @@ -21,6 +21,9 @@ class Wsdl2JavaPluginExtension { @Input String encoding = Charset.defaultCharset().name() + @Input + LineEnding lineEnding = LineEnding.PLATFORM_NATIVE + @Input boolean stabilize = false diff --git a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy index 7417495..760bc58 100644 --- a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy +++ b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy @@ -10,8 +10,6 @@ import java.security.MessageDigest @CacheableTask class Wsdl2JavaTask extends DefaultTask { - private static final NEWLINE = System.getProperty("line.separator") - @InputFiles @Classpath Configuration classpath @@ -144,7 +142,7 @@ class Wsdl2JavaTask extends DefaultTask { } protected void switchToEncoding(File file) { - List lines = file.getText().split(NEWLINE) + List lines = file.getText().split(LineEnding.PLATFORM_NATIVE.value) file.delete() if (extension.stabilize) { @@ -154,7 +152,8 @@ class Wsdl2JavaTask extends DefaultTask { stabilizeXmlSeeAlso(file, lines) } - String text = lines.join(NEWLINE) + NEWLINE // want empty line last + String extensionLineEnding = extension.lineEnding.value + String text = lines.join(extensionLineEnding) + extensionLineEnding // want empty line last file.withWriter(extension.encoding) { w -> w.write(text) } } From 361df797669b4b6585ab5b387bce11224b0f25e4 Mon Sep 17 00:00:00 2001 From: yupzip Date: Fri, 2 Dec 2022 21:36:57 +1100 Subject: [PATCH 28/31] 2.3.2 --- README.md | 8 ++++---- build.gradle | 2 +- src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy | 7 +++---- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 1688435..e85187a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ### Note -This plugin is forked from deprecated nilsmagnus/wsdl2java. Version 2.3.1 only includes a small update to make the plugin compatible with Gradle 7+. +This plugin is forked from deprecated nilsmagnus/wsdl2java. Version 2.3.2 only includes a small update to make the plugin compatible with Gradle 7+. wsdl2java gradle plugin ========= @@ -39,7 +39,7 @@ Groovy: ```groovy plugins { id 'java' - classpath 'com.yupzip:wsdl2java:2.3.1' + classpath 'com.yupzip:wsdl2java:2.3.2' } ``` @@ -48,7 +48,7 @@ Kotlin: ```kotlin plugins { id("java") - id("com.yupzip.wsdl2java") version "2.3.1" + id("com.yupzip.wsdl2java") version "2.3.2" } ``` @@ -126,7 +126,7 @@ This is a an example of a working build.gradle for a java project. You can also ```groovy plugins { id 'java' - classpath 'com.yupzip:wsdl2java:2.3.1' + classpath 'com.yupzip:wsdl2java:2.3.2' } repositories { diff --git a/build.gradle b/build.gradle index aad557d..3f097c4 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ plugins { } group = 'com.yupzip' -version = '2.3.1' +version = '2.3.2' // stay compatible with the crowd sourceCompatibility = JavaVersion.VERSION_1_6 diff --git a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy index 760bc58..02e3c64 100644 --- a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy +++ b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy @@ -142,7 +142,8 @@ class Wsdl2JavaTask extends DefaultTask { } protected void switchToEncoding(File file) { - List lines = file.getText().split(LineEnding.PLATFORM_NATIVE.value) + String lineEnding = extension.lineEnding.value + List lines = file.getText().split(lineEnding) file.delete() if (extension.stabilize) { @@ -151,9 +152,7 @@ class Wsdl2JavaTask extends DefaultTask { stabilizeXmlElementRef(file, lines) stabilizeXmlSeeAlso(file, lines) } - - String extensionLineEnding = extension.lineEnding.value - String text = lines.join(extensionLineEnding) + extensionLineEnding // want empty line last + String text = lines.join(lineEnding) + lineEnding // want empty line last file.withWriter(extension.encoding) { w -> w.write(text) } } From ed3ccedf5c49c24d0a29a0748aab04118c381bbd Mon Sep 17 00:00:00 2001 From: Michail Pevnev Date: Fri, 23 Dec 2022 17:47:05 +0400 Subject: [PATCH 29/31] Require the user to specify cxfVersion and cxfPluginVersion The current default value allows the plugin to grab an arbitrary version of CXF. It is a time bomb for people who don't read the docs too closely, have missed what the default is and didn't override it with a specific version. Ideally, people should read the documentation, but the reality is a touch different. It seems that gradle automatically treats `@Input`s as non-nullable and complains if any of them don't have a value, which is nice. This is a breaking change for those who haven't specified these parameters before. I don't think the breakage will be much worse than what the release of CXF 4.0.0 at 22nd of December has done. Alternatives: emphasize the danger of the default value in the README, pick some fixed version arbitrarily. The former would help but still leaves the human factor very relevant. The latter feels wrong, it's probably not the choice the plugin should make. It also can lead to the same kind of breakage as a CXF release now. --- README.md | 4 ++-- .../com/yupzip/wsdl2java/Wsdl2JavaPluginExtension.groovy | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e85187a..80cad75 100644 --- a/README.md +++ b/README.md @@ -62,8 +62,8 @@ plugins { | locale | Locale.getDefault() | The locale for the generated sources – especially the JavaDoc. This might be necessary to prevent differing sources due to several development environments. | | encoding | platform default encoding | Set the encoding name for generated sources, such as EUC-JP or UTF-8. | | stabilizeAndMergeObjectFactory| false | If multiple WSDLs target the same package, merge their `ObjectFactory` classes. | -| cxfVersion | "+" | Controls the CXF version used to generate code. | -| cxfPluginVersion | "+" | Controls the CXF XJC-plugins version used to generate code. | +| cxfVersion | none, has to be specified | Controls the CXF version used to generate code. | +| cxfPluginVersion | none, has to be specified | Controls the CXF XJC-plugins version used to generate code. | | includeJava8XmlDependencies | true | If on Java 9 or later this flag includes xml libraries that were previously included with the JRE. Set to false if you use recent versions of Java and the Jakarta xml implementations. | Example setting of options: diff --git a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginExtension.groovy b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginExtension.groovy index 03c01f1..832867d 100644 --- a/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginExtension.groovy +++ b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginExtension.groovy @@ -31,10 +31,10 @@ class Wsdl2JavaPluginExtension { boolean stabilizeAndMergeObjectFactory = false @Input - String cxfVersion = "+" + String cxfVersion = null @Input - String cxfPluginVersion = "+" + String cxfPluginVersion = null @Input String generatedWsdlDir = "build/generated/wsdl" From 9d15879d012263c9b8bd0b84dc8b97b31e442971 Mon Sep 17 00:00:00 2001 From: yupzip Date: Thu, 12 Jan 2023 11:43:50 +1100 Subject: [PATCH 30/31] 3.0.0 --- README.md | 129 +++++++++++++++++++++++++++++++++++---------------- build.gradle | 2 +- 2 files changed, 89 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index 80cad75..8fc08d3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ ### Note -This plugin is forked from deprecated nilsmagnus/wsdl2java. Version 2.3.2 only includes a small update to make the plugin compatible with Gradle 7+. +* Version 3.0.0 contains a breaking change: 'cxfVersion' and 'cxfPluginVersion' properties are now required. +* This plugin is forked from deprecated nilsmagnus/wsdl2java to make the plugin compatible with Gradle 7+. wsdl2java gradle plugin ========= @@ -18,6 +19,7 @@ Contributions are welcome as long as they are sane. ### CXF This plugin uses the apache-cxf tools to do the actual work. +(Version must be defined in gradle task config!) ### Tasks @@ -38,8 +40,8 @@ Groovy: ```groovy plugins { - id 'java' - classpath 'com.yupzip:wsdl2java:2.3.2' + id 'java' + id 'com.yupzip.wsdl2java' version '3.0.0' } ``` @@ -48,7 +50,7 @@ Kotlin: ```kotlin plugins { id("java") - id("com.yupzip.wsdl2java") version "2.3.2" + id("com.yupzip.wsdl2java") version "3.0.0" } ``` @@ -78,16 +80,16 @@ wsdl2java { ['-xjc','-b','bindingfile.xml','src/main/resources/wsdl/secondwsdl.wsdl'] ] locale = Locale.GERMANY - cxfVersion = "2.5.1" - cxfPluginVersion = "2.4.0" + cxfVersion = "4.0.0" + cxfPluginVersion = "4.0.0" } ``` Kotlin: ```kotlin -extra["cxfVersion"] = "3.3.2" -extra["cxfPluginVersion"] = "3.2.2" +extra["cxfVersion"] = "4.0.0" +extra["cxfPluginVersion"] = "4.0.0" wsdl2java { wsdlDir = file("$projectDir/src/main/wsdl") @@ -98,53 +100,98 @@ wsdl2java { } ``` -### Options for xsd2java (deprecated, separate plugin coming soon) - -This will not work for version 0.8+! - -| Option | Default value | Description | -| ------ | ------------- | ----------- | -| generatedXsdDir | "generatedsources/src/main/java" | Destination directory for generated sources | -| xsdsToGenerate | null | 2-d array consisting of 2 or 3 values in each array: 1. xsd-file(input), 2. package for the generated sources, 3. (optional) a map containing additional options for the xjc task | -| encoding | platform default encoding | Set the encoding name for generated sources, such as EUC-JP or UTF-8. | +## Example gradle configuration for Spring Boot 3+ with jakarta namespace +```groovy +plugins { + id "java" + id "org.springframework.boot" version "3.0.1" + id "io.spring.dependency-management" version "1.1.0" + id "com.yupzip.wsdl2java" version "3.0.0" +} -Example setting of options: +bootJar { + duplicatesStrategy(DuplicatesStrategy.WARN) +} -```groovy -xsd2java { - encoding = 'utf-8' - xsdsToGenerate = [ - ["src/main/resources/xsd/CustomersAndOrders.xsd", 'com.yupzip.xsd2java.sample', [header: false] /* optional map */] - ] - generatedXsdDir = file("generatedsources/xsd2java") +compileJava { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 + options.compilerArgs << '-parameters' } -``` -## Complete example usage -This is a an example of a working build.gradle for a java project. You can also take a look at the test resources, which contain two working projects. +sourceSets.main.java.srcDirs "src/generated-sources/java" -```groovy -plugins { - id 'java' - classpath 'com.yupzip:wsdl2java:2.3.2' +dependencies { + implementation 'org.springframework.boot:spring-boot-starter-actuator' + implementation 'org.springframework.boot:spring-boot-starter-data-jpa' + implementation 'org.springframework.boot:spring-boot-starter-security' + implementation 'org.springframework.boot:spring-boot-starter-web' + implementation 'org.springframework.boot:spring-boot-starter-web-services' + implementation 'org.springframework.ws:spring-ws-support:4.0.0' + // your project dependencies + + implementation 'com.sun.xml.bind:jaxb-impl:4.0.1' + implementation 'com.sun.xml.messaging.saaj:saaj-impl:3.0.0' + implementation 'com.sun.xml.ws:jaxws-ri:4.0.0' + + implementation 'io.swagger.core.v3:swagger-jaxrs2-jakarta:2.2.7' + + implementation 'jakarta.xml.bind:jakarta.xml.bind-api:4.0.0' + implementation 'jakarta.xml.soap:jakarta.xml.soap-api:3.0.0' + implementation 'jakarta.xml.ws:jakarta.xml.ws-api:4.0.0' + + implementation 'org.jvnet.jaxb2_commons:jaxb2-namespace-prefix:2.0' + implementation 'codes.rafael.jaxb2_commons:jaxb2-basics:3.0.0' + implementation 'codes.rafael.jaxb2_commons:jaxb2-basics-runtime:3.0.0' + + implementation 'org.apache.cxf.xjc-utils:cxf-xjc-runtime:4.0.0' + implementation 'org.glassfish.jaxb:jaxb-runtime:4.0.1' } -repositories { - mavenCentral() +configurations { + wsdl2java } dependencies { - testCompile 'junit:junit:+' + wsdl2java ( + 'com.sun.xml.bind:jaxb-impl:4.0.1', + 'org.apache.cxf.xjc-utils:cxf-xjc-runtime:4.0.0', + 'jakarta.xml.ws:jakarta.xml.ws-api:4.0.0', + 'com.sun.xml.ws:rt:4.0.0', + 'org.jvnet.jaxb2_commons:jaxb2-namespace-prefix:2.0', + 'codes.rafael.jaxb2_commons:jaxb2-basics-runtime:3.0.0', + 'codes.rafael.jaxb2_commons:jaxb2-basics:3.0.0' + ) } wsdl2java { + wsdlDir = file("$projectDir/src/main/resources/wsdl/") + stabilizeAndMergeObjectFactory = true + includeJava8XmlDependencies = false + cxfVersion = "4.0.0" + cxfPluginVersion = "4.0.0" wsdlsToGenerate = [ - ['-p', 'com.acme.mypackage', '-autoNameResolution', "$projectDir/src/main/resources/wsdl/stockqoute.wsdl"] + ['-xjc', + '-xjc-Xnamespace-prefix', + '-b',"$projectDir/src/main/resources/wsdl/wsdlBindings.xml", + '-b',"$projectDir/src/main/resources/wsdl/wsdlTypeDefBindings.xjb", + '-wsdlLocation', 'classPath:wsdl/myWsdl.wsdl', + '-p', 'my.package', + '-autoNameResolution', + '-verbose', + "$projectDir/src/main/resources/wsdl/WsgServiceOrderService.wsdl" + ], + ['-xjc', + '-xjc-Xnamespace-prefix', + '-b',"$projectDir/src/main/resources/wsdl/wsdlBindings2.xml", + '-b',"$projectDir/src/main/resources/wsdl/wsdlTypeDefBindings2.xjb", + '-wsdlLocation', 'classPath:wsdl/myWsdl2.wsdl', + '-p', 'my.package', + '-autoNameResolution', + '-verbose', + "$projectDir/src/main/resources/wsdl/myWsdl2.wsdl"] ] - wsdlDir = file("$projectDir/src/main/resources/wsdl") - locale = Locale.FRANCE - cxfVersion = "2.5.1" - cxfPluginVersion = "2.4.0" + generatedWsdlDir = file("src/generated-sources/java") } ``` @@ -183,7 +230,7 @@ wsdl2java{ } ``` -This example creates the hashCode and the equals method. +This example creates hashCode and equals methods. ### A notice on multi-module projects diff --git a/build.gradle b/build.gradle index 3f097c4..717f079 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ plugins { } group = 'com.yupzip' -version = '2.3.2' +version = '3.0.0' // stay compatible with the crowd sourceCompatibility = JavaVersion.VERSION_1_6 From 17b6a7d74e057ad0c16f9d26350c911e3a23113a Mon Sep 17 00:00:00 2001 From: yupzip Date: Fri, 13 Jan 2023 10:17:41 +1100 Subject: [PATCH 31/31] README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8fc08d3..61ea72b 100644 --- a/README.md +++ b/README.md @@ -179,7 +179,7 @@ wsdl2java { '-p', 'my.package', '-autoNameResolution', '-verbose', - "$projectDir/src/main/resources/wsdl/WsgServiceOrderService.wsdl" + "$projectDir/src/main/resources/wsdl/myWsdl.wsdl" ], ['-xjc', '-xjc-Xnamespace-prefix',