├── .gitignore ├── Idea plugins for cuke-jvm-sample.jpg ├── README.md ├── build.gradle ├── cuke-jvm-sample.ipr ├── cuke-jvm-sample.iws ├── gradlew ├── gradlew.bat ├── lib ├── aspectjrt-1.7.4.jar ├── aspectjtools-1.7.4.jar ├── commons-collections4-4.0.jar ├── cucumber-core-1.1.5.jar ├── cucumber-html-0.2.3.jar ├── cucumber-java-1.1.5.jar ├── cucumber-junit-1.1.5.jar ├── cucumber-jvm-deps-1.0.3.jar ├── cxf │ ├── FastInfoset-1.2.13.jar │ ├── WHICH_JARS │ ├── activemq-broker-5.9.0.jar │ ├── activemq-client-5.9.0.jar │ ├── activemq-openwire-legacy-5.9.0.jar │ ├── antlr-2.7.7.jar │ ├── aopalliance-1.0.jar │ ├── asm-3.3.1.jar │ ├── commons-codec-1.9.jar │ ├── commons-lang-2.6.jar │ ├── cxf-core-3.0.0-milestone2.jar │ ├── cxf-manifest.jar │ ├── cxf-rt-bindings-coloc-3.0.0-milestone2.jar │ ├── cxf-rt-bindings-corba-3.0.0-milestone2.jar │ ├── cxf-rt-bindings-object-3.0.0-milestone2.jar │ ├── cxf-rt-bindings-soap-3.0.0-milestone2.jar │ ├── cxf-rt-bindings-xml-3.0.0-milestone2.jar │ ├── cxf-rt-databinding-aegis-3.0.0-milestone2.jar │ ├── cxf-rt-databinding-jaxb-3.0.0-milestone2.jar │ ├── cxf-rt-databinding-jibx-3.0.0-milestone2.jar │ ├── cxf-rt-databinding-sdo-3.0.0-milestone2.jar │ ├── cxf-rt-databinding-xmlbeans-3.0.0-milestone2.jar │ ├── cxf-rt-features-clustering-3.0.0-milestone2.jar │ ├── cxf-rt-frontend-jaxrs-3.0.0-milestone2.jar │ ├── cxf-rt-frontend-jaxws-3.0.0-milestone2.jar │ ├── cxf-rt-frontend-js-3.0.0-milestone2.jar │ ├── cxf-rt-frontend-simple-3.0.0-milestone2.jar │ ├── cxf-rt-javascript-3.0.0-milestone2.jar │ ├── cxf-rt-management-3.0.0-milestone2.jar │ ├── cxf-rt-rs-client-3.0.0-milestone2.jar │ ├── cxf-rt-rs-extension-providers-3.0.0-milestone2.jar │ ├── cxf-rt-rs-extension-search-3.0.0-milestone2.jar │ ├── cxf-rt-rs-security-cors-3.0.0-milestone2.jar │ ├── cxf-rt-rs-security-oauth-3.0.0-milestone2.jar │ ├── cxf-rt-rs-security-oauth2-3.0.0-milestone2.jar │ ├── cxf-rt-rs-security-sso-saml-3.0.0-milestone2.jar │ ├── cxf-rt-rs-security-xml-3.0.0-milestone2.jar │ ├── cxf-rt-rs-service-description-3.0.0-milestone2.jar │ ├── cxf-rt-transports-http-3.0.0-milestone2.jar │ ├── cxf-rt-transports-http-hc-3.0.0-milestone2.jar │ ├── cxf-rt-transports-http-jetty-3.0.0-milestone2.jar │ ├── cxf-rt-transports-http-netty-client-3.0.0-milestone2.jar │ ├── cxf-rt-transports-http-netty-server-3.0.0-milestone2.jar │ ├── cxf-rt-transports-jms-3.0.0-milestone2.jar │ ├── cxf-rt-transports-local-3.0.0-milestone2.jar │ ├── cxf-rt-transports-udp-3.0.0-milestone2.jar │ ├── cxf-rt-ws-addr-3.0.0-milestone2.jar │ ├── cxf-rt-ws-mex-3.0.0-milestone2.jar │ ├── cxf-rt-ws-policy-3.0.0-milestone2.jar │ ├── cxf-rt-ws-rm-3.0.0-milestone2.jar │ ├── cxf-rt-ws-security-3.0.0-milestone2.jar │ ├── cxf-rt-wsdl-3.0.0-milestone2.jar │ ├── cxf-services-sts-core-3.0.0-milestone2.jar │ ├── cxf-services-ws-discovery-api-3.0.0-milestone2.jar │ ├── cxf-services-ws-discovery-service-3.0.0-milestone2.jar │ ├── cxf-services-wsn-api-3.0.0-milestone2.jar │ ├── cxf-services-wsn-core-3.0.0-milestone2.jar │ ├── cxf-tools-common-3.0.0-milestone2.jar │ ├── cxf-tools-corba-3.0.0-milestone2.jar │ ├── cxf-tools-java2ws-3.0.0-milestone2.jar │ ├── cxf-tools-misctools-3.0.0-milestone2.jar │ ├── cxf-tools-validator-3.0.0-milestone2.jar │ ├── cxf-tools-wadlto-jaxrs-3.0.0-milestone2.jar │ ├── cxf-tools-wsdlto-core-3.0.0-milestone2.jar │ ├── cxf-tools-wsdlto-databinding-jaxb-3.0.0-milestone2.jar │ ├── cxf-tools-wsdlto-frontend-javascript-3.0.0-milestone2.jar │ ├── cxf-tools-wsdlto-frontend-jaxws-3.0.0-milestone2.jar │ ├── cxf-xjc-boolean-2.7.0.jar │ ├── cxf-xjc-bug671-2.7.0.jar │ ├── cxf-xjc-dv-2.7.0.jar │ ├── cxf-xjc-javadoc-2.7.0.jar │ ├── cxf-xjc-runtime-2.7.0.jar │ ├── cxf-xjc-ts-2.7.0.jar │ ├── ehcache-2.7.4.jar │ ├── endorsed │ │ ├── geronimo-jaxws_2.2_spec-1.1.jar │ │ └── jaxb-api-2.2.7.jar │ ├── geronimo-j2ee-management_1.1_spec-1.0.1.jar │ ├── geronimo-javamail_1.4_spec-1.7.1.jar │ ├── geronimo-jaxws_2.2_spec-1.1.jar │ ├── geronimo-jms_1.1_spec-1.1.1.jar │ ├── geronimo-servlet_2.5_spec-1.1.2.jar │ ├── geronimo-servlet_3.0_spec-1.0.jar │ ├── hawtbuf-1.9.jar │ ├── httpasyncclient-4.0.jar │ ├── httpclient-4.3.2.jar │ ├── httpcore-4.3.1.jar │ ├── httpcore-nio-4.3.1.jar │ ├── integration │ │ └── cxf-integration-jca-3.0.0-milestone2.jar │ ├── istack-commons-runtime-2.16.jar │ ├── jasypt-1.9.0.jar │ ├── javax.annotation-api-1.2.jar │ ├── javax.ws.rs-api-2.0.jar │ ├── jaxb-api-2.2.7.jar │ ├── jaxb-core-2.2.7.jar │ ├── jaxb-impl-2.2.7.jar │ ├── jaxb-xjc-2.2.7.jar │ ├── jcl-over-slf4j-1.7.5.jar │ ├── jettison-1.3.5.jar │ ├── jetty-continuation-8.1.14.v20131031.jar │ ├── jetty-http-8.1.14.v20131031.jar │ ├── jetty-io-8.1.14.v20131031.jar │ ├── jetty-security-8.1.14.v20131031.jar │ ├── jetty-server-8.1.14.v20131031.jar │ ├── jetty-util-8.1.14.v20131031.jar │ ├── joda-time-2.2.jar │ ├── js-1.7R2.jar │ ├── mina-core-2.0.7.jar │ ├── neethi-3.0.3.jar │ ├── netty-buffer-4.0.7.Final.jar │ ├── netty-codec-4.0.7.Final.jar │ ├── netty-codec-http-4.0.7.Final.jar │ ├── netty-common-4.0.7.Final.jar │ ├── netty-handler-4.0.7.Final.jar │ ├── netty-transport-4.0.7.Final.jar │ ├── oauth-20100527.jar │ ├── oauth-provider-20100527.jar │ ├── opensaml-2.6.0.jar │ ├── openws-1.5.0.jar │ ├── serializer-2.7.1.jar │ ├── spring-aop-3.2.6.RELEASE.jar │ ├── spring-beans-3.2.6.RELEASE.jar │ ├── spring-context-3.2.6.RELEASE.jar │ ├── spring-core-3.2.6.RELEASE.jar │ ├── spring-expression-3.2.6.RELEASE.jar │ ├── spring-web-3.2.6.RELEASE.jar │ ├── stax2-api-3.1.1.jar │ ├── velocity-1.7.jar │ ├── woodstox-core-asl-4.2.0.jar │ ├── wsdl4j-1.6.3.jar │ ├── wss4j-bindings-wss10-2.0.0-rc1.jar │ ├── wss4j-bindings-wss11-2.0.0-rc1.jar │ ├── wss4j-bindings-wssc-2.0.0-rc1.jar │ ├── wss4j-bindings-wsu10-2.0.0-rc1.jar │ ├── wss4j-policy-2.0.0-rc1.jar │ ├── wss4j-ws-security-common-2.0.0-rc1.jar │ ├── wss4j-ws-security-dom-2.0.0-rc1-tests.jar │ ├── wss4j-ws-security-dom-2.0.0-rc1.jar │ ├── wss4j-ws-security-policy-stax-2.0.0-rc1.jar │ ├── wss4j-ws-security-stax-2.0.0-rc1.jar │ ├── xml-resolver-1.2.jar │ ├── xmlbeans-2.6.0.jar │ ├── xmlschema-core-2.1.0.jar │ ├── xmlsec-2.0.0-rc1.jar │ └── xmltooling-1.4.0.jar ├── gherkin-2.12.1.jar ├── gson-2.2.4.jar ├── jchronic-0.2.6.jar ├── json-path-0.9.0-sources.jar ├── json-path-0.9.0.jar ├── json-smart-1.2.jar ├── junit-4.11.jar ├── log4j-1.2.17.jar ├── original_cucumber-reporting-0.0.23.jar ├── selenium-server-standalone-2.40.0.jar ├── slf4j-api-1.7.5.jar ├── slf4j-nop-1.7.6.jar ├── totallylazy-1193.jar └── velocity-tools-2.0.jar └── src ├── main ├── java │ ├── MyAspects.java │ ├── businessLayer │ │ ├── Base.java │ │ ├── google │ │ │ └── search │ │ │ │ └── Search.java │ │ ├── weather │ │ │ └── Weather.java │ │ └── webserviceClients │ │ │ ├── currencyConvertor │ │ │ ├── ConversionRate.java │ │ │ ├── ConversionRateResponse.java │ │ │ ├── Currency.java │ │ │ ├── CurrencyConvertor.java │ │ │ ├── CurrencyConvertorHttpGet.java │ │ │ ├── CurrencyConvertorHttpGet_CurrencyConvertorHttpGet_Client.java │ │ │ ├── CurrencyConvertorHttpPost.java │ │ │ ├── CurrencyConvertorHttpPost_CurrencyConvertorHttpPost_Client.java │ │ │ ├── CurrencyConvertorSoap.java │ │ │ ├── CurrencyConvertorSoap_CurrencyConvertorSoap12_Client.java │ │ │ ├── CurrencyConvertorSoap_CurrencyConvertorSoap_Client.java │ │ │ ├── ObjectFactory.java │ │ │ └── package-info.java │ │ │ ├── globalWeather │ │ │ ├── GetCitiesByCountry.java │ │ │ ├── GetCitiesByCountryResponse.java │ │ │ ├── GetWeather.java │ │ │ ├── GetWeatherResponse.java │ │ │ ├── GlobalWeather.java │ │ │ ├── GlobalWeatherHttpGet.java │ │ │ ├── GlobalWeatherHttpGet_GlobalWeatherHttpGet_Client.java │ │ │ ├── GlobalWeatherHttpPost.java │ │ │ ├── GlobalWeatherHttpPost_GlobalWeatherHttpPost_Client.java │ │ │ ├── GlobalWeatherSoap.java │ │ │ ├── GlobalWeatherSoap_GlobalWeatherSoap12_Client.java │ │ │ ├── GlobalWeatherSoap_GlobalWeatherSoap_Client.java │ │ │ ├── ObjectFactory.java │ │ │ └── package-info.java │ │ │ └── periodicTable │ │ │ ├── GetAtomicNumber.java │ │ │ ├── GetAtomicNumberResponse.java │ │ │ ├── GetAtomicWeight.java │ │ │ ├── GetAtomicWeightResponse.java │ │ │ ├── GetAtoms.java │ │ │ ├── GetAtomsResponse.java │ │ │ ├── GetElementSymbol.java │ │ │ ├── GetElementSymbolResponse.java │ │ │ ├── ObjectFactory.java │ │ │ ├── Periodictable.java │ │ │ ├── PeriodictableHttpGet.java │ │ │ ├── PeriodictableHttpGet_PeriodictableHttpGet_Client.java │ │ │ ├── PeriodictableHttpPost.java │ │ │ ├── PeriodictableHttpPost_PeriodictableHttpPost_Client.java │ │ │ ├── PeriodictableSoap.java │ │ │ ├── PeriodictableSoap_PeriodictableSoap12_Client.java │ │ │ ├── PeriodictableSoap_PeriodictableSoap_Client.java │ │ │ └── package-info.java │ ├── pages │ │ ├── BasePage.java │ │ ├── PageUtils.java │ │ └── SearchPage.java │ └── utils │ │ ├── CustomAsserts.java │ │ ├── CustomHTMLReporter.java │ │ ├── DriverUtils.java │ │ ├── EntityUtils.java │ │ ├── FileUtils.java │ │ └── RuntimeUtils.java └── resources │ └── log4j.properties └── test ├── entities ├── addresses.json └── contact_info.json ├── java └── gradle │ └── cucumber │ ├── RunCukesTest.java │ └── steps │ ├── CreateCustomer.java │ ├── globalWeather │ └── GlobalWeatherSteps.java │ └── google │ └── SearchSteps.java └── resources ├── CreateIndividualCustomer.feature ├── google └── search.feature └── weather └── weather.feature /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/libraries/G*.xml 2 | .idea/workspace.xml 3 | .idea 4 | gradle 5 | .gradle 6 | build 7 | *.iml 8 | out 9 | target -------------------------------------------------------------------------------- /Idea plugins for cuke-jvm-sample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/Idea plugins for cuke-jvm-sample.jpg -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | cuke-jvm-sample 2 | =============== 3 | 4 | 5 | A sample Test Automation Framework to understand and use cucumber-jvm 6 | 7 | --------------- 8 | 9 | 10 | ## What is implemented in this sample Test Automation Framework? 11 | 12 | * Tests specified using [cucumber-jvm](http://cukes.info/install-cucumber-jvm.html) 13 | * Build tool: [Gradle](http://gradle.org/) 14 | * Programming language: [Groovy (for Gradle)](http://groovy.codehaus.org/) and Java 15 | * Test Data Management: Samples to use data-specified in feature files, AND use data from separate json files 16 | * Browser automation: Using [WebDriver](http://code.google.com/p/selenium/wiki/GettingStarted) for browser interaction 17 | * Web Service automation: Using [cxf library](http://cxf.apache.org/) to generate client code from web service WSDL files, 18 | and invoke methods on the same 19 | * Take screenshots on demand and save on disk 20 | * Integrated [cucumber-reports](https://github.com/masterthought/cucumber-reporting) to get 'pretty' and 'meaningful' reports from test execution 21 | * Using [apache logger](http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Logger.html) for storing test logs in files (and also report to console) 22 | * Using [aspectJ](http://eclipse.org/aspectj/) to do byte code injection to automatically log test trace to file. Also creating a separate benchmarks file to track time taken by each method. This information can be mapped separately in other tools like Excel to identify patterns of test execution. 23 | 24 | --------------- 25 | 26 | 27 | ## Usage Steps: 28 | 29 | ### Install / configure Gradle: 30 | 31 | **Gradle 1.11** - download from [here](http://www.gradle.org/downloads). See installation steps [here](http://www.gradle.org/installation). 32 | 33 | (You can use homebrew to install, or IntelliJ should be able to install for you) 34 | 35 | JVM: 1.6.0_65 (Apple Inc. 20.65-b04-462) 36 | 37 | OS: Mac OS X 10.9.1 x86_64 38 | 39 | ### IntelliJ IDEA 40 | 41 | * Import the existing folder into IntelliJ and it should ask you to set your JDK and Gradle and you should be able to use IntelliJ. 42 | * Once opened, you will want to install the 'Cucumber for Java' plugin from the Jetbrains repository which gives you syntax highlighting and ability to jump to steps. 43 | 44 | ### Dependent libraries 45 | 46 | All other dependent libraries are checked into the lib folder 47 | 48 | ### Running sample tests 49 | 50 | #### To run Cucumber tests 51 | gradle clean cucumber 52 | 53 | #### To create Java classes from WSDLs 54 | Specify the Web Service name + WSDL url in the wsdlList method in build.gradle file 55 | Run the command: 56 | gradle clean buildWSClients 57 | This command created Java classes for the specified WSDLs in the build/WebServiceClients directory 58 | Once created, manually move these classes to the package of choice 59 | - I have moved the curencyConvertor and the globalWeather clients to src/main/java/businessLayer package 60 | Update the package in all the client files after moving them in the new location 61 | Compile the code to ensure there is no file left from updating the package 62 | 63 | 64 | 65 | ### Reports 66 | 67 | Cucumber-html and junit reports are generated and available in 68 | 69 | build/reports 70 | 71 | ## Contact 72 | 73 | For any information about this sample project, send an email to abagmar@gmail.com 74 | 75 | --------------- -------------------------------------------------------------------------------- /build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | apply plugin: 'idea' 3 | 4 | configurations { 5 | ajc 6 | aspects 7 | aspectCompile 8 | compile { 9 | extendsFrom aspects 10 | } 11 | cucumberRuntime { 12 | extendsFrom testRuntime 13 | } 14 | } 15 | 16 | dependencies { 17 | ajc files('lib/aspectjtools-1.7.4.jar', 'lib/aspectjrt-1.7.4.jar') 18 | compile fileTree(dir: 'lib', include: ['**/*.jar']) 19 | runtime fileTree(dir: 'lib', include: ['**/*.jar']) 20 | } 21 | 22 | compileJava { 23 | println "*** compileJava" 24 | doLast { 25 | ant.taskdef( 26 | resource: "org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties", 27 | classpath: configurations.compile.asPath) 28 | ant.iajc(source: "1.6", target: "1.6", 29 | destDir: sourceSets.main.output.classesDir.absolutePath, 30 | maxmem: "512m", fork: "true", 31 | aspectPath: configurations.aspects.asPath, 32 | sourceRootCopyFilter: "src/**/*.java", 33 | classpath: "${configurations.compile.asPath};${configurations.aspectCompile.asPath}" ) { 34 | sourceroots { 35 | sourceSets.main.java.srcDirs.each { 36 | pathelement(location: it.absolutePath) 37 | } 38 | } 39 | } 40 | } 41 | } 42 | 43 | def defaultCukeArgs = ['--format', 'pretty', 44 | '--glue', 'gradle/cucumber', 'src/test/resources', 45 | '--format', 'html:build/reports/cucumber-html-report', 46 | '--format', 'junit:build/reports/cucumber-junit-report.xml', 47 | '--format', 'json:build/reports/cucumber-json-report.json'] 48 | 49 | task cucumber() { 50 | dependsOn assemble, compileTestJava 51 | println("All:") 52 | doLast { 53 | runTest(defaultCukeArgs) 54 | } 55 | } 56 | 57 | task cucumberws() { 58 | dependsOn assemble, compileTestJava 59 | println("WS:") 60 | doLast { 61 | runTest(defaultCukeArgs + ['--tags', '@webservice']) 62 | } 63 | } 64 | 65 | task cucumberui() { 66 | dependsOn assemble, compileTestJava 67 | println("UI:") 68 | doLast { 69 | runTest(defaultCukeArgs + ['--tags', '@browser']) 70 | } 71 | } 72 | 73 | task cucumberjson() { 74 | dependsOn assemble, compileTestJava 75 | println("Json:") 76 | doLast { 77 | runTest(defaultCukeArgs + ['--tags', '@json']) 78 | } 79 | } 80 | 81 | task scenarios() { 82 | dependsOn assemble, compileTestJava 83 | println("Get scenarios:") 84 | if ( project.hasProperty("run") ) { 85 | println("Found custom tags to execute: " + project.getProperty("run")) 86 | } 87 | doLast { 88 | runTest(defaultCukeArgs + ['-d', '--tags', project.getProperty("run")]) 89 | } 90 | } 91 | 92 | task custom() { 93 | dependsOn assemble, compileTestJava 94 | println("Custom tags:") 95 | if ( project.hasProperty("run") ) { 96 | println("Found custom tags to execute: " + project.getProperty("run")) 97 | } 98 | doLast { 99 | runTest(defaultCukeArgs + ['--tags', project.getProperty("run")]) 100 | } 101 | } 102 | 103 | def runTest(cukeArgs) { 104 | println "** Cucumber arguments: " +cukeArgs 105 | javaexec { 106 | main = "cucumber.api.cli.Main" 107 | jvmArgs '-Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger' 108 | classpath = configurations.cucumberRuntime + sourceSets.main.output + sourceSets.test.output 109 | args = cukeArgs 110 | } 111 | } 112 | 113 | task createHTMLReport() { 114 | println "** createHTMLReport: " 115 | dependsOn assemble, compileTestJava 116 | doLast { 117 | javaexec { 118 | main = "utils.CustomHTMLReporter" 119 | classpath = configurations.runtime + sourceSets.main.output + sourceSets.test.output 120 | } 121 | 122 | } 123 | } 124 | 125 | cucumberui.finalizedBy createHTMLReport 126 | cucumberws.finalizedBy createHTMLReport 127 | cucumberjson.finalizedBy createHTMLReport 128 | cucumber.finalizedBy createHTMLReport 129 | 130 | def wsdlList() { 131 | def globalWeatherWSDL = [name: "globalWeather", url: "http://www.webservicex.com/globalweather.asmx?WSDL"] 132 | def currencyConvertorWSDL = [name: "currencyConvertor", url: "http://www.webservicex.net/CurrencyConvertor.asmx?WSDL"] 133 | def periodicTableWSDL = [name: "periodicTable", url: "http://www.webservicex.net/periodictable.asmx?WSDL"] 134 | // [globalWeatherWSDL, currencyConvertorWSDL, periodicTableWSDL] 135 | [] 136 | } 137 | 138 | task buildWSClients() { 139 | wsdlList().each() { 140 | eachWSDLHash -> 141 | def name = eachWSDLHash.name 142 | def url = eachWSDLHash.url 143 | println "Creating Java Classes for WSDL: ${name} available at: ${url}" 144 | doLast { 145 | javaexec { 146 | main = "org.apache.cxf.tools.wsdlto.WSDLToJava" 147 | jvmArgs '-Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger' 148 | classpath = configurations.runtime 149 | args = ['-validate', '-keep', '-client', '-d', 'src/main/java', '-p', 150 | 'businessLayer.webserviceClients.' + 151 | name, 152 | url] 153 | } 154 | } 155 | }; 156 | } -------------------------------------------------------------------------------- /cuke-jvm-sample.ipr: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 86 | 87 | 88 | 1.6 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # For Cygwin, ensure paths are in UNIX format before anything is touched. 46 | if $cygwin ; then 47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 48 | fi 49 | 50 | # Attempt to set APP_HOME 51 | # Resolve links: $0 may be a link 52 | PRG="$0" 53 | # Need this for relative symlinks. 54 | while [ -h "$PRG" ] ; do 55 | ls=`ls -ld "$PRG"` 56 | link=`expr "$ls" : '.*-> \(.*\)$'` 57 | if expr "$link" : '/.*' > /dev/null; then 58 | PRG="$link" 59 | else 60 | PRG=`dirname "$PRG"`"/$link" 61 | fi 62 | done 63 | SAVED="`pwd`" 64 | cd "`dirname \"$PRG\"`/" >&- 65 | APP_HOME="`pwd -P`" 66 | cd "$SAVED" >&- 67 | 68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 69 | 70 | # Determine the Java command to use to start the JVM. 71 | if [ -n "$JAVA_HOME" ] ; then 72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 73 | # IBM's JDK on AIX uses strange locations for the executables 74 | JAVACMD="$JAVA_HOME/jre/sh/java" 75 | else 76 | JAVACMD="$JAVA_HOME/bin/java" 77 | fi 78 | if [ ! -x "$JAVACMD" ] ; then 79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 80 | 81 | Please set the JAVA_HOME variable in your environment to match the 82 | location of your Java installation." 83 | fi 84 | else 85 | JAVACMD="java" 86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 87 | 88 | Please set the JAVA_HOME variable in your environment to match the 89 | location of your Java installation." 90 | fi 91 | 92 | # Increase the maximum file descriptors if we can. 93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 94 | MAX_FD_LIMIT=`ulimit -H -n` 95 | if [ $? -eq 0 ] ; then 96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 97 | MAX_FD="$MAX_FD_LIMIT" 98 | fi 99 | ulimit -n $MAX_FD 100 | if [ $? -ne 0 ] ; then 101 | warn "Could not set maximum file descriptor limit: $MAX_FD" 102 | fi 103 | else 104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 105 | fi 106 | fi 107 | 108 | # For Darwin, add options to specify how the application appears in the dock 109 | if $darwin; then 110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 111 | fi 112 | 113 | # For Cygwin, switch paths to Windows format before running java 114 | if $cygwin ; then 115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 158 | function splitJvmOpts() { 159 | JVM_OPTS=("$@") 160 | } 161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 163 | 164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 165 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /lib/aspectjrt-1.7.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/aspectjrt-1.7.4.jar -------------------------------------------------------------------------------- /lib/aspectjtools-1.7.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/aspectjtools-1.7.4.jar -------------------------------------------------------------------------------- /lib/commons-collections4-4.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/commons-collections4-4.0.jar -------------------------------------------------------------------------------- /lib/cucumber-core-1.1.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cucumber-core-1.1.5.jar -------------------------------------------------------------------------------- /lib/cucumber-html-0.2.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cucumber-html-0.2.3.jar -------------------------------------------------------------------------------- /lib/cucumber-java-1.1.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cucumber-java-1.1.5.jar -------------------------------------------------------------------------------- /lib/cucumber-junit-1.1.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cucumber-junit-1.1.5.jar -------------------------------------------------------------------------------- /lib/cucumber-jvm-deps-1.0.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cucumber-jvm-deps-1.0.3.jar -------------------------------------------------------------------------------- /lib/cxf/FastInfoset-1.2.13.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/FastInfoset-1.2.13.jar -------------------------------------------------------------------------------- /lib/cxf/WHICH_JARS: -------------------------------------------------------------------------------- 1 | This directory includes the CXF jar, the CXF manifest jar, the required 2 | dependencies, and many optional dependencies. The "modules" directory 3 | contains the cxf.jar split up into smaller pieces if you wish to use only 4 | specific parts of CXF. 5 | 6 | The 'manifest jar' is a jar containing only a MANIFEST.MF with a classpath 7 | that calls in all the other jar. 8 | 9 | Jars marked with a [6] at the end are optional for Java 6 (update 4 or 10 | later is supported) as the functionality provided by those jars are 11 | provided in the JDK. 12 | 13 | Some users may prefer to use axis2-saaj.jar rather than saaj-impl.jar. Both are 14 | supported. 15 | 16 | The following jars are required for all CXF usage: 17 | - cxf.jar 18 | - commons-logging.jar 19 | - geronimo-activation.jar (Or the Sun equivalent) [6] 20 | - geronimo-annotation.jar (Or the Sun equivalent) [6] 21 | - geronimo-javamail.jar (Or the Sun equivalent) [6] 22 | (MAY be able to remove javamail if you don't use any MTOM/SAAJ type things) 23 | - geronimo-stax-api.jar (Or the Sun equivalent) [6] 24 | - neethi.jar 25 | - jaxb-api.jar [6] 26 | - jaxb-impl.jar (this is a [6] for normal runtime, but is required for 27 | tooling and the dynamic clients) 28 | - XmlSchema.jar 29 | - woodstox-core-asl.jar [6] or another StAX implementation 30 | - stax2-api-3.0.1.jar [6] for woodstox above 31 | - wsdl4j.jar 32 | 33 | The following jars are required for XML catalog support: 34 | - xml-resolver.jar 35 | 36 | For Java2WSDL and WSDL2Java: 37 | - The above jars 38 | - jaxb-xjc.jar 39 | - velocity.jar 40 | - commons-collections.jar 41 | - commons-lang.jar 42 | - cxf-xjc*.jar (optional, these are xjc extensions for providing enhanced 43 | JAXB code generation) 44 | 45 | For JAX-WS support: 46 | - geronimo-jaxws_2.2_spec-1.0.jar (Or the Sun equivalent) [6] 47 | - saaj-api.jar [6] 48 | - saaj-impl.jar [6] 49 | - asm.jar (semi-optional, helps with performance of wrapper types and is 50 | required when adding JAXB annotations onto the SEI methods and 51 | parameters.) 52 | 53 | For XML Configuration support: 54 | - aopalliance.jar 55 | - spring-beans.jar 56 | - spring-context.jar 57 | - spring-core.jar 58 | - FastInfoset.jar 59 | 60 | For hosting web services within WARs while using Spring-based CXFServlet: 61 | - spring.web.jar 62 | 63 | For standalone HTTP support: 64 | - geronimo-servlet.jar 65 | - jetty-*.jar 66 | - sl4j.jar & sl4j-jdk14.jar (optional - but improves logging) 67 | 68 | For Aegis support: 69 | - jdom.jar (optional, if you want to map xsd:anyType to JDOM) 70 | 71 | For XmlBeans databinding support: 72 | - xmlbeans.jar 73 | 74 | For WS-Security support: 75 | - bcprov-jdk15.jar 76 | - wss4j.jar 77 | - xmlsec.jar 78 | - ehcache-core.jar 79 | 80 | For SAML support in WS-Security 81 | - joda-time.jar 82 | - opensaml.jar 83 | - openws.jar 84 | - xmltooling.jar 85 | 86 | For JAX-RS support: 87 | - abdera* (optional: for AtomPub support, but also needed for the 88 | Management log browser console) 89 | - commons-codec.jar (Needed for Abdera) 90 | - jaxen.jar (Needed for Abdera) 91 | - axiom* (Needed for Abdera) 92 | - javax.ws.rs-apijar 93 | - jettison.jar (Needed for JSON services only) 94 | - oauth*.jar (Needed for OAuth support) 95 | 96 | For JMS transport 97 | - geronimo-jms.jar (Or the Sun equivalent) 98 | - spring-jms.jar 99 | - spring-tx.jar 100 | 101 | For the UDP transport 102 | - mina-core.jar 103 | 104 | For the Async HTTP client transport 105 | - commons-codec.jar 106 | - httpasyncclient.jar 107 | - httpcore.jar 108 | - httpclient.jar 109 | - httpcore-nio-4.2.2.jar 110 | 111 | For CORBA support: 112 | - antlr.jar 113 | 114 | For JavaScript functionality: 115 | - js.jar 116 | 117 | For schema validation with the Aegis data binding. 118 | 119 | - msv-core.jar (version 2010.1) 120 | - xsdlib:jar (version 2010.1) 121 | - isorelax.jar (version 20030108) 122 | - relaxngDatatype.jar (version 20020414) 123 | 124 | For the WS-Notification Service: 125 | - cxf-services-wsn-api.jar 126 | - cxf-services-wsn-core.jar 127 | 128 | For the CXF Security Token Service: 129 | - cxf-services-sts-core.jar 130 | 131 | For the WS-Discovery Service 132 | - cxf-ws-discovery-api.jar 133 | - cxf-ws-discovery-service.jar 134 | 135 | 136 | 137 | 138 | -------------------------------------------------------------------------------- /lib/cxf/activemq-broker-5.9.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/activemq-broker-5.9.0.jar -------------------------------------------------------------------------------- /lib/cxf/activemq-client-5.9.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/activemq-client-5.9.0.jar -------------------------------------------------------------------------------- /lib/cxf/activemq-openwire-legacy-5.9.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/activemq-openwire-legacy-5.9.0.jar -------------------------------------------------------------------------------- /lib/cxf/antlr-2.7.7.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/antlr-2.7.7.jar -------------------------------------------------------------------------------- /lib/cxf/aopalliance-1.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/aopalliance-1.0.jar -------------------------------------------------------------------------------- /lib/cxf/asm-3.3.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/asm-3.3.1.jar -------------------------------------------------------------------------------- /lib/cxf/commons-codec-1.9.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/commons-codec-1.9.jar -------------------------------------------------------------------------------- /lib/cxf/commons-lang-2.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/commons-lang-2.6.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-core-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-core-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-manifest.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-manifest.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-bindings-coloc-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-bindings-coloc-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-bindings-corba-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-bindings-corba-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-bindings-object-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-bindings-object-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-bindings-soap-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-bindings-soap-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-bindings-xml-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-bindings-xml-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-databinding-aegis-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-databinding-aegis-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-databinding-jaxb-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-databinding-jaxb-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-databinding-jibx-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-databinding-jibx-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-databinding-sdo-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-databinding-sdo-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-databinding-xmlbeans-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-databinding-xmlbeans-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-features-clustering-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-features-clustering-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-frontend-jaxrs-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-frontend-jaxrs-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-frontend-jaxws-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-frontend-jaxws-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-frontend-js-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-frontend-js-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-frontend-simple-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-frontend-simple-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-javascript-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-javascript-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-management-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-management-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-rs-client-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-rs-client-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-rs-extension-providers-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-rs-extension-providers-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-rs-extension-search-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-rs-extension-search-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-rs-security-cors-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-rs-security-cors-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-rs-security-oauth-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-rs-security-oauth-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-rs-security-oauth2-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-rs-security-oauth2-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-rs-security-sso-saml-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-rs-security-sso-saml-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-rs-security-xml-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-rs-security-xml-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-rs-service-description-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-rs-service-description-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-transports-http-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-transports-http-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-transports-http-hc-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-transports-http-hc-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-transports-http-jetty-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-transports-http-jetty-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-transports-http-netty-client-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-transports-http-netty-client-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-transports-http-netty-server-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-transports-http-netty-server-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-transports-jms-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-transports-jms-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-transports-local-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-transports-local-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-transports-udp-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-transports-udp-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-ws-addr-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-ws-addr-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-ws-mex-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-ws-mex-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-ws-policy-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-ws-policy-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-ws-rm-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-ws-rm-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-ws-security-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-ws-security-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-rt-wsdl-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-rt-wsdl-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-services-sts-core-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-services-sts-core-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-services-ws-discovery-api-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-services-ws-discovery-api-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-services-ws-discovery-service-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-services-ws-discovery-service-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-services-wsn-api-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-services-wsn-api-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-services-wsn-core-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-services-wsn-core-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-tools-common-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-tools-common-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-tools-corba-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-tools-corba-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-tools-java2ws-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-tools-java2ws-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-tools-misctools-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-tools-misctools-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-tools-validator-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-tools-validator-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-tools-wadlto-jaxrs-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-tools-wadlto-jaxrs-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-tools-wsdlto-core-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-tools-wsdlto-core-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-tools-wsdlto-databinding-jaxb-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-tools-wsdlto-databinding-jaxb-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-tools-wsdlto-frontend-javascript-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-tools-wsdlto-frontend-javascript-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-tools-wsdlto-frontend-jaxws-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-tools-wsdlto-frontend-jaxws-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-xjc-boolean-2.7.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-xjc-boolean-2.7.0.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-xjc-bug671-2.7.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-xjc-bug671-2.7.0.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-xjc-dv-2.7.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-xjc-dv-2.7.0.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-xjc-javadoc-2.7.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-xjc-javadoc-2.7.0.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-xjc-runtime-2.7.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-xjc-runtime-2.7.0.jar -------------------------------------------------------------------------------- /lib/cxf/cxf-xjc-ts-2.7.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/cxf-xjc-ts-2.7.0.jar -------------------------------------------------------------------------------- /lib/cxf/ehcache-2.7.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/ehcache-2.7.4.jar -------------------------------------------------------------------------------- /lib/cxf/endorsed/geronimo-jaxws_2.2_spec-1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/endorsed/geronimo-jaxws_2.2_spec-1.1.jar -------------------------------------------------------------------------------- /lib/cxf/endorsed/jaxb-api-2.2.7.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/endorsed/jaxb-api-2.2.7.jar -------------------------------------------------------------------------------- /lib/cxf/geronimo-j2ee-management_1.1_spec-1.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/geronimo-j2ee-management_1.1_spec-1.0.1.jar -------------------------------------------------------------------------------- /lib/cxf/geronimo-javamail_1.4_spec-1.7.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/geronimo-javamail_1.4_spec-1.7.1.jar -------------------------------------------------------------------------------- /lib/cxf/geronimo-jaxws_2.2_spec-1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/geronimo-jaxws_2.2_spec-1.1.jar -------------------------------------------------------------------------------- /lib/cxf/geronimo-jms_1.1_spec-1.1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/geronimo-jms_1.1_spec-1.1.1.jar -------------------------------------------------------------------------------- /lib/cxf/geronimo-servlet_2.5_spec-1.1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/geronimo-servlet_2.5_spec-1.1.2.jar -------------------------------------------------------------------------------- /lib/cxf/geronimo-servlet_3.0_spec-1.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/geronimo-servlet_3.0_spec-1.0.jar -------------------------------------------------------------------------------- /lib/cxf/hawtbuf-1.9.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/hawtbuf-1.9.jar -------------------------------------------------------------------------------- /lib/cxf/httpasyncclient-4.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/httpasyncclient-4.0.jar -------------------------------------------------------------------------------- /lib/cxf/httpclient-4.3.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/httpclient-4.3.2.jar -------------------------------------------------------------------------------- /lib/cxf/httpcore-4.3.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/httpcore-4.3.1.jar -------------------------------------------------------------------------------- /lib/cxf/httpcore-nio-4.3.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/httpcore-nio-4.3.1.jar -------------------------------------------------------------------------------- /lib/cxf/integration/cxf-integration-jca-3.0.0-milestone2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/integration/cxf-integration-jca-3.0.0-milestone2.jar -------------------------------------------------------------------------------- /lib/cxf/istack-commons-runtime-2.16.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/istack-commons-runtime-2.16.jar -------------------------------------------------------------------------------- /lib/cxf/jasypt-1.9.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/jasypt-1.9.0.jar -------------------------------------------------------------------------------- /lib/cxf/javax.annotation-api-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/javax.annotation-api-1.2.jar -------------------------------------------------------------------------------- /lib/cxf/javax.ws.rs-api-2.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/javax.ws.rs-api-2.0.jar -------------------------------------------------------------------------------- /lib/cxf/jaxb-api-2.2.7.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/jaxb-api-2.2.7.jar -------------------------------------------------------------------------------- /lib/cxf/jaxb-core-2.2.7.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/jaxb-core-2.2.7.jar -------------------------------------------------------------------------------- /lib/cxf/jaxb-impl-2.2.7.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/jaxb-impl-2.2.7.jar -------------------------------------------------------------------------------- /lib/cxf/jaxb-xjc-2.2.7.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/jaxb-xjc-2.2.7.jar -------------------------------------------------------------------------------- /lib/cxf/jcl-over-slf4j-1.7.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/jcl-over-slf4j-1.7.5.jar -------------------------------------------------------------------------------- /lib/cxf/jettison-1.3.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/jettison-1.3.5.jar -------------------------------------------------------------------------------- /lib/cxf/jetty-continuation-8.1.14.v20131031.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/jetty-continuation-8.1.14.v20131031.jar -------------------------------------------------------------------------------- /lib/cxf/jetty-http-8.1.14.v20131031.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/jetty-http-8.1.14.v20131031.jar -------------------------------------------------------------------------------- /lib/cxf/jetty-io-8.1.14.v20131031.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/jetty-io-8.1.14.v20131031.jar -------------------------------------------------------------------------------- /lib/cxf/jetty-security-8.1.14.v20131031.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/jetty-security-8.1.14.v20131031.jar -------------------------------------------------------------------------------- /lib/cxf/jetty-server-8.1.14.v20131031.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/jetty-server-8.1.14.v20131031.jar -------------------------------------------------------------------------------- /lib/cxf/jetty-util-8.1.14.v20131031.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/jetty-util-8.1.14.v20131031.jar -------------------------------------------------------------------------------- /lib/cxf/joda-time-2.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/joda-time-2.2.jar -------------------------------------------------------------------------------- /lib/cxf/js-1.7R2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/js-1.7R2.jar -------------------------------------------------------------------------------- /lib/cxf/mina-core-2.0.7.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/mina-core-2.0.7.jar -------------------------------------------------------------------------------- /lib/cxf/neethi-3.0.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/neethi-3.0.3.jar -------------------------------------------------------------------------------- /lib/cxf/netty-buffer-4.0.7.Final.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/netty-buffer-4.0.7.Final.jar -------------------------------------------------------------------------------- /lib/cxf/netty-codec-4.0.7.Final.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/netty-codec-4.0.7.Final.jar -------------------------------------------------------------------------------- /lib/cxf/netty-codec-http-4.0.7.Final.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/netty-codec-http-4.0.7.Final.jar -------------------------------------------------------------------------------- /lib/cxf/netty-common-4.0.7.Final.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/netty-common-4.0.7.Final.jar -------------------------------------------------------------------------------- /lib/cxf/netty-handler-4.0.7.Final.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/netty-handler-4.0.7.Final.jar -------------------------------------------------------------------------------- /lib/cxf/netty-transport-4.0.7.Final.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/netty-transport-4.0.7.Final.jar -------------------------------------------------------------------------------- /lib/cxf/oauth-20100527.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/oauth-20100527.jar -------------------------------------------------------------------------------- /lib/cxf/oauth-provider-20100527.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/oauth-provider-20100527.jar -------------------------------------------------------------------------------- /lib/cxf/opensaml-2.6.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/opensaml-2.6.0.jar -------------------------------------------------------------------------------- /lib/cxf/openws-1.5.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/openws-1.5.0.jar -------------------------------------------------------------------------------- /lib/cxf/serializer-2.7.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/serializer-2.7.1.jar -------------------------------------------------------------------------------- /lib/cxf/spring-aop-3.2.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/spring-aop-3.2.6.RELEASE.jar -------------------------------------------------------------------------------- /lib/cxf/spring-beans-3.2.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/spring-beans-3.2.6.RELEASE.jar -------------------------------------------------------------------------------- /lib/cxf/spring-context-3.2.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/spring-context-3.2.6.RELEASE.jar -------------------------------------------------------------------------------- /lib/cxf/spring-core-3.2.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/spring-core-3.2.6.RELEASE.jar -------------------------------------------------------------------------------- /lib/cxf/spring-expression-3.2.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/spring-expression-3.2.6.RELEASE.jar -------------------------------------------------------------------------------- /lib/cxf/spring-web-3.2.6.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/spring-web-3.2.6.RELEASE.jar -------------------------------------------------------------------------------- /lib/cxf/stax2-api-3.1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/stax2-api-3.1.1.jar -------------------------------------------------------------------------------- /lib/cxf/velocity-1.7.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/velocity-1.7.jar -------------------------------------------------------------------------------- /lib/cxf/woodstox-core-asl-4.2.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/woodstox-core-asl-4.2.0.jar -------------------------------------------------------------------------------- /lib/cxf/wsdl4j-1.6.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/wsdl4j-1.6.3.jar -------------------------------------------------------------------------------- /lib/cxf/wss4j-bindings-wss10-2.0.0-rc1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/wss4j-bindings-wss10-2.0.0-rc1.jar -------------------------------------------------------------------------------- /lib/cxf/wss4j-bindings-wss11-2.0.0-rc1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/wss4j-bindings-wss11-2.0.0-rc1.jar -------------------------------------------------------------------------------- /lib/cxf/wss4j-bindings-wssc-2.0.0-rc1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/wss4j-bindings-wssc-2.0.0-rc1.jar -------------------------------------------------------------------------------- /lib/cxf/wss4j-bindings-wsu10-2.0.0-rc1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/wss4j-bindings-wsu10-2.0.0-rc1.jar -------------------------------------------------------------------------------- /lib/cxf/wss4j-policy-2.0.0-rc1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/wss4j-policy-2.0.0-rc1.jar -------------------------------------------------------------------------------- /lib/cxf/wss4j-ws-security-common-2.0.0-rc1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/wss4j-ws-security-common-2.0.0-rc1.jar -------------------------------------------------------------------------------- /lib/cxf/wss4j-ws-security-dom-2.0.0-rc1-tests.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/wss4j-ws-security-dom-2.0.0-rc1-tests.jar -------------------------------------------------------------------------------- /lib/cxf/wss4j-ws-security-dom-2.0.0-rc1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/wss4j-ws-security-dom-2.0.0-rc1.jar -------------------------------------------------------------------------------- /lib/cxf/wss4j-ws-security-policy-stax-2.0.0-rc1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/wss4j-ws-security-policy-stax-2.0.0-rc1.jar -------------------------------------------------------------------------------- /lib/cxf/wss4j-ws-security-stax-2.0.0-rc1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/wss4j-ws-security-stax-2.0.0-rc1.jar -------------------------------------------------------------------------------- /lib/cxf/xml-resolver-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/xml-resolver-1.2.jar -------------------------------------------------------------------------------- /lib/cxf/xmlbeans-2.6.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/xmlbeans-2.6.0.jar -------------------------------------------------------------------------------- /lib/cxf/xmlschema-core-2.1.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/xmlschema-core-2.1.0.jar -------------------------------------------------------------------------------- /lib/cxf/xmlsec-2.0.0-rc1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/xmlsec-2.0.0-rc1.jar -------------------------------------------------------------------------------- /lib/cxf/xmltooling-1.4.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/cxf/xmltooling-1.4.0.jar -------------------------------------------------------------------------------- /lib/gherkin-2.12.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/gherkin-2.12.1.jar -------------------------------------------------------------------------------- /lib/gson-2.2.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/gson-2.2.4.jar -------------------------------------------------------------------------------- /lib/jchronic-0.2.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/jchronic-0.2.6.jar -------------------------------------------------------------------------------- /lib/json-path-0.9.0-sources.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/json-path-0.9.0-sources.jar -------------------------------------------------------------------------------- /lib/json-path-0.9.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/json-path-0.9.0.jar -------------------------------------------------------------------------------- /lib/json-smart-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/json-smart-1.2.jar -------------------------------------------------------------------------------- /lib/junit-4.11.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/junit-4.11.jar -------------------------------------------------------------------------------- /lib/log4j-1.2.17.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/log4j-1.2.17.jar -------------------------------------------------------------------------------- /lib/original_cucumber-reporting-0.0.23.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/original_cucumber-reporting-0.0.23.jar -------------------------------------------------------------------------------- /lib/selenium-server-standalone-2.40.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/selenium-server-standalone-2.40.0.jar -------------------------------------------------------------------------------- /lib/slf4j-api-1.7.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/slf4j-api-1.7.5.jar -------------------------------------------------------------------------------- /lib/slf4j-nop-1.7.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/slf4j-nop-1.7.6.jar -------------------------------------------------------------------------------- /lib/totallylazy-1193.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/totallylazy-1193.jar -------------------------------------------------------------------------------- /lib/velocity-tools-2.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anandbagmar/cuke-jvm-sample/c195a8941a0ccb0fa90c21df52133b5b699ade23/lib/velocity-tools-2.0.jar -------------------------------------------------------------------------------- /src/main/java/MyAspects.java: -------------------------------------------------------------------------------- 1 | import org.apache.log4j.Logger; 2 | import org.aspectj.lang.JoinPoint; 3 | import org.aspectj.lang.ProceedingJoinPoint; 4 | import org.aspectj.lang.annotation.After; 5 | import org.aspectj.lang.annotation.Around; 6 | import org.aspectj.lang.annotation.Aspect; 7 | import org.aspectj.lang.reflect.MethodSignature; 8 | import utils.CustomAsserts; 9 | 10 | import java.lang.reflect.Method; 11 | import java.util.Date; 12 | 13 | @Aspect 14 | public class MyAspects { 15 | @Around("execution(* *(..))") 16 | public Object doBasicProfiling(ProceedingJoinPoint proceedingJoinPoint) throws Throwable { 17 | Logger benchmarkLogger = Logger.getLogger("benchmarkLogger"); 18 | Logger logger = Logger.getLogger("testExecutionLogger"); 19 | MethodSignature signature = (MethodSignature) proceedingJoinPoint.getSignature(); 20 | String className = signature.getDeclaringTypeName(); 21 | Method method = signature.getMethod(); 22 | String methodName = method.getName(); 23 | if (!(className.contains("AbstractBase") || className.contains("webServiceProxies"))) { 24 | logger.info("Class: " + className + ", Method: " + methodName); 25 | } 26 | long startingTime = (new Date()).getTime(); 27 | Object retVal = proceedingJoinPoint.proceed(); 28 | long endTime = (new Date()).getTime(); 29 | benchmarkLogger.info(signature.getDeclaringTypeName() + " || " 30 | + methodName + " || " 31 | + ((endTime - startingTime) / 1000) + " || "); 32 | return retVal; 33 | } 34 | 35 | @Around("execution(* *CustomAsserts.assert*(..))") 36 | public void forHardAssertSkipTheUpcomingTests(ProceedingJoinPoint proceedingjoinpoint) { 37 | Logger logger = Logger.getLogger("testExecutionLogger"); 38 | MethodSignature signature = (MethodSignature) proceedingjoinpoint.getSignature(); 39 | String className = signature.getDeclaringTypeName(); 40 | Method method = signature.getMethod(); 41 | String methodName = method.getName(); 42 | if (System.getProperty("ASSERTION_ERROR") == null) { 43 | try { 44 | proceedingjoinpoint.proceed(); 45 | } catch (AssertionError aEx) { 46 | logger.info("Class: " + className + ", Method: " + methodName); 47 | logger.info("\n Exception :" + aEx.toString()); 48 | System.setProperty("ASSERTION_ERROR", "Assertion Found"); 49 | throw aEx; 50 | } catch (Throwable throwable) { 51 | throwable.printStackTrace(); 52 | } 53 | } 54 | } 55 | 56 | @After("execution(* specs.bpp.application.*.*.*Test.*(..))") 57 | public void forSoftAssertMarkThemAsFailedInHTML(JoinPoint jointPoint) throws Exception { 58 | Logger logger = Logger.getLogger("testExecutionLogger"); 59 | MethodSignature signature = (MethodSignature) jointPoint.getSignature(); 60 | String className = signature.getDeclaringTypeName(); 61 | Method method = signature.getMethod(); 62 | String methodName = method.getName(); 63 | 64 | if (className.contains("spec") ) { 65 | logger.info("Class: " + className + ", Method: " + methodName); 66 | String verificationErrors = String.valueOf(CustomAsserts.getVerificationFailures()); 67 | if(!(verificationErrors.equals("[]"))) { 68 | CustomAsserts.resetVerificationFailures(); 69 | throw new Exception(verificationErrors); 70 | } 71 | } 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/Base.java: -------------------------------------------------------------------------------- 1 | package businessLayer; 2 | 3 | import org.apache.log4j.Logger; 4 | import utils.RuntimeUtils; 5 | 6 | public class Base { 7 | protected Logger logger; 8 | 9 | public Base() { 10 | logger = (Logger) RuntimeUtils.retrieveState("logger"); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/google/search/Search.java: -------------------------------------------------------------------------------- 1 | package businessLayer.google.search; 2 | 3 | import businessLayer.Base; 4 | import pages.PageUtils; 5 | import pages.SearchPage; 6 | import utils.CustomAsserts; 7 | 8 | public class Search extends Base { 9 | 10 | public void navigateToSearchPage() { 11 | PageUtils.navigateTo("http://www.google.com"); 12 | } 13 | 14 | public void searchFor(String searchCriteria) { 15 | SearchPage searchPage = new SearchPage(); 16 | searchPage.searchFor(searchCriteria); 17 | } 18 | 19 | public void assertSearchResultsFound() { 20 | SearchPage searchPage = new SearchPage(); 21 | long numberOfSearchResults = searchPage.getNumberOfSearchResults(); 22 | CustomAsserts.assertTrue("Number of search results less than 100. Actual results: " + 23 | numberOfSearchResults, numberOfSearchResults > 100); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/weather/Weather.java: -------------------------------------------------------------------------------- 1 | package businessLayer.weather; 2 | 3 | import businessLayer.Base; 4 | import com.jayway.jsonpath.JsonPath; 5 | import businessLayer.webserviceClients.globalWeather.GlobalWeather; 6 | import businessLayer.webserviceClients.globalWeather.GlobalWeatherSoap; 7 | import utils.FileUtils; 8 | import utils.RuntimeUtils; 9 | 10 | import java.util.List; 11 | 12 | public class Weather extends Base { 13 | 14 | private final GlobalWeatherSoap weatherService; 15 | 16 | public Weather() { 17 | GlobalWeather globalWeather = new GlobalWeather(); 18 | this.weatherService = globalWeather.getGlobalWeatherSoap(); 19 | } 20 | 21 | public List getCities(String forCountry) { 22 | String citiesByCountry = this.weatherService.getCitiesByCountry(forCountry); 23 | String jsonString = FileUtils.convertStringToJsonString(citiesByCountry); 24 | List listOfCities = JsonPath.read(jsonString, "$.NewDataSet.Table[*].City"); 25 | logger.info("\tNumber of Cities: " + listOfCities.size()); 26 | RuntimeUtils.saveState("listOfCitiesFor" + forCountry, listOfCities); 27 | return listOfCities; 28 | } 29 | 30 | public void getWeatherForCities(int numberOfCities, String forCountry) { 31 | List listOfCities = (List) RuntimeUtils.retrieveState("listOfCitiesFor" + forCountry); 32 | for(int cityNumber=0; cityNumberJava class for anonymous complex type. 13 | * 14 | *

The following schema fragment specifies the expected content contained within this class. 15 | * 16 | *

17 |  * <complexType>
18 |  *   <complexContent>
19 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 |  *       <sequence>
21 |  *         <element name="FromCurrency" type="{http://www.webserviceX.NET/}Currency"/>
22 |  *         <element name="ToCurrency" type="{http://www.webserviceX.NET/}Currency"/>
23 |  *       </sequence>
24 |  *     </restriction>
25 |  *   </complexContent>
26 |  * </complexType>
27 |  * 
28 | * 29 | * 30 | */ 31 | @XmlAccessorType(XmlAccessType.FIELD) 32 | @XmlType(name = "", propOrder = { 33 | "fromCurrency", 34 | "toCurrency" 35 | }) 36 | @XmlRootElement(name = "ConversionRate") 37 | public class ConversionRate { 38 | 39 | @XmlElement(name = "FromCurrency", required = true) 40 | protected Currency fromCurrency; 41 | @XmlElement(name = "ToCurrency", required = true) 42 | protected Currency toCurrency; 43 | 44 | /** 45 | * Gets the value of the fromCurrency property. 46 | * 47 | * @return 48 | * possible object is 49 | * {@link Currency } 50 | * 51 | */ 52 | public Currency getFromCurrency() { 53 | return fromCurrency; 54 | } 55 | 56 | /** 57 | * Sets the value of the fromCurrency property. 58 | * 59 | * @param value 60 | * allowed object is 61 | * {@link Currency } 62 | * 63 | */ 64 | public void setFromCurrency(Currency value) { 65 | this.fromCurrency = value; 66 | } 67 | 68 | /** 69 | * Gets the value of the toCurrency property. 70 | * 71 | * @return 72 | * possible object is 73 | * {@link Currency } 74 | * 75 | */ 76 | public Currency getToCurrency() { 77 | return toCurrency; 78 | } 79 | 80 | /** 81 | * Sets the value of the toCurrency property. 82 | * 83 | * @param value 84 | * allowed object is 85 | * {@link Currency } 86 | * 87 | */ 88 | public void setToCurrency(Currency value) { 89 | this.toCurrency = value; 90 | } 91 | 92 | } 93 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/currencyConvertor/ConversionRateResponse.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.currencyConvertor; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlRootElement; 8 | import javax.xml.bind.annotation.XmlType; 9 | 10 | 11 | /** 12 | *

Java class for anonymous complex type. 13 | * 14 | *

The following schema fragment specifies the expected content contained within this class. 15 | * 16 | *

17 |  * <complexType>
18 |  *   <complexContent>
19 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 |  *       <sequence>
21 |  *         <element name="ConversionRateResult" type="{http://www.w3.org/2001/XMLSchema}double"/>
22 |  *       </sequence>
23 |  *     </restriction>
24 |  *   </complexContent>
25 |  * </complexType>
26 |  * 
27 | * 28 | * 29 | */ 30 | @XmlAccessorType(XmlAccessType.FIELD) 31 | @XmlType(name = "", propOrder = { 32 | "conversionRateResult" 33 | }) 34 | @XmlRootElement(name = "ConversionRateResponse") 35 | public class ConversionRateResponse { 36 | 37 | @XmlElement(name = "ConversionRateResult") 38 | protected double conversionRateResult; 39 | 40 | /** 41 | * Gets the value of the conversionRateResult property. 42 | * 43 | */ 44 | public double getConversionRateResult() { 45 | return conversionRateResult; 46 | } 47 | 48 | /** 49 | * Sets the value of the conversionRateResult property. 50 | * 51 | */ 52 | public void setConversionRateResult(double value) { 53 | this.conversionRateResult = value; 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/currencyConvertor/CurrencyConvertor.java: -------------------------------------------------------------------------------- 1 | package businessLayer.webserviceClients.currencyConvertor; 2 | 3 | import java.net.MalformedURLException; 4 | import java.net.URL; 5 | import javax.xml.namespace.QName; 6 | import javax.xml.ws.WebEndpoint; 7 | import javax.xml.ws.WebServiceClient; 8 | import javax.xml.ws.WebServiceFeature; 9 | import javax.xml.ws.Service; 10 | 11 | /** 12 | * This class was generated by Apache CXF 3.0.0-milestone2 13 | * 2014-03-14T14:08:47.028+05:30 14 | * Generated source version: 3.0.0-milestone2 15 | * 16 | */ 17 | @WebServiceClient(name = "CurrencyConvertor", 18 | wsdlLocation = "http://www.webservicex.net/CurrencyConvertor.asmx?WSDL", 19 | targetNamespace = "http://www.webserviceX.NET/") 20 | public class CurrencyConvertor extends Service { 21 | 22 | public final static URL WSDL_LOCATION; 23 | 24 | public final static QName SERVICE = new QName("http://www.webserviceX.NET/", "CurrencyConvertor"); 25 | public final static QName CurrencyConvertorHttpPost = new QName("http://www.webserviceX.NET/", "CurrencyConvertorHttpPost"); 26 | public final static QName CurrencyConvertorSoap = new QName("http://www.webserviceX.NET/", "CurrencyConvertorSoap"); 27 | public final static QName CurrencyConvertorSoap12 = new QName("http://www.webserviceX.NET/", "CurrencyConvertorSoap12"); 28 | public final static QName CurrencyConvertorHttpGet = new QName("http://www.webserviceX.NET/", "CurrencyConvertorHttpGet"); 29 | static { 30 | URL url = null; 31 | try { 32 | url = new URL("http://www.webservicex.net/CurrencyConvertor.asmx?WSDL"); 33 | } catch (MalformedURLException e) { 34 | java.util.logging.Logger.getLogger(CurrencyConvertor.class.getName()) 35 | .log(java.util.logging.Level.INFO, 36 | "Can not initialize the default wsdl from {0}", "http://www.webservicex.net/CurrencyConvertor.asmx?WSDL"); 37 | } 38 | WSDL_LOCATION = url; 39 | } 40 | 41 | public CurrencyConvertor(URL wsdlLocation) { 42 | super(wsdlLocation, SERVICE); 43 | } 44 | 45 | public CurrencyConvertor(URL wsdlLocation, QName serviceName) { 46 | super(wsdlLocation, serviceName); 47 | } 48 | 49 | public CurrencyConvertor() { 50 | super(WSDL_LOCATION, SERVICE); 51 | } 52 | 53 | 54 | /** 55 | * 56 | * @return 57 | * returns CurrencyConvertorHttpPost 58 | */ 59 | @WebEndpoint(name = "CurrencyConvertorHttpPost") 60 | public CurrencyConvertorHttpPost getCurrencyConvertorHttpPost() { 61 | return super.getPort(CurrencyConvertorHttpPost, CurrencyConvertorHttpPost.class); 62 | } 63 | 64 | /** 65 | * 66 | * @param features 67 | * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. 68 | * @return 69 | * returns CurrencyConvertorHttpPost 70 | */ 71 | @WebEndpoint(name = "CurrencyConvertorHttpPost") 72 | public CurrencyConvertorHttpPost getCurrencyConvertorHttpPost(WebServiceFeature... features) { 73 | return super.getPort(CurrencyConvertorHttpPost, CurrencyConvertorHttpPost.class, features); 74 | } 75 | /** 76 | * 77 | * @return 78 | * returns CurrencyConvertorSoap 79 | */ 80 | @WebEndpoint(name = "CurrencyConvertorSoap") 81 | public CurrencyConvertorSoap getCurrencyConvertorSoap() { 82 | return super.getPort(CurrencyConvertorSoap, CurrencyConvertorSoap.class); 83 | } 84 | 85 | /** 86 | * 87 | * @param features 88 | * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. 89 | * @return 90 | * returns CurrencyConvertorSoap 91 | */ 92 | @WebEndpoint(name = "CurrencyConvertorSoap") 93 | public CurrencyConvertorSoap getCurrencyConvertorSoap(WebServiceFeature... features) { 94 | return super.getPort(CurrencyConvertorSoap, CurrencyConvertorSoap.class, features); 95 | } 96 | /** 97 | * 98 | * @return 99 | * returns CurrencyConvertorSoap 100 | */ 101 | @WebEndpoint(name = "CurrencyConvertorSoap12") 102 | public CurrencyConvertorSoap getCurrencyConvertorSoap12() { 103 | return super.getPort(CurrencyConvertorSoap12, CurrencyConvertorSoap.class); 104 | } 105 | 106 | /** 107 | * 108 | * @param features 109 | * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. 110 | * @return 111 | * returns CurrencyConvertorSoap 112 | */ 113 | @WebEndpoint(name = "CurrencyConvertorSoap12") 114 | public CurrencyConvertorSoap getCurrencyConvertorSoap12(WebServiceFeature... features) { 115 | return super.getPort(CurrencyConvertorSoap12, CurrencyConvertorSoap.class, features); 116 | } 117 | /** 118 | * 119 | * @return 120 | * returns CurrencyConvertorHttpGet 121 | */ 122 | @WebEndpoint(name = "CurrencyConvertorHttpGet") 123 | public CurrencyConvertorHttpGet getCurrencyConvertorHttpGet() { 124 | return super.getPort(CurrencyConvertorHttpGet, CurrencyConvertorHttpGet.class); 125 | } 126 | 127 | /** 128 | * 129 | * @param features 130 | * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. 131 | * @return 132 | * returns CurrencyConvertorHttpGet 133 | */ 134 | @WebEndpoint(name = "CurrencyConvertorHttpGet") 135 | public CurrencyConvertorHttpGet getCurrencyConvertorHttpGet(WebServiceFeature... features) { 136 | return super.getPort(CurrencyConvertorHttpGet, CurrencyConvertorHttpGet.class, features); 137 | } 138 | 139 | } 140 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/currencyConvertor/CurrencyConvertorHttpGet.java: -------------------------------------------------------------------------------- 1 | package businessLayer.webserviceClients.currencyConvertor; 2 | 3 | import javax.jws.WebMethod; 4 | import javax.jws.WebParam; 5 | import javax.jws.WebResult; 6 | import javax.jws.WebService; 7 | import javax.jws.soap.SOAPBinding; 8 | import javax.xml.bind.annotation.XmlSeeAlso; 9 | 10 | /** 11 | * This class was generated by Apache CXF 3.0.0-milestone2 12 | * 2014-03-14T14:08:47.020+05:30 13 | * Generated source version: 3.0.0-milestone2 14 | * 15 | */ 16 | @WebService(targetNamespace = "http://www.webserviceX.NET/", name = "CurrencyConvertorHttpGet") 17 | @XmlSeeAlso({ObjectFactory.class}) 18 | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) 19 | public interface CurrencyConvertorHttpGet { 20 | 21 | /** 22 | *
Get conversion rate from one currency to another currency

Differenct currency Code and Names around the world

AFA-Afghanistan Afghani
ALL-Albanian Lek
DZD-Algerian Dinar
ARS-Argentine Peso
AWG-Aruba Florin
AUD-Australian Dollar
BSD-Bahamian Dollar
BHD-Bahraini Dinar
BDT-Bangladesh Taka
BBD-Barbados Dollar
BZD-Belize Dollar
BMD-Bermuda Dollar
BTN-Bhutan Ngultrum
BOB-Bolivian Boliviano
BWP-Botswana Pula
BRL-Brazilian Real
GBP-British Pound
BND-Brunei Dollar
BIF-Burundi Franc
XOF-CFA Franc (BCEAO)
XAF-CFA Franc (BEAC)
KHR-Cambodia Riel
CAD-Canadian Dollar
CVE-Cape Verde Escudo
KYD-Cayman Islands Dollar
CLP-Chilean Peso
CNY-Chinese Yuan
COP-Colombian Peso
KMF-Comoros Franc
CRC-Costa Rica Colon
HRK-Croatian Kuna
CUP-Cuban Peso
CYP-Cyprus Pound
CZK-Czech Koruna
DKK-Danish Krone
DJF-Dijibouti Franc
DOP-Dominican Peso
XCD-East Caribbean Dollar
EGP-Egyptian Pound
SVC-El Salvador Colon
EEK-Estonian Kroon
ETB-Ethiopian Birr
EUR-Euro
FKP-Falkland Islands Pound
GMD-Gambian Dalasi
GHC-Ghanian Cedi
GIP-Gibraltar Pound
XAU-Gold Ounces
GTQ-Guatemala Quetzal
GNF-Guinea Franc
GYD-Guyana Dollar
HTG-Haiti Gourde
HNL-Honduras Lempira
HKD-Hong Kong Dollar
HUF-Hungarian Forint
ISK-Iceland Krona
INR-Indian Rupee
IDR-Indonesian Rupiah
IQD-Iraqi Dinar
ILS-Israeli Shekel
JMD-Jamaican Dollar
JPY-Japanese Yen
JOD-Jordanian Dinar
KZT-Kazakhstan Tenge
KES-Kenyan Shilling
KRW-Korean Won
KWD-Kuwaiti Dinar
LAK-Lao Kip
LVL-Latvian Lat
LBP-Lebanese Pound
LSL-Lesotho Loti
LRD-Liberian Dollar
LYD-Libyan Dinar
LTL-Lithuanian Lita
MOP-Macau Pataca
MKD-Macedonian Denar
MGF-Malagasy Franc
MWK-Malawi Kwacha
MYR-Malaysian Ringgit
MVR-Maldives Rufiyaa
MTL-Maltese Lira
MRO-Mauritania Ougulya
MUR-Mauritius Rupee
MXN-Mexican Peso
MDL-Moldovan Leu
MNT-Mongolian Tugrik
MAD-Moroccan Dirham
MZM-Mozambique Metical
MMK-Myanmar Kyat
NAD-Namibian Dollar
NPR-Nepalese Rupee
ANG-Neth Antilles Guilder
NZD-New Zealand Dollar
NIO-Nicaragua Cordoba
NGN-Nigerian Naira
KPW-North Korean Won
NOK-Norwegian Krone
OMR-Omani Rial
XPF-Pacific Franc
PKR-Pakistani Rupee
XPD-Palladium Ounces
PAB-Panama Balboa
PGK-Papua New Guinea Kina
PYG-Paraguayan Guarani
PEN-Peruvian Nuevo Sol
PHP-Philippine Peso
XPT-Platinum Ounces
PLN-Polish Zloty
QAR-Qatar Rial
ROL-Romanian Leu
RUB-Russian Rouble
WST-Samoa Tala
STD-Sao Tome Dobra
SAR-Saudi Arabian Riyal
SCR-Seychelles Rupee
SLL-Sierra Leone Leone
XAG-Silver Ounces
SGD-Singapore Dollar
SKK-Slovak Koruna
SIT-Slovenian Tolar
SBD-Solomon Islands Dollar
SOS-Somali Shilling
ZAR-South African Rand
LKR-Sri Lanka Rupee
SHP-St Helena Pound
SDD-Sudanese Dinar
SRG-Surinam Guilder
SZL-Swaziland Lilageni
SEK-Swedish Krona
TRY-Turkey Lira
CHF-Swiss Franc
SYP-Syrian Pound
TWD-Taiwan Dollar
TZS-Tanzanian Shilling
THB-Thai Baht
TOP-Tonga Pa'anga
TTD-Trinidad&amp;Tobago Dollar
TND-Tunisian Dinar
TRL-Turkish Lira
USD-U.S. Dollar
AED-UAE Dirham
UGX-Ugandan Shilling
UAH-Ukraine Hryvnia
UYU-Uruguayan New Peso
VUV-Vanuatu Vatu
VEB-Venezuelan Bolivar
VND-Vietnam Dong
YER-Yemen Riyal
YUM-Yugoslav Dinar
ZMK-Zambian Kwacha
ZWD-Zimbabwe Dollar

23 | */ 24 | @WebResult(name = "double", targetNamespace = "http://www.webserviceX.NET/", partName = "Body") 25 | @WebMethod(operationName = "ConversionRate") 26 | public double conversionRate( 27 | @WebParam(partName = "FromCurrency", name = "FromCurrency", targetNamespace = "http://www.webserviceX.NET/") 28 | java.lang.String fromCurrency, 29 | @WebParam(partName = "ToCurrency", name = "ToCurrency", targetNamespace = "http://www.webserviceX.NET/") 30 | java.lang.String toCurrency 31 | ); 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/currencyConvertor/CurrencyConvertorHttpGet_CurrencyConvertorHttpGet_Client.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.currencyConvertor; 3 | 4 | /** 5 | * Please modify this class to meet your needs 6 | * This class is not complete 7 | */ 8 | 9 | import java.io.File; 10 | import java.net.MalformedURLException; 11 | import java.net.URL; 12 | import javax.xml.namespace.QName; 13 | 14 | /** 15 | * This class was generated by Apache CXF 3.0.0-milestone2 16 | * 2014-03-14T14:08:46.986+05:30 17 | * Generated source version: 3.0.0-milestone2 18 | * 19 | */ 20 | public final class CurrencyConvertorHttpGet_CurrencyConvertorHttpGet_Client { 21 | 22 | private static final QName SERVICE_NAME = new QName("http://www.webserviceX.NET/", "CurrencyConvertor"); 23 | 24 | private CurrencyConvertorHttpGet_CurrencyConvertorHttpGet_Client() { 25 | } 26 | 27 | public static void main(String args[]) throws java.lang.Exception { 28 | URL wsdlURL = CurrencyConvertor.WSDL_LOCATION; 29 | if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 30 | File wsdlFile = new File(args[0]); 31 | try { 32 | if (wsdlFile.exists()) { 33 | wsdlURL = wsdlFile.toURI().toURL(); 34 | } else { 35 | wsdlURL = new URL(args[0]); 36 | } 37 | } catch (MalformedURLException e) { 38 | e.printStackTrace(); 39 | } 40 | } 41 | 42 | CurrencyConvertor ss = new CurrencyConvertor(wsdlURL, SERVICE_NAME); 43 | CurrencyConvertorHttpGet port = ss.getCurrencyConvertorHttpGet(); 44 | 45 | { 46 | System.out.println("Invoking conversionRate..."); 47 | java.lang.String _conversionRate_fromCurrency = ""; 48 | java.lang.String _conversionRate_toCurrency = ""; 49 | double _conversionRate__return = port.conversionRate(_conversionRate_fromCurrency, _conversionRate_toCurrency); 50 | System.out.println("conversionRate.result=" + _conversionRate__return); 51 | 52 | 53 | } 54 | 55 | System.exit(0); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/currencyConvertor/CurrencyConvertorHttpPost.java: -------------------------------------------------------------------------------- 1 | package businessLayer.webserviceClients.currencyConvertor; 2 | 3 | import javax.jws.WebMethod; 4 | import javax.jws.WebParam; 5 | import javax.jws.WebResult; 6 | import javax.jws.WebService; 7 | import javax.jws.soap.SOAPBinding; 8 | import javax.xml.bind.annotation.XmlSeeAlso; 9 | 10 | /** 11 | * This class was generated by Apache CXF 3.0.0-milestone2 12 | * 2014-03-14T14:08:47.001+05:30 13 | * Generated source version: 3.0.0-milestone2 14 | * 15 | */ 16 | @WebService(targetNamespace = "http://www.webserviceX.NET/", name = "CurrencyConvertorHttpPost") 17 | @XmlSeeAlso({ObjectFactory.class}) 18 | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) 19 | public interface CurrencyConvertorHttpPost { 20 | 21 | /** 22 | *
Get conversion rate from one currency to another currency

Differenct currency Code and Names around the world

AFA-Afghanistan Afghani
ALL-Albanian Lek
DZD-Algerian Dinar
ARS-Argentine Peso
AWG-Aruba Florin
AUD-Australian Dollar
BSD-Bahamian Dollar
BHD-Bahraini Dinar
BDT-Bangladesh Taka
BBD-Barbados Dollar
BZD-Belize Dollar
BMD-Bermuda Dollar
BTN-Bhutan Ngultrum
BOB-Bolivian Boliviano
BWP-Botswana Pula
BRL-Brazilian Real
GBP-British Pound
BND-Brunei Dollar
BIF-Burundi Franc
XOF-CFA Franc (BCEAO)
XAF-CFA Franc (BEAC)
KHR-Cambodia Riel
CAD-Canadian Dollar
CVE-Cape Verde Escudo
KYD-Cayman Islands Dollar
CLP-Chilean Peso
CNY-Chinese Yuan
COP-Colombian Peso
KMF-Comoros Franc
CRC-Costa Rica Colon
HRK-Croatian Kuna
CUP-Cuban Peso
CYP-Cyprus Pound
CZK-Czech Koruna
DKK-Danish Krone
DJF-Dijibouti Franc
DOP-Dominican Peso
XCD-East Caribbean Dollar
EGP-Egyptian Pound
SVC-El Salvador Colon
EEK-Estonian Kroon
ETB-Ethiopian Birr
EUR-Euro
FKP-Falkland Islands Pound
GMD-Gambian Dalasi
GHC-Ghanian Cedi
GIP-Gibraltar Pound
XAU-Gold Ounces
GTQ-Guatemala Quetzal
GNF-Guinea Franc
GYD-Guyana Dollar
HTG-Haiti Gourde
HNL-Honduras Lempira
HKD-Hong Kong Dollar
HUF-Hungarian Forint
ISK-Iceland Krona
INR-Indian Rupee
IDR-Indonesian Rupiah
IQD-Iraqi Dinar
ILS-Israeli Shekel
JMD-Jamaican Dollar
JPY-Japanese Yen
JOD-Jordanian Dinar
KZT-Kazakhstan Tenge
KES-Kenyan Shilling
KRW-Korean Won
KWD-Kuwaiti Dinar
LAK-Lao Kip
LVL-Latvian Lat
LBP-Lebanese Pound
LSL-Lesotho Loti
LRD-Liberian Dollar
LYD-Libyan Dinar
LTL-Lithuanian Lita
MOP-Macau Pataca
MKD-Macedonian Denar
MGF-Malagasy Franc
MWK-Malawi Kwacha
MYR-Malaysian Ringgit
MVR-Maldives Rufiyaa
MTL-Maltese Lira
MRO-Mauritania Ougulya
MUR-Mauritius Rupee
MXN-Mexican Peso
MDL-Moldovan Leu
MNT-Mongolian Tugrik
MAD-Moroccan Dirham
MZM-Mozambique Metical
MMK-Myanmar Kyat
NAD-Namibian Dollar
NPR-Nepalese Rupee
ANG-Neth Antilles Guilder
NZD-New Zealand Dollar
NIO-Nicaragua Cordoba
NGN-Nigerian Naira
KPW-North Korean Won
NOK-Norwegian Krone
OMR-Omani Rial
XPF-Pacific Franc
PKR-Pakistani Rupee
XPD-Palladium Ounces
PAB-Panama Balboa
PGK-Papua New Guinea Kina
PYG-Paraguayan Guarani
PEN-Peruvian Nuevo Sol
PHP-Philippine Peso
XPT-Platinum Ounces
PLN-Polish Zloty
QAR-Qatar Rial
ROL-Romanian Leu
RUB-Russian Rouble
WST-Samoa Tala
STD-Sao Tome Dobra
SAR-Saudi Arabian Riyal
SCR-Seychelles Rupee
SLL-Sierra Leone Leone
XAG-Silver Ounces
SGD-Singapore Dollar
SKK-Slovak Koruna
SIT-Slovenian Tolar
SBD-Solomon Islands Dollar
SOS-Somali Shilling
ZAR-South African Rand
LKR-Sri Lanka Rupee
SHP-St Helena Pound
SDD-Sudanese Dinar
SRG-Surinam Guilder
SZL-Swaziland Lilageni
SEK-Swedish Krona
TRY-Turkey Lira
CHF-Swiss Franc
SYP-Syrian Pound
TWD-Taiwan Dollar
TZS-Tanzanian Shilling
THB-Thai Baht
TOP-Tonga Pa'anga
TTD-Trinidad&amp;Tobago Dollar
TND-Tunisian Dinar
TRL-Turkish Lira
USD-U.S. Dollar
AED-UAE Dirham
UGX-Ugandan Shilling
UAH-Ukraine Hryvnia
UYU-Uruguayan New Peso
VUV-Vanuatu Vatu
VEB-Venezuelan Bolivar
VND-Vietnam Dong
YER-Yemen Riyal
YUM-Yugoslav Dinar
ZMK-Zambian Kwacha
ZWD-Zimbabwe Dollar

23 | */ 24 | @WebResult(name = "double", targetNamespace = "http://www.webserviceX.NET/", partName = "Body") 25 | @WebMethod(operationName = "ConversionRate") 26 | public double conversionRate( 27 | @WebParam(partName = "FromCurrency", name = "FromCurrency", targetNamespace = "http://www.webserviceX.NET/") 28 | java.lang.String fromCurrency, 29 | @WebParam(partName = "ToCurrency", name = "ToCurrency", targetNamespace = "http://www.webserviceX.NET/") 30 | java.lang.String toCurrency 31 | ); 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/currencyConvertor/CurrencyConvertorHttpPost_CurrencyConvertorHttpPost_Client.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.currencyConvertor; 3 | 4 | /** 5 | * Please modify this class to meet your needs 6 | * This class is not complete 7 | */ 8 | 9 | import java.io.File; 10 | import java.net.MalformedURLException; 11 | import java.net.URL; 12 | import javax.xml.namespace.QName; 13 | 14 | /** 15 | * This class was generated by Apache CXF 3.0.0-milestone2 16 | * 2014-03-14T14:08:46.899+05:30 17 | * Generated source version: 3.0.0-milestone2 18 | * 19 | */ 20 | public final class CurrencyConvertorHttpPost_CurrencyConvertorHttpPost_Client { 21 | 22 | private static final QName SERVICE_NAME = new QName("http://www.webserviceX.NET/", "CurrencyConvertor"); 23 | 24 | private CurrencyConvertorHttpPost_CurrencyConvertorHttpPost_Client() { 25 | } 26 | 27 | public static void main(String args[]) throws java.lang.Exception { 28 | URL wsdlURL = CurrencyConvertor.WSDL_LOCATION; 29 | if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 30 | File wsdlFile = new File(args[0]); 31 | try { 32 | if (wsdlFile.exists()) { 33 | wsdlURL = wsdlFile.toURI().toURL(); 34 | } else { 35 | wsdlURL = new URL(args[0]); 36 | } 37 | } catch (MalformedURLException e) { 38 | e.printStackTrace(); 39 | } 40 | } 41 | 42 | CurrencyConvertor ss = new CurrencyConvertor(wsdlURL, SERVICE_NAME); 43 | CurrencyConvertorHttpPost port = ss.getCurrencyConvertorHttpPost(); 44 | 45 | { 46 | System.out.println("Invoking conversionRate..."); 47 | java.lang.String _conversionRate_fromCurrency = ""; 48 | java.lang.String _conversionRate_toCurrency = ""; 49 | double _conversionRate__return = port.conversionRate(_conversionRate_fromCurrency, _conversionRate_toCurrency); 50 | System.out.println("conversionRate.result=" + _conversionRate__return); 51 | 52 | 53 | } 54 | 55 | System.exit(0); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/currencyConvertor/CurrencyConvertorSoap.java: -------------------------------------------------------------------------------- 1 | package businessLayer.webserviceClients.currencyConvertor; 2 | 3 | import javax.jws.WebMethod; 4 | import javax.jws.WebParam; 5 | import javax.jws.WebResult; 6 | import javax.jws.WebService; 7 | import javax.xml.bind.annotation.XmlSeeAlso; 8 | import javax.xml.ws.RequestWrapper; 9 | import javax.xml.ws.ResponseWrapper; 10 | 11 | /** 12 | * This class was generated by Apache CXF 3.0.0-milestone2 13 | * 2014-03-14T14:08:47.013+05:30 14 | * Generated source version: 3.0.0-milestone2 15 | * 16 | */ 17 | @WebService(targetNamespace = "http://www.webserviceX.NET/", name = "CurrencyConvertorSoap") 18 | @XmlSeeAlso({ObjectFactory.class}) 19 | public interface CurrencyConvertorSoap { 20 | 21 | /** 22 | *
Get conversion rate from one currency to another currency

Differenct currency Code and Names around the world

AFA-Afghanistan Afghani
ALL-Albanian Lek
DZD-Algerian Dinar
ARS-Argentine Peso
AWG-Aruba Florin
AUD-Australian Dollar
BSD-Bahamian Dollar
BHD-Bahraini Dinar
BDT-Bangladesh Taka
BBD-Barbados Dollar
BZD-Belize Dollar
BMD-Bermuda Dollar
BTN-Bhutan Ngultrum
BOB-Bolivian Boliviano
BWP-Botswana Pula
BRL-Brazilian Real
GBP-British Pound
BND-Brunei Dollar
BIF-Burundi Franc
XOF-CFA Franc (BCEAO)
XAF-CFA Franc (BEAC)
KHR-Cambodia Riel
CAD-Canadian Dollar
CVE-Cape Verde Escudo
KYD-Cayman Islands Dollar
CLP-Chilean Peso
CNY-Chinese Yuan
COP-Colombian Peso
KMF-Comoros Franc
CRC-Costa Rica Colon
HRK-Croatian Kuna
CUP-Cuban Peso
CYP-Cyprus Pound
CZK-Czech Koruna
DKK-Danish Krone
DJF-Dijibouti Franc
DOP-Dominican Peso
XCD-East Caribbean Dollar
EGP-Egyptian Pound
SVC-El Salvador Colon
EEK-Estonian Kroon
ETB-Ethiopian Birr
EUR-Euro
FKP-Falkland Islands Pound
GMD-Gambian Dalasi
GHC-Ghanian Cedi
GIP-Gibraltar Pound
XAU-Gold Ounces
GTQ-Guatemala Quetzal
GNF-Guinea Franc
GYD-Guyana Dollar
HTG-Haiti Gourde
HNL-Honduras Lempira
HKD-Hong Kong Dollar
HUF-Hungarian Forint
ISK-Iceland Krona
INR-Indian Rupee
IDR-Indonesian Rupiah
IQD-Iraqi Dinar
ILS-Israeli Shekel
JMD-Jamaican Dollar
JPY-Japanese Yen
JOD-Jordanian Dinar
KZT-Kazakhstan Tenge
KES-Kenyan Shilling
KRW-Korean Won
KWD-Kuwaiti Dinar
LAK-Lao Kip
LVL-Latvian Lat
LBP-Lebanese Pound
LSL-Lesotho Loti
LRD-Liberian Dollar
LYD-Libyan Dinar
LTL-Lithuanian Lita
MOP-Macau Pataca
MKD-Macedonian Denar
MGF-Malagasy Franc
MWK-Malawi Kwacha
MYR-Malaysian Ringgit
MVR-Maldives Rufiyaa
MTL-Maltese Lira
MRO-Mauritania Ougulya
MUR-Mauritius Rupee
MXN-Mexican Peso
MDL-Moldovan Leu
MNT-Mongolian Tugrik
MAD-Moroccan Dirham
MZM-Mozambique Metical
MMK-Myanmar Kyat
NAD-Namibian Dollar
NPR-Nepalese Rupee
ANG-Neth Antilles Guilder
NZD-New Zealand Dollar
NIO-Nicaragua Cordoba
NGN-Nigerian Naira
KPW-North Korean Won
NOK-Norwegian Krone
OMR-Omani Rial
XPF-Pacific Franc
PKR-Pakistani Rupee
XPD-Palladium Ounces
PAB-Panama Balboa
PGK-Papua New Guinea Kina
PYG-Paraguayan Guarani
PEN-Peruvian Nuevo Sol
PHP-Philippine Peso
XPT-Platinum Ounces
PLN-Polish Zloty
QAR-Qatar Rial
ROL-Romanian Leu
RUB-Russian Rouble
WST-Samoa Tala
STD-Sao Tome Dobra
SAR-Saudi Arabian Riyal
SCR-Seychelles Rupee
SLL-Sierra Leone Leone
XAG-Silver Ounces
SGD-Singapore Dollar
SKK-Slovak Koruna
SIT-Slovenian Tolar
SBD-Solomon Islands Dollar
SOS-Somali Shilling
ZAR-South African Rand
LKR-Sri Lanka Rupee
SHP-St Helena Pound
SDD-Sudanese Dinar
SRG-Surinam Guilder
SZL-Swaziland Lilageni
SEK-Swedish Krona
TRY-Turkey Lira
CHF-Swiss Franc
SYP-Syrian Pound
TWD-Taiwan Dollar
TZS-Tanzanian Shilling
THB-Thai Baht
TOP-Tonga Pa'anga
TTD-Trinidad&amp;Tobago Dollar
TND-Tunisian Dinar
TRL-Turkish Lira
USD-U.S. Dollar
AED-UAE Dirham
UGX-Ugandan Shilling
UAH-Ukraine Hryvnia
UYU-Uruguayan New Peso
VUV-Vanuatu Vatu
VEB-Venezuelan Bolivar
VND-Vietnam Dong
YER-Yemen Riyal
YUM-Yugoslav Dinar
ZMK-Zambian Kwacha
ZWD-Zimbabwe Dollar

23 | */ 24 | @WebResult(name = "ConversionRateResult", targetNamespace = "http://www.webserviceX.NET/") 25 | @RequestWrapper(localName = "ConversionRate", targetNamespace = "http://www.webserviceX.NET/", className = "businessLayer.webserviceClients.currencyConvertor.ConversionRate") 26 | @WebMethod(operationName = "ConversionRate", action = "http://www.webserviceX.NET/ConversionRate") 27 | @ResponseWrapper(localName = "ConversionRateResponse", targetNamespace = "http://www.webserviceX.NET/", className = "businessLayer.webserviceClients.currencyConvertor.ConversionRateResponse") 28 | public double conversionRate( 29 | @WebParam(name = "FromCurrency", targetNamespace = "http://www.webserviceX.NET/") 30 | businessLayer.webserviceClients.currencyConvertor.Currency fromCurrency, 31 | @WebParam(name = "ToCurrency", targetNamespace = "http://www.webserviceX.NET/") 32 | businessLayer.webserviceClients.currencyConvertor.Currency toCurrency 33 | ); 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/currencyConvertor/CurrencyConvertorSoap_CurrencyConvertorSoap12_Client.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.currencyConvertor; 3 | 4 | /** 5 | * Please modify this class to meet your needs 6 | * This class is not complete 7 | */ 8 | 9 | import java.io.File; 10 | import java.net.MalformedURLException; 11 | import java.net.URL; 12 | import javax.xml.namespace.QName; 13 | 14 | /** 15 | * This class was generated by Apache CXF 3.0.0-milestone2 16 | * 2014-03-14T14:08:46.971+05:30 17 | * Generated source version: 3.0.0-milestone2 18 | * 19 | */ 20 | public final class CurrencyConvertorSoap_CurrencyConvertorSoap12_Client { 21 | 22 | private static final QName SERVICE_NAME = new QName("http://www.webserviceX.NET/", "CurrencyConvertor"); 23 | 24 | private CurrencyConvertorSoap_CurrencyConvertorSoap12_Client() { 25 | } 26 | 27 | public static void main(String args[]) throws java.lang.Exception { 28 | URL wsdlURL = CurrencyConvertor.WSDL_LOCATION; 29 | if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 30 | File wsdlFile = new File(args[0]); 31 | try { 32 | if (wsdlFile.exists()) { 33 | wsdlURL = wsdlFile.toURI().toURL(); 34 | } else { 35 | wsdlURL = new URL(args[0]); 36 | } 37 | } catch (MalformedURLException e) { 38 | e.printStackTrace(); 39 | } 40 | } 41 | 42 | CurrencyConvertor ss = new CurrencyConvertor(wsdlURL, SERVICE_NAME); 43 | CurrencyConvertorSoap port = ss.getCurrencyConvertorSoap12(); 44 | 45 | { 46 | System.out.println("Invoking conversionRate..."); 47 | businessLayer.webserviceClients.currencyConvertor.Currency _conversionRate_fromCurrency = null; 48 | businessLayer.webserviceClients.currencyConvertor.Currency _conversionRate_toCurrency = null; 49 | double _conversionRate__return = port.conversionRate(_conversionRate_fromCurrency, _conversionRate_toCurrency); 50 | System.out.println("conversionRate.result=" + _conversionRate__return); 51 | 52 | 53 | } 54 | 55 | System.exit(0); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/currencyConvertor/CurrencyConvertorSoap_CurrencyConvertorSoap_Client.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.currencyConvertor; 3 | 4 | /** 5 | * Please modify this class to meet your needs 6 | * This class is not complete 7 | */ 8 | 9 | import java.io.File; 10 | import java.net.MalformedURLException; 11 | import java.net.URL; 12 | import javax.xml.namespace.QName; 13 | 14 | /** 15 | * This class was generated by Apache CXF 3.0.0-milestone2 16 | * 2014-03-14T14:08:46.955+05:30 17 | * Generated source version: 3.0.0-milestone2 18 | * 19 | */ 20 | public final class CurrencyConvertorSoap_CurrencyConvertorSoap_Client { 21 | 22 | private static final QName SERVICE_NAME = new QName("http://www.webserviceX.NET/", "CurrencyConvertor"); 23 | 24 | private CurrencyConvertorSoap_CurrencyConvertorSoap_Client() { 25 | } 26 | 27 | public static void main(String args[]) throws java.lang.Exception { 28 | URL wsdlURL = CurrencyConvertor.WSDL_LOCATION; 29 | if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 30 | File wsdlFile = new File(args[0]); 31 | try { 32 | if (wsdlFile.exists()) { 33 | wsdlURL = wsdlFile.toURI().toURL(); 34 | } else { 35 | wsdlURL = new URL(args[0]); 36 | } 37 | } catch (MalformedURLException e) { 38 | e.printStackTrace(); 39 | } 40 | } 41 | 42 | CurrencyConvertor ss = new CurrencyConvertor(wsdlURL, SERVICE_NAME); 43 | CurrencyConvertorSoap port = ss.getCurrencyConvertorSoap(); 44 | 45 | { 46 | System.out.println("Invoking conversionRate..."); 47 | businessLayer.webserviceClients.currencyConvertor.Currency _conversionRate_fromCurrency = null; 48 | businessLayer.webserviceClients.currencyConvertor.Currency _conversionRate_toCurrency = null; 49 | double _conversionRate__return = port.conversionRate(_conversionRate_fromCurrency, _conversionRate_toCurrency); 50 | System.out.println("conversionRate.result=" + _conversionRate__return); 51 | 52 | 53 | } 54 | 55 | System.exit(0); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/currencyConvertor/ObjectFactory.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.currencyConvertor; 3 | 4 | import javax.xml.bind.JAXBElement; 5 | import javax.xml.bind.annotation.XmlElementDecl; 6 | import javax.xml.bind.annotation.XmlRegistry; 7 | import javax.xml.namespace.QName; 8 | 9 | 10 | /** 11 | * This object contains factory methods for each 12 | * Java content interface and Java element interface 13 | * generated in the businessLayer.webserviceClients.currencyConvertor package. 14 | *

An ObjectFactory allows you to programatically 15 | * construct new instances of the Java representation 16 | * for XML content. The Java representation of XML 17 | * content can consist of schema derived interfaces 18 | * and classes representing the binding of schema 19 | * type definitions, element declarations and model 20 | * groups. Factory methods for each of these are 21 | * provided in this class. 22 | * 23 | */ 24 | @XmlRegistry 25 | public class ObjectFactory { 26 | 27 | private final static QName _Double_QNAME = new QName("http://www.webserviceX.NET/", "double"); 28 | 29 | /** 30 | * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: businessLayer.webserviceClients.currencyConvertor 31 | * 32 | */ 33 | public ObjectFactory() { 34 | } 35 | 36 | /** 37 | * Create an instance of {@link ConversionRate } 38 | * 39 | */ 40 | public ConversionRate createConversionRate() { 41 | return new ConversionRate(); 42 | } 43 | 44 | /** 45 | * Create an instance of {@link ConversionRateResponse } 46 | * 47 | */ 48 | public ConversionRateResponse createConversionRateResponse() { 49 | return new ConversionRateResponse(); 50 | } 51 | 52 | /** 53 | * Create an instance of {@link JAXBElement }{@code <}{@link Double }{@code >}} 54 | * 55 | */ 56 | @XmlElementDecl(namespace = "http://www.webserviceX.NET/", name = "double") 57 | public JAXBElement createDouble(Double value) { 58 | return new JAXBElement(_Double_QNAME, Double.class, null, value); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/currencyConvertor/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://www.webserviceX.NET/", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) 2 | package businessLayer.webserviceClients.currencyConvertor; 3 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/globalWeather/GetCitiesByCountry.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.globalWeather; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlRootElement; 8 | import javax.xml.bind.annotation.XmlType; 9 | 10 | 11 | /** 12 | *

Java class for anonymous complex type. 13 | * 14 | *

The following schema fragment specifies the expected content contained within this class. 15 | * 16 | *

17 |  * <complexType>
18 |  *   <complexContent>
19 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 |  *       <sequence>
21 |  *         <element name="CountryName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
22 |  *       </sequence>
23 |  *     </restriction>
24 |  *   </complexContent>
25 |  * </complexType>
26 |  * 
27 | * 28 | * 29 | */ 30 | @XmlAccessorType(XmlAccessType.FIELD) 31 | @XmlType(name = "", propOrder = { 32 | "countryName" 33 | }) 34 | @XmlRootElement(name = "GetCitiesByCountry") 35 | public class GetCitiesByCountry { 36 | 37 | @XmlElement(name = "CountryName") 38 | protected String countryName; 39 | 40 | /** 41 | * Gets the value of the countryName property. 42 | * 43 | * @return 44 | * possible object is 45 | * {@link String } 46 | * 47 | */ 48 | public String getCountryName() { 49 | return countryName; 50 | } 51 | 52 | /** 53 | * Sets the value of the countryName property. 54 | * 55 | * @param value 56 | * allowed object is 57 | * {@link String } 58 | * 59 | */ 60 | public void setCountryName(String value) { 61 | this.countryName = value; 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/globalWeather/GetCitiesByCountryResponse.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.globalWeather; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlRootElement; 8 | import javax.xml.bind.annotation.XmlType; 9 | 10 | 11 | /** 12 | *

Java class for anonymous complex type. 13 | * 14 | *

The following schema fragment specifies the expected content contained within this class. 15 | * 16 | *

17 |  * <complexType>
18 |  *   <complexContent>
19 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 |  *       <sequence>
21 |  *         <element name="GetCitiesByCountryResult" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
22 |  *       </sequence>
23 |  *     </restriction>
24 |  *   </complexContent>
25 |  * </complexType>
26 |  * 
27 | * 28 | * 29 | */ 30 | @XmlAccessorType(XmlAccessType.FIELD) 31 | @XmlType(name = "", propOrder = { 32 | "getCitiesByCountryResult" 33 | }) 34 | @XmlRootElement(name = "GetCitiesByCountryResponse") 35 | public class GetCitiesByCountryResponse { 36 | 37 | @XmlElement(name = "GetCitiesByCountryResult") 38 | protected String getCitiesByCountryResult; 39 | 40 | /** 41 | * Gets the value of the getCitiesByCountryResult property. 42 | * 43 | * @return 44 | * possible object is 45 | * {@link String } 46 | * 47 | */ 48 | public String getGetCitiesByCountryResult() { 49 | return getCitiesByCountryResult; 50 | } 51 | 52 | /** 53 | * Sets the value of the getCitiesByCountryResult property. 54 | * 55 | * @param value 56 | * allowed object is 57 | * {@link String } 58 | * 59 | */ 60 | public void setGetCitiesByCountryResult(String value) { 61 | this.getCitiesByCountryResult = value; 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/globalWeather/GetWeather.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.globalWeather; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlRootElement; 8 | import javax.xml.bind.annotation.XmlType; 9 | 10 | 11 | /** 12 | *

Java class for anonymous complex type. 13 | * 14 | *

The following schema fragment specifies the expected content contained within this class. 15 | * 16 | *

17 |  * <complexType>
18 |  *   <complexContent>
19 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 |  *       <sequence>
21 |  *         <element name="CityName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
22 |  *         <element name="CountryName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
23 |  *       </sequence>
24 |  *     </restriction>
25 |  *   </complexContent>
26 |  * </complexType>
27 |  * 
28 | * 29 | * 30 | */ 31 | @XmlAccessorType(XmlAccessType.FIELD) 32 | @XmlType(name = "", propOrder = { 33 | "cityName", 34 | "countryName" 35 | }) 36 | @XmlRootElement(name = "GetWeather") 37 | public class GetWeather { 38 | 39 | @XmlElement(name = "CityName") 40 | protected String cityName; 41 | @XmlElement(name = "CountryName") 42 | protected String countryName; 43 | 44 | /** 45 | * Gets the value of the cityName property. 46 | * 47 | * @return 48 | * possible object is 49 | * {@link String } 50 | * 51 | */ 52 | public String getCityName() { 53 | return cityName; 54 | } 55 | 56 | /** 57 | * Sets the value of the cityName property. 58 | * 59 | * @param value 60 | * allowed object is 61 | * {@link String } 62 | * 63 | */ 64 | public void setCityName(String value) { 65 | this.cityName = value; 66 | } 67 | 68 | /** 69 | * Gets the value of the countryName property. 70 | * 71 | * @return 72 | * possible object is 73 | * {@link String } 74 | * 75 | */ 76 | public String getCountryName() { 77 | return countryName; 78 | } 79 | 80 | /** 81 | * Sets the value of the countryName property. 82 | * 83 | * @param value 84 | * allowed object is 85 | * {@link String } 86 | * 87 | */ 88 | public void setCountryName(String value) { 89 | this.countryName = value; 90 | } 91 | 92 | } 93 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/globalWeather/GetWeatherResponse.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.globalWeather; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlRootElement; 8 | import javax.xml.bind.annotation.XmlType; 9 | 10 | 11 | /** 12 | *

Java class for anonymous complex type. 13 | * 14 | *

The following schema fragment specifies the expected content contained within this class. 15 | * 16 | *

17 |  * <complexType>
18 |  *   <complexContent>
19 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 |  *       <sequence>
21 |  *         <element name="GetWeatherResult" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
22 |  *       </sequence>
23 |  *     </restriction>
24 |  *   </complexContent>
25 |  * </complexType>
26 |  * 
27 | * 28 | * 29 | */ 30 | @XmlAccessorType(XmlAccessType.FIELD) 31 | @XmlType(name = "", propOrder = { 32 | "getWeatherResult" 33 | }) 34 | @XmlRootElement(name = "GetWeatherResponse") 35 | public class GetWeatherResponse { 36 | 37 | @XmlElement(name = "GetWeatherResult") 38 | protected String getWeatherResult; 39 | 40 | /** 41 | * Gets the value of the getWeatherResult property. 42 | * 43 | * @return 44 | * possible object is 45 | * {@link String } 46 | * 47 | */ 48 | public String getGetWeatherResult() { 49 | return getWeatherResult; 50 | } 51 | 52 | /** 53 | * Sets the value of the getWeatherResult property. 54 | * 55 | * @param value 56 | * allowed object is 57 | * {@link String } 58 | * 59 | */ 60 | public void setGetWeatherResult(String value) { 61 | this.getWeatherResult = value; 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/globalWeather/GlobalWeather.java: -------------------------------------------------------------------------------- 1 | package businessLayer.webserviceClients.globalWeather; 2 | 3 | import java.net.MalformedURLException; 4 | import java.net.URL; 5 | import javax.xml.namespace.QName; 6 | import javax.xml.ws.WebEndpoint; 7 | import javax.xml.ws.WebServiceClient; 8 | import javax.xml.ws.WebServiceFeature; 9 | import javax.xml.ws.Service; 10 | 11 | /** 12 | * This class was generated by Apache CXF 3.0.0-milestone2 13 | * 2014-03-14T14:08:41.504+05:30 14 | * Generated source version: 3.0.0-milestone2 15 | * 16 | */ 17 | @WebServiceClient(name = "GlobalWeather", 18 | wsdlLocation = "http://www.webservicex.com/globalweather.asmx?WSDL", 19 | targetNamespace = "http://www.webserviceX.NET") 20 | public class GlobalWeather extends Service { 21 | 22 | public final static URL WSDL_LOCATION; 23 | 24 | public final static QName SERVICE = new QName("http://www.webserviceX.NET", "GlobalWeather"); 25 | public final static QName GlobalWeatherHttpPost = new QName("http://www.webserviceX.NET", "GlobalWeatherHttpPost"); 26 | public final static QName GlobalWeatherSoap12 = new QName("http://www.webserviceX.NET", "GlobalWeatherSoap12"); 27 | public final static QName GlobalWeatherSoap = new QName("http://www.webserviceX.NET", "GlobalWeatherSoap"); 28 | public final static QName GlobalWeatherHttpGet = new QName("http://www.webserviceX.NET", "GlobalWeatherHttpGet"); 29 | static { 30 | URL url = null; 31 | try { 32 | url = new URL("http://www.webservicex.com/globalweather.asmx?WSDL"); 33 | } catch (MalformedURLException e) { 34 | java.util.logging.Logger.getLogger(GlobalWeather.class.getName()) 35 | .log(java.util.logging.Level.INFO, 36 | "Can not initialize the default wsdl from {0}", "http://www.webservicex.com/globalweather.asmx?WSDL"); 37 | } 38 | WSDL_LOCATION = url; 39 | } 40 | 41 | public GlobalWeather(URL wsdlLocation) { 42 | super(wsdlLocation, SERVICE); 43 | } 44 | 45 | public GlobalWeather(URL wsdlLocation, QName serviceName) { 46 | super(wsdlLocation, serviceName); 47 | } 48 | 49 | public GlobalWeather() { 50 | super(WSDL_LOCATION, SERVICE); 51 | } 52 | 53 | 54 | /** 55 | * 56 | * @return 57 | * returns GlobalWeatherHttpPost 58 | */ 59 | @WebEndpoint(name = "GlobalWeatherHttpPost") 60 | public GlobalWeatherHttpPost getGlobalWeatherHttpPost() { 61 | return super.getPort(GlobalWeatherHttpPost, GlobalWeatherHttpPost.class); 62 | } 63 | 64 | /** 65 | * 66 | * @param features 67 | * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. 68 | * @return 69 | * returns GlobalWeatherHttpPost 70 | */ 71 | @WebEndpoint(name = "GlobalWeatherHttpPost") 72 | public GlobalWeatherHttpPost getGlobalWeatherHttpPost(WebServiceFeature... features) { 73 | return super.getPort(GlobalWeatherHttpPost, GlobalWeatherHttpPost.class, features); 74 | } 75 | /** 76 | * 77 | * @return 78 | * returns GlobalWeatherSoap 79 | */ 80 | @WebEndpoint(name = "GlobalWeatherSoap12") 81 | public GlobalWeatherSoap getGlobalWeatherSoap12() { 82 | return super.getPort(GlobalWeatherSoap12, GlobalWeatherSoap.class); 83 | } 84 | 85 | /** 86 | * 87 | * @param features 88 | * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. 89 | * @return 90 | * returns GlobalWeatherSoap 91 | */ 92 | @WebEndpoint(name = "GlobalWeatherSoap12") 93 | public GlobalWeatherSoap getGlobalWeatherSoap12(WebServiceFeature... features) { 94 | return super.getPort(GlobalWeatherSoap12, GlobalWeatherSoap.class, features); 95 | } 96 | /** 97 | * 98 | * @return 99 | * returns GlobalWeatherSoap 100 | */ 101 | @WebEndpoint(name = "GlobalWeatherSoap") 102 | public GlobalWeatherSoap getGlobalWeatherSoap() { 103 | return super.getPort(GlobalWeatherSoap, GlobalWeatherSoap.class); 104 | } 105 | 106 | /** 107 | * 108 | * @param features 109 | * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. 110 | * @return 111 | * returns GlobalWeatherSoap 112 | */ 113 | @WebEndpoint(name = "GlobalWeatherSoap") 114 | public GlobalWeatherSoap getGlobalWeatherSoap(WebServiceFeature... features) { 115 | return super.getPort(GlobalWeatherSoap, GlobalWeatherSoap.class, features); 116 | } 117 | /** 118 | * 119 | * @return 120 | * returns GlobalWeatherHttpGet 121 | */ 122 | @WebEndpoint(name = "GlobalWeatherHttpGet") 123 | public GlobalWeatherHttpGet getGlobalWeatherHttpGet() { 124 | return super.getPort(GlobalWeatherHttpGet, GlobalWeatherHttpGet.class); 125 | } 126 | 127 | /** 128 | * 129 | * @param features 130 | * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. 131 | * @return 132 | * returns GlobalWeatherHttpGet 133 | */ 134 | @WebEndpoint(name = "GlobalWeatherHttpGet") 135 | public GlobalWeatherHttpGet getGlobalWeatherHttpGet(WebServiceFeature... features) { 136 | return super.getPort(GlobalWeatherHttpGet, GlobalWeatherHttpGet.class, features); 137 | } 138 | 139 | } 140 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/globalWeather/GlobalWeatherHttpGet.java: -------------------------------------------------------------------------------- 1 | package businessLayer.webserviceClients.globalWeather; 2 | 3 | import javax.jws.WebMethod; 4 | import javax.jws.WebParam; 5 | import javax.jws.WebResult; 6 | import javax.jws.WebService; 7 | import javax.jws.soap.SOAPBinding; 8 | import javax.xml.bind.annotation.XmlSeeAlso; 9 | 10 | /** 11 | * This class was generated by Apache CXF 3.0.0-milestone2 12 | * 2014-03-14T14:08:41.496+05:30 13 | * Generated source version: 3.0.0-milestone2 14 | * 15 | */ 16 | @WebService(targetNamespace = "http://www.webserviceX.NET", name = "GlobalWeatherHttpGet") 17 | @XmlSeeAlso({ObjectFactory.class}) 18 | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) 19 | public interface GlobalWeatherHttpGet { 20 | 21 | /** 22 | * Get all major cities by country name(full / part). 23 | */ 24 | @WebResult(name = "string", targetNamespace = "http://www.webserviceX.NET", partName = "Body") 25 | @WebMethod(operationName = "GetCitiesByCountry") 26 | public java.lang.String getCitiesByCountry( 27 | @WebParam(partName = "CountryName", name = "CountryName", targetNamespace = "http://www.webserviceX.NET") 28 | java.lang.String countryName 29 | ); 30 | 31 | /** 32 | * Get weather report for all major cities around the world. 33 | */ 34 | @WebResult(name = "string", targetNamespace = "http://www.webserviceX.NET", partName = "Body") 35 | @WebMethod(operationName = "GetWeather") 36 | public java.lang.String getWeather( 37 | @WebParam(partName = "CityName", name = "CityName", targetNamespace = "http://www.webserviceX.NET") 38 | java.lang.String cityName, 39 | @WebParam(partName = "CountryName", name = "CountryName", targetNamespace = "http://www.webserviceX.NET") 40 | java.lang.String countryName 41 | ); 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/globalWeather/GlobalWeatherHttpGet_GlobalWeatherHttpGet_Client.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.globalWeather; 3 | 4 | /** 5 | * Please modify this class to meet your needs 6 | * This class is not complete 7 | */ 8 | 9 | import java.io.File; 10 | import java.net.MalformedURLException; 11 | import java.net.URL; 12 | import javax.xml.namespace.QName; 13 | 14 | /** 15 | * This class was generated by Apache CXF 3.0.0-milestone2 16 | * 2014-03-14T14:08:41.465+05:30 17 | * Generated source version: 3.0.0-milestone2 18 | * 19 | */ 20 | public final class GlobalWeatherHttpGet_GlobalWeatherHttpGet_Client { 21 | 22 | private static final QName SERVICE_NAME = new QName("http://www.webserviceX.NET", "GlobalWeather"); 23 | 24 | private GlobalWeatherHttpGet_GlobalWeatherHttpGet_Client() { 25 | } 26 | 27 | public static void main(String args[]) throws java.lang.Exception { 28 | URL wsdlURL = GlobalWeather.WSDL_LOCATION; 29 | if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 30 | File wsdlFile = new File(args[0]); 31 | try { 32 | if (wsdlFile.exists()) { 33 | wsdlURL = wsdlFile.toURI().toURL(); 34 | } else { 35 | wsdlURL = new URL(args[0]); 36 | } 37 | } catch (MalformedURLException e) { 38 | e.printStackTrace(); 39 | } 40 | } 41 | 42 | GlobalWeather ss = new GlobalWeather(wsdlURL, SERVICE_NAME); 43 | GlobalWeatherHttpGet port = ss.getGlobalWeatherHttpGet(); 44 | 45 | { 46 | System.out.println("Invoking getCitiesByCountry..."); 47 | java.lang.String _getCitiesByCountry_countryName = ""; 48 | java.lang.String _getCitiesByCountry__return = port.getCitiesByCountry(_getCitiesByCountry_countryName); 49 | System.out.println("getCitiesByCountry.result=" + _getCitiesByCountry__return); 50 | 51 | 52 | } 53 | { 54 | System.out.println("Invoking getWeather..."); 55 | java.lang.String _getWeather_cityName = ""; 56 | java.lang.String _getWeather_countryName = ""; 57 | java.lang.String _getWeather__return = port.getWeather(_getWeather_cityName, _getWeather_countryName); 58 | System.out.println("getWeather.result=" + _getWeather__return); 59 | 60 | 61 | } 62 | 63 | System.exit(0); 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/globalWeather/GlobalWeatherHttpPost.java: -------------------------------------------------------------------------------- 1 | package businessLayer.webserviceClients.globalWeather; 2 | 3 | import javax.jws.WebMethod; 4 | import javax.jws.WebParam; 5 | import javax.jws.WebResult; 6 | import javax.jws.WebService; 7 | import javax.jws.soap.SOAPBinding; 8 | import javax.xml.bind.annotation.XmlSeeAlso; 9 | 10 | /** 11 | * This class was generated by Apache CXF 3.0.0-milestone2 12 | * 2014-03-14T14:08:41.479+05:30 13 | * Generated source version: 3.0.0-milestone2 14 | * 15 | */ 16 | @WebService(targetNamespace = "http://www.webserviceX.NET", name = "GlobalWeatherHttpPost") 17 | @XmlSeeAlso({ObjectFactory.class}) 18 | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) 19 | public interface GlobalWeatherHttpPost { 20 | 21 | /** 22 | * Get all major cities by country name(full / part). 23 | */ 24 | @WebResult(name = "string", targetNamespace = "http://www.webserviceX.NET", partName = "Body") 25 | @WebMethod(operationName = "GetCitiesByCountry") 26 | public java.lang.String getCitiesByCountry( 27 | @WebParam(partName = "CountryName", name = "CountryName", targetNamespace = "http://www.webserviceX.NET") 28 | java.lang.String countryName 29 | ); 30 | 31 | /** 32 | * Get weather report for all major cities around the world. 33 | */ 34 | @WebResult(name = "string", targetNamespace = "http://www.webserviceX.NET", partName = "Body") 35 | @WebMethod(operationName = "GetWeather") 36 | public java.lang.String getWeather( 37 | @WebParam(partName = "CityName", name = "CityName", targetNamespace = "http://www.webserviceX.NET") 38 | java.lang.String cityName, 39 | @WebParam(partName = "CountryName", name = "CountryName", targetNamespace = "http://www.webserviceX.NET") 40 | java.lang.String countryName 41 | ); 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/globalWeather/GlobalWeatherHttpPost_GlobalWeatherHttpPost_Client.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.globalWeather; 3 | 4 | /** 5 | * Please modify this class to meet your needs 6 | * This class is not complete 7 | */ 8 | 9 | import java.io.File; 10 | import java.net.MalformedURLException; 11 | import java.net.URL; 12 | import javax.xml.namespace.QName; 13 | 14 | /** 15 | * This class was generated by Apache CXF 3.0.0-milestone2 16 | * 2014-03-14T14:08:41.382+05:30 17 | * Generated source version: 3.0.0-milestone2 18 | * 19 | */ 20 | public final class GlobalWeatherHttpPost_GlobalWeatherHttpPost_Client { 21 | 22 | private static final QName SERVICE_NAME = new QName("http://www.webserviceX.NET", "GlobalWeather"); 23 | 24 | private GlobalWeatherHttpPost_GlobalWeatherHttpPost_Client() { 25 | } 26 | 27 | public static void main(String args[]) throws java.lang.Exception { 28 | URL wsdlURL = GlobalWeather.WSDL_LOCATION; 29 | if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 30 | File wsdlFile = new File(args[0]); 31 | try { 32 | if (wsdlFile.exists()) { 33 | wsdlURL = wsdlFile.toURI().toURL(); 34 | } else { 35 | wsdlURL = new URL(args[0]); 36 | } 37 | } catch (MalformedURLException e) { 38 | e.printStackTrace(); 39 | } 40 | } 41 | 42 | GlobalWeather ss = new GlobalWeather(wsdlURL, SERVICE_NAME); 43 | GlobalWeatherHttpPost port = ss.getGlobalWeatherHttpPost(); 44 | 45 | { 46 | System.out.println("Invoking getCitiesByCountry..."); 47 | java.lang.String _getCitiesByCountry_countryName = ""; 48 | java.lang.String _getCitiesByCountry__return = port.getCitiesByCountry(_getCitiesByCountry_countryName); 49 | System.out.println("getCitiesByCountry.result=" + _getCitiesByCountry__return); 50 | 51 | 52 | } 53 | { 54 | System.out.println("Invoking getWeather..."); 55 | java.lang.String _getWeather_cityName = ""; 56 | java.lang.String _getWeather_countryName = ""; 57 | java.lang.String _getWeather__return = port.getWeather(_getWeather_cityName, _getWeather_countryName); 58 | System.out.println("getWeather.result=" + _getWeather__return); 59 | 60 | 61 | } 62 | 63 | System.exit(0); 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/globalWeather/GlobalWeatherSoap.java: -------------------------------------------------------------------------------- 1 | package businessLayer.webserviceClients.globalWeather; 2 | 3 | import javax.jws.WebMethod; 4 | import javax.jws.WebParam; 5 | import javax.jws.WebResult; 6 | import javax.jws.WebService; 7 | import javax.xml.bind.annotation.XmlSeeAlso; 8 | import javax.xml.ws.RequestWrapper; 9 | import javax.xml.ws.ResponseWrapper; 10 | 11 | /** 12 | * This class was generated by Apache CXF 3.0.0-milestone2 13 | * 2014-03-14T14:08:41.487+05:30 14 | * Generated source version: 3.0.0-milestone2 15 | * 16 | */ 17 | @WebService(targetNamespace = "http://www.webserviceX.NET", name = "GlobalWeatherSoap") 18 | @XmlSeeAlso({ObjectFactory.class}) 19 | public interface GlobalWeatherSoap { 20 | 21 | /** 22 | * Get all major cities by country name(full / part). 23 | */ 24 | @WebResult(name = "GetCitiesByCountryResult", targetNamespace = "http://www.webserviceX.NET") 25 | @RequestWrapper(localName = "GetCitiesByCountry", targetNamespace = "http://www.webserviceX.NET", className = "businessLayer.webserviceClients.globalWeather.GetCitiesByCountry") 26 | @WebMethod(operationName = "GetCitiesByCountry", action = "http://www.webserviceX.NET/GetCitiesByCountry") 27 | @ResponseWrapper(localName = "GetCitiesByCountryResponse", targetNamespace = "http://www.webserviceX.NET", className = "businessLayer.webserviceClients.globalWeather.GetCitiesByCountryResponse") 28 | public java.lang.String getCitiesByCountry( 29 | @WebParam(name = "CountryName", targetNamespace = "http://www.webserviceX.NET") 30 | java.lang.String countryName 31 | ); 32 | 33 | /** 34 | * Get weather report for all major cities around the world. 35 | */ 36 | @WebResult(name = "GetWeatherResult", targetNamespace = "http://www.webserviceX.NET") 37 | @RequestWrapper(localName = "GetWeather", targetNamespace = "http://www.webserviceX.NET", className = "businessLayer.webserviceClients.globalWeather.GetWeather") 38 | @WebMethod(operationName = "GetWeather", action = "http://www.webserviceX.NET/GetWeather") 39 | @ResponseWrapper(localName = "GetWeatherResponse", targetNamespace = "http://www.webserviceX.NET", className = "businessLayer.webserviceClients.globalWeather.GetWeatherResponse") 40 | public java.lang.String getWeather( 41 | @WebParam(name = "CityName", targetNamespace = "http://www.webserviceX.NET") 42 | java.lang.String cityName, 43 | @WebParam(name = "CountryName", targetNamespace = "http://www.webserviceX.NET") 44 | java.lang.String countryName 45 | ); 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/globalWeather/GlobalWeatherSoap_GlobalWeatherSoap12_Client.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.globalWeather; 3 | 4 | /** 5 | * Please modify this class to meet your needs 6 | * This class is not complete 7 | */ 8 | 9 | import java.io.File; 10 | import java.net.MalformedURLException; 11 | import java.net.URL; 12 | import javax.xml.namespace.QName; 13 | 14 | /** 15 | * This class was generated by Apache CXF 3.0.0-milestone2 16 | * 2014-03-14T14:08:41.429+05:30 17 | * Generated source version: 3.0.0-milestone2 18 | * 19 | */ 20 | public final class GlobalWeatherSoap_GlobalWeatherSoap12_Client { 21 | 22 | private static final QName SERVICE_NAME = new QName("http://www.webserviceX.NET", "GlobalWeather"); 23 | 24 | private GlobalWeatherSoap_GlobalWeatherSoap12_Client() { 25 | } 26 | 27 | public static void main(String args[]) throws java.lang.Exception { 28 | URL wsdlURL = GlobalWeather.WSDL_LOCATION; 29 | if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 30 | File wsdlFile = new File(args[0]); 31 | try { 32 | if (wsdlFile.exists()) { 33 | wsdlURL = wsdlFile.toURI().toURL(); 34 | } else { 35 | wsdlURL = new URL(args[0]); 36 | } 37 | } catch (MalformedURLException e) { 38 | e.printStackTrace(); 39 | } 40 | } 41 | 42 | GlobalWeather ss = new GlobalWeather(wsdlURL, SERVICE_NAME); 43 | GlobalWeatherSoap port = ss.getGlobalWeatherSoap12(); 44 | 45 | { 46 | System.out.println("Invoking getCitiesByCountry..."); 47 | java.lang.String _getCitiesByCountry_countryName = ""; 48 | java.lang.String _getCitiesByCountry__return = port.getCitiesByCountry(_getCitiesByCountry_countryName); 49 | System.out.println("getCitiesByCountry.result=" + _getCitiesByCountry__return); 50 | 51 | 52 | } 53 | { 54 | System.out.println("Invoking getWeather..."); 55 | java.lang.String _getWeather_cityName = ""; 56 | java.lang.String _getWeather_countryName = ""; 57 | java.lang.String _getWeather__return = port.getWeather(_getWeather_cityName, _getWeather_countryName); 58 | System.out.println("getWeather.result=" + _getWeather__return); 59 | 60 | 61 | } 62 | 63 | System.exit(0); 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/globalWeather/GlobalWeatherSoap_GlobalWeatherSoap_Client.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.globalWeather; 3 | 4 | /** 5 | * Please modify this class to meet your needs 6 | * This class is not complete 7 | */ 8 | 9 | import java.io.File; 10 | import java.net.MalformedURLException; 11 | import java.net.URL; 12 | import javax.xml.namespace.QName; 13 | 14 | /** 15 | * This class was generated by Apache CXF 3.0.0-milestone2 16 | * 2014-03-14T14:08:41.448+05:30 17 | * Generated source version: 3.0.0-milestone2 18 | * 19 | */ 20 | public final class GlobalWeatherSoap_GlobalWeatherSoap_Client { 21 | 22 | private static final QName SERVICE_NAME = new QName("http://www.webserviceX.NET", "GlobalWeather"); 23 | 24 | private GlobalWeatherSoap_GlobalWeatherSoap_Client() { 25 | } 26 | 27 | public static void main(String args[]) throws java.lang.Exception { 28 | URL wsdlURL = GlobalWeather.WSDL_LOCATION; 29 | if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 30 | File wsdlFile = new File(args[0]); 31 | try { 32 | if (wsdlFile.exists()) { 33 | wsdlURL = wsdlFile.toURI().toURL(); 34 | } else { 35 | wsdlURL = new URL(args[0]); 36 | } 37 | } catch (MalformedURLException e) { 38 | e.printStackTrace(); 39 | } 40 | } 41 | 42 | GlobalWeather ss = new GlobalWeather(wsdlURL, SERVICE_NAME); 43 | GlobalWeatherSoap port = ss.getGlobalWeatherSoap(); 44 | 45 | { 46 | System.out.println("Invoking getCitiesByCountry..."); 47 | java.lang.String _getCitiesByCountry_countryName = ""; 48 | java.lang.String _getCitiesByCountry__return = port.getCitiesByCountry(_getCitiesByCountry_countryName); 49 | System.out.println("getCitiesByCountry.result=" + _getCitiesByCountry__return); 50 | 51 | 52 | } 53 | { 54 | System.out.println("Invoking getWeather..."); 55 | java.lang.String _getWeather_cityName = ""; 56 | java.lang.String _getWeather_countryName = ""; 57 | java.lang.String _getWeather__return = port.getWeather(_getWeather_cityName, _getWeather_countryName); 58 | System.out.println("getWeather.result=" + _getWeather__return); 59 | 60 | 61 | } 62 | 63 | System.exit(0); 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/globalWeather/ObjectFactory.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.globalWeather; 3 | 4 | import javax.xml.bind.JAXBElement; 5 | import javax.xml.bind.annotation.XmlElementDecl; 6 | import javax.xml.bind.annotation.XmlRegistry; 7 | import javax.xml.namespace.QName; 8 | 9 | 10 | /** 11 | * This object contains factory methods for each 12 | * Java content interface and Java element interface 13 | * generated in the businessLayer.webserviceClients.globalWeather package. 14 | *

An ObjectFactory allows you to programatically 15 | * construct new instances of the Java representation 16 | * for XML content. The Java representation of XML 17 | * content can consist of schema derived interfaces 18 | * and classes representing the binding of schema 19 | * type definitions, element declarations and model 20 | * groups. Factory methods for each of these are 21 | * provided in this class. 22 | * 23 | */ 24 | @XmlRegistry 25 | public class ObjectFactory { 26 | 27 | private final static QName _String_QNAME = new QName("http://www.webserviceX.NET", "string"); 28 | 29 | /** 30 | * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: businessLayer.webserviceClients.globalWeather 31 | * 32 | */ 33 | public ObjectFactory() { 34 | } 35 | 36 | /** 37 | * Create an instance of {@link GetWeather } 38 | * 39 | */ 40 | public GetWeather createGetWeather() { 41 | return new GetWeather(); 42 | } 43 | 44 | /** 45 | * Create an instance of {@link GetCitiesByCountry } 46 | * 47 | */ 48 | public GetCitiesByCountry createGetCitiesByCountry() { 49 | return new GetCitiesByCountry(); 50 | } 51 | 52 | /** 53 | * Create an instance of {@link GetWeatherResponse } 54 | * 55 | */ 56 | public GetWeatherResponse createGetWeatherResponse() { 57 | return new GetWeatherResponse(); 58 | } 59 | 60 | /** 61 | * Create an instance of {@link GetCitiesByCountryResponse } 62 | * 63 | */ 64 | public GetCitiesByCountryResponse createGetCitiesByCountryResponse() { 65 | return new GetCitiesByCountryResponse(); 66 | } 67 | 68 | /** 69 | * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} 70 | * 71 | */ 72 | @XmlElementDecl(namespace = "http://www.webserviceX.NET", name = "string") 73 | public JAXBElement createString(String value) { 74 | return new JAXBElement(_String_QNAME, String.class, null, value); 75 | } 76 | 77 | } 78 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/globalWeather/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://www.webserviceX.NET", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) 2 | package businessLayer.webserviceClients.globalWeather; 3 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/periodicTable/GetAtomicNumber.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.periodicTable; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlRootElement; 8 | import javax.xml.bind.annotation.XmlType; 9 | 10 | 11 | /** 12 | *

Java class for anonymous complex type. 13 | * 14 | *

The following schema fragment specifies the expected content contained within this class. 15 | * 16 | *

17 |  * <complexType>
18 |  *   <complexContent>
19 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 |  *       <sequence>
21 |  *         <element name="ElementName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
22 |  *       </sequence>
23 |  *     </restriction>
24 |  *   </complexContent>
25 |  * </complexType>
26 |  * 
27 | * 28 | * 29 | */ 30 | @XmlAccessorType(XmlAccessType.FIELD) 31 | @XmlType(name = "", propOrder = { 32 | "elementName" 33 | }) 34 | @XmlRootElement(name = "GetAtomicNumber") 35 | public class GetAtomicNumber { 36 | 37 | @XmlElement(name = "ElementName") 38 | protected String elementName; 39 | 40 | /** 41 | * Gets the value of the elementName property. 42 | * 43 | * @return 44 | * possible object is 45 | * {@link String } 46 | * 47 | */ 48 | public String getElementName() { 49 | return elementName; 50 | } 51 | 52 | /** 53 | * Sets the value of the elementName property. 54 | * 55 | * @param value 56 | * allowed object is 57 | * {@link String } 58 | * 59 | */ 60 | public void setElementName(String value) { 61 | this.elementName = value; 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/periodicTable/GetAtomicNumberResponse.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.periodicTable; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlRootElement; 8 | import javax.xml.bind.annotation.XmlType; 9 | 10 | 11 | /** 12 | *

Java class for anonymous complex type. 13 | * 14 | *

The following schema fragment specifies the expected content contained within this class. 15 | * 16 | *

17 |  * <complexType>
18 |  *   <complexContent>
19 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 |  *       <sequence>
21 |  *         <element name="GetAtomicNumberResult" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
22 |  *       </sequence>
23 |  *     </restriction>
24 |  *   </complexContent>
25 |  * </complexType>
26 |  * 
27 | * 28 | * 29 | */ 30 | @XmlAccessorType(XmlAccessType.FIELD) 31 | @XmlType(name = "", propOrder = { 32 | "getAtomicNumberResult" 33 | }) 34 | @XmlRootElement(name = "GetAtomicNumberResponse") 35 | public class GetAtomicNumberResponse { 36 | 37 | @XmlElement(name = "GetAtomicNumberResult") 38 | protected String getAtomicNumberResult; 39 | 40 | /** 41 | * Gets the value of the getAtomicNumberResult property. 42 | * 43 | * @return 44 | * possible object is 45 | * {@link String } 46 | * 47 | */ 48 | public String getGetAtomicNumberResult() { 49 | return getAtomicNumberResult; 50 | } 51 | 52 | /** 53 | * Sets the value of the getAtomicNumberResult property. 54 | * 55 | * @param value 56 | * allowed object is 57 | * {@link String } 58 | * 59 | */ 60 | public void setGetAtomicNumberResult(String value) { 61 | this.getAtomicNumberResult = value; 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/periodicTable/GetAtomicWeight.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.periodicTable; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlRootElement; 8 | import javax.xml.bind.annotation.XmlType; 9 | 10 | 11 | /** 12 | *

Java class for anonymous complex type. 13 | * 14 | *

The following schema fragment specifies the expected content contained within this class. 15 | * 16 | *

17 |  * <complexType>
18 |  *   <complexContent>
19 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 |  *       <sequence>
21 |  *         <element name="ElementName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
22 |  *       </sequence>
23 |  *     </restriction>
24 |  *   </complexContent>
25 |  * </complexType>
26 |  * 
27 | * 28 | * 29 | */ 30 | @XmlAccessorType(XmlAccessType.FIELD) 31 | @XmlType(name = "", propOrder = { 32 | "elementName" 33 | }) 34 | @XmlRootElement(name = "GetAtomicWeight") 35 | public class GetAtomicWeight { 36 | 37 | @XmlElement(name = "ElementName") 38 | protected String elementName; 39 | 40 | /** 41 | * Gets the value of the elementName property. 42 | * 43 | * @return 44 | * possible object is 45 | * {@link String } 46 | * 47 | */ 48 | public String getElementName() { 49 | return elementName; 50 | } 51 | 52 | /** 53 | * Sets the value of the elementName property. 54 | * 55 | * @param value 56 | * allowed object is 57 | * {@link String } 58 | * 59 | */ 60 | public void setElementName(String value) { 61 | this.elementName = value; 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/periodicTable/GetAtomicWeightResponse.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.periodicTable; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlRootElement; 8 | import javax.xml.bind.annotation.XmlType; 9 | 10 | 11 | /** 12 | *

Java class for anonymous complex type. 13 | * 14 | *

The following schema fragment specifies the expected content contained within this class. 15 | * 16 | *

17 |  * <complexType>
18 |  *   <complexContent>
19 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 |  *       <sequence>
21 |  *         <element name="GetAtomicWeightResult" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
22 |  *       </sequence>
23 |  *     </restriction>
24 |  *   </complexContent>
25 |  * </complexType>
26 |  * 
27 | * 28 | * 29 | */ 30 | @XmlAccessorType(XmlAccessType.FIELD) 31 | @XmlType(name = "", propOrder = { 32 | "getAtomicWeightResult" 33 | }) 34 | @XmlRootElement(name = "GetAtomicWeightResponse") 35 | public class GetAtomicWeightResponse { 36 | 37 | @XmlElement(name = "GetAtomicWeightResult") 38 | protected String getAtomicWeightResult; 39 | 40 | /** 41 | * Gets the value of the getAtomicWeightResult property. 42 | * 43 | * @return 44 | * possible object is 45 | * {@link String } 46 | * 47 | */ 48 | public String getGetAtomicWeightResult() { 49 | return getAtomicWeightResult; 50 | } 51 | 52 | /** 53 | * Sets the value of the getAtomicWeightResult property. 54 | * 55 | * @param value 56 | * allowed object is 57 | * {@link String } 58 | * 59 | */ 60 | public void setGetAtomicWeightResult(String value) { 61 | this.getAtomicWeightResult = value; 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/periodicTable/GetAtoms.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.periodicTable; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlRootElement; 7 | import javax.xml.bind.annotation.XmlType; 8 | 9 | 10 | /** 11 | *

Java class for anonymous complex type. 12 | * 13 | *

The following schema fragment specifies the expected content contained within this class. 14 | * 15 | *

16 |  * <complexType>
17 |  *   <complexContent>
18 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19 |  *     </restriction>
20 |  *   </complexContent>
21 |  * </complexType>
22 |  * 
23 | * 24 | * 25 | */ 26 | @XmlAccessorType(XmlAccessType.FIELD) 27 | @XmlType(name = "") 28 | @XmlRootElement(name = "GetAtoms") 29 | public class GetAtoms { 30 | 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/periodicTable/GetAtomsResponse.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.periodicTable; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlRootElement; 8 | import javax.xml.bind.annotation.XmlType; 9 | 10 | 11 | /** 12 | *

Java class for anonymous complex type. 13 | * 14 | *

The following schema fragment specifies the expected content contained within this class. 15 | * 16 | *

17 |  * <complexType>
18 |  *   <complexContent>
19 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 |  *       <sequence>
21 |  *         <element name="GetAtomsResult" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
22 |  *       </sequence>
23 |  *     </restriction>
24 |  *   </complexContent>
25 |  * </complexType>
26 |  * 
27 | * 28 | * 29 | */ 30 | @XmlAccessorType(XmlAccessType.FIELD) 31 | @XmlType(name = "", propOrder = { 32 | "getAtomsResult" 33 | }) 34 | @XmlRootElement(name = "GetAtomsResponse") 35 | public class GetAtomsResponse { 36 | 37 | @XmlElement(name = "GetAtomsResult") 38 | protected String getAtomsResult; 39 | 40 | /** 41 | * Gets the value of the getAtomsResult property. 42 | * 43 | * @return 44 | * possible object is 45 | * {@link String } 46 | * 47 | */ 48 | public String getGetAtomsResult() { 49 | return getAtomsResult; 50 | } 51 | 52 | /** 53 | * Sets the value of the getAtomsResult property. 54 | * 55 | * @param value 56 | * allowed object is 57 | * {@link String } 58 | * 59 | */ 60 | public void setGetAtomsResult(String value) { 61 | this.getAtomsResult = value; 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/periodicTable/GetElementSymbol.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.periodicTable; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlRootElement; 8 | import javax.xml.bind.annotation.XmlType; 9 | 10 | 11 | /** 12 | *

Java class for anonymous complex type. 13 | * 14 | *

The following schema fragment specifies the expected content contained within this class. 15 | * 16 | *

17 |  * <complexType>
18 |  *   <complexContent>
19 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 |  *       <sequence>
21 |  *         <element name="ElementName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
22 |  *       </sequence>
23 |  *     </restriction>
24 |  *   </complexContent>
25 |  * </complexType>
26 |  * 
27 | * 28 | * 29 | */ 30 | @XmlAccessorType(XmlAccessType.FIELD) 31 | @XmlType(name = "", propOrder = { 32 | "elementName" 33 | }) 34 | @XmlRootElement(name = "GetElementSymbol") 35 | public class GetElementSymbol { 36 | 37 | @XmlElement(name = "ElementName") 38 | protected String elementName; 39 | 40 | /** 41 | * Gets the value of the elementName property. 42 | * 43 | * @return 44 | * possible object is 45 | * {@link String } 46 | * 47 | */ 48 | public String getElementName() { 49 | return elementName; 50 | } 51 | 52 | /** 53 | * Sets the value of the elementName property. 54 | * 55 | * @param value 56 | * allowed object is 57 | * {@link String } 58 | * 59 | */ 60 | public void setElementName(String value) { 61 | this.elementName = value; 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/periodicTable/GetElementSymbolResponse.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.periodicTable; 3 | 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlRootElement; 8 | import javax.xml.bind.annotation.XmlType; 9 | 10 | 11 | /** 12 | *

Java class for anonymous complex type. 13 | * 14 | *

The following schema fragment specifies the expected content contained within this class. 15 | * 16 | *

17 |  * <complexType>
18 |  *   <complexContent>
19 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
20 |  *       <sequence>
21 |  *         <element name="GetElementSymbolResult" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
22 |  *       </sequence>
23 |  *     </restriction>
24 |  *   </complexContent>
25 |  * </complexType>
26 |  * 
27 | * 28 | * 29 | */ 30 | @XmlAccessorType(XmlAccessType.FIELD) 31 | @XmlType(name = "", propOrder = { 32 | "getElementSymbolResult" 33 | }) 34 | @XmlRootElement(name = "GetElementSymbolResponse") 35 | public class GetElementSymbolResponse { 36 | 37 | @XmlElement(name = "GetElementSymbolResult") 38 | protected String getElementSymbolResult; 39 | 40 | /** 41 | * Gets the value of the getElementSymbolResult property. 42 | * 43 | * @return 44 | * possible object is 45 | * {@link String } 46 | * 47 | */ 48 | public String getGetElementSymbolResult() { 49 | return getElementSymbolResult; 50 | } 51 | 52 | /** 53 | * Sets the value of the getElementSymbolResult property. 54 | * 55 | * @param value 56 | * allowed object is 57 | * {@link String } 58 | * 59 | */ 60 | public void setGetElementSymbolResult(String value) { 61 | this.getElementSymbolResult = value; 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/periodicTable/ObjectFactory.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.periodicTable; 3 | 4 | import javax.xml.bind.JAXBElement; 5 | import javax.xml.bind.annotation.XmlElementDecl; 6 | import javax.xml.bind.annotation.XmlRegistry; 7 | import javax.xml.namespace.QName; 8 | 9 | 10 | /** 11 | * This object contains factory methods for each 12 | * Java content interface and Java element interface 13 | * generated in the businessLayer.webserviceClients.periodicTable package. 14 | *

An ObjectFactory allows you to programatically 15 | * construct new instances of the Java representation 16 | * for XML content. The Java representation of XML 17 | * content can consist of schema derived interfaces 18 | * and classes representing the binding of schema 19 | * type definitions, element declarations and model 20 | * groups. Factory methods for each of these are 21 | * provided in this class. 22 | * 23 | */ 24 | @XmlRegistry 25 | public class ObjectFactory { 26 | 27 | private final static QName _String_QNAME = new QName("http://www.webserviceX.NET", "string"); 28 | 29 | /** 30 | * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: businessLayer.webserviceClients.periodicTable 31 | * 32 | */ 33 | public ObjectFactory() { 34 | } 35 | 36 | /** 37 | * Create an instance of {@link GetElementSymbol } 38 | * 39 | */ 40 | public GetElementSymbol createGetElementSymbol() { 41 | return new GetElementSymbol(); 42 | } 43 | 44 | /** 45 | * Create an instance of {@link GetAtoms } 46 | * 47 | */ 48 | public GetAtoms createGetAtoms() { 49 | return new GetAtoms(); 50 | } 51 | 52 | /** 53 | * Create an instance of {@link GetAtomsResponse } 54 | * 55 | */ 56 | public GetAtomsResponse createGetAtomsResponse() { 57 | return new GetAtomsResponse(); 58 | } 59 | 60 | /** 61 | * Create an instance of {@link GetAtomicWeightResponse } 62 | * 63 | */ 64 | public GetAtomicWeightResponse createGetAtomicWeightResponse() { 65 | return new GetAtomicWeightResponse(); 66 | } 67 | 68 | /** 69 | * Create an instance of {@link GetAtomicNumber } 70 | * 71 | */ 72 | public GetAtomicNumber createGetAtomicNumber() { 73 | return new GetAtomicNumber(); 74 | } 75 | 76 | /** 77 | * Create an instance of {@link GetElementSymbolResponse } 78 | * 79 | */ 80 | public GetElementSymbolResponse createGetElementSymbolResponse() { 81 | return new GetElementSymbolResponse(); 82 | } 83 | 84 | /** 85 | * Create an instance of {@link GetAtomicNumberResponse } 86 | * 87 | */ 88 | public GetAtomicNumberResponse createGetAtomicNumberResponse() { 89 | return new GetAtomicNumberResponse(); 90 | } 91 | 92 | /** 93 | * Create an instance of {@link GetAtomicWeight } 94 | * 95 | */ 96 | public GetAtomicWeight createGetAtomicWeight() { 97 | return new GetAtomicWeight(); 98 | } 99 | 100 | /** 101 | * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} 102 | * 103 | */ 104 | @XmlElementDecl(namespace = "http://www.webserviceX.NET", name = "string") 105 | public JAXBElement createString(String value) { 106 | return new JAXBElement(_String_QNAME, String.class, null, value); 107 | } 108 | 109 | } 110 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/periodicTable/Periodictable.java: -------------------------------------------------------------------------------- 1 | package businessLayer.webserviceClients.periodicTable; 2 | 3 | import java.net.MalformedURLException; 4 | import java.net.URL; 5 | import javax.xml.namespace.QName; 6 | import javax.xml.ws.WebEndpoint; 7 | import javax.xml.ws.WebServiceClient; 8 | import javax.xml.ws.WebServiceFeature; 9 | import javax.xml.ws.Service; 10 | 11 | /** 12 | * This class was generated by Apache CXF 3.0.0-milestone2 13 | * 2014-03-14T14:08:52.222+05:30 14 | * Generated source version: 3.0.0-milestone2 15 | * 16 | */ 17 | @WebServiceClient(name = "periodictable", 18 | wsdlLocation = "http://www.webservicex.net/periodictable.asmx?WSDL", 19 | targetNamespace = "http://www.webserviceX.NET") 20 | public class Periodictable extends Service { 21 | 22 | public final static URL WSDL_LOCATION; 23 | 24 | public final static QName SERVICE = new QName("http://www.webserviceX.NET", "periodictable"); 25 | public final static QName PeriodictableHttpGet = new QName("http://www.webserviceX.NET", "periodictableHttpGet"); 26 | public final static QName PeriodictableSoap12 = new QName("http://www.webserviceX.NET", "periodictableSoap12"); 27 | public final static QName PeriodictableSoap = new QName("http://www.webserviceX.NET", "periodictableSoap"); 28 | public final static QName PeriodictableHttpPost = new QName("http://www.webserviceX.NET", "periodictableHttpPost"); 29 | static { 30 | URL url = null; 31 | try { 32 | url = new URL("http://www.webservicex.net/periodictable.asmx?WSDL"); 33 | } catch (MalformedURLException e) { 34 | java.util.logging.Logger.getLogger(Periodictable.class.getName()) 35 | .log(java.util.logging.Level.INFO, 36 | "Can not initialize the default wsdl from {0}", "http://www.webservicex.net/periodictable.asmx?WSDL"); 37 | } 38 | WSDL_LOCATION = url; 39 | } 40 | 41 | public Periodictable(URL wsdlLocation) { 42 | super(wsdlLocation, SERVICE); 43 | } 44 | 45 | public Periodictable(URL wsdlLocation, QName serviceName) { 46 | super(wsdlLocation, serviceName); 47 | } 48 | 49 | public Periodictable() { 50 | super(WSDL_LOCATION, SERVICE); 51 | } 52 | 53 | 54 | /** 55 | * 56 | * @return 57 | * returns PeriodictableHttpGet 58 | */ 59 | @WebEndpoint(name = "periodictableHttpGet") 60 | public PeriodictableHttpGet getPeriodictableHttpGet() { 61 | return super.getPort(PeriodictableHttpGet, PeriodictableHttpGet.class); 62 | } 63 | 64 | /** 65 | * 66 | * @param features 67 | * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. 68 | * @return 69 | * returns PeriodictableHttpGet 70 | */ 71 | @WebEndpoint(name = "periodictableHttpGet") 72 | public PeriodictableHttpGet getPeriodictableHttpGet(WebServiceFeature... features) { 73 | return super.getPort(PeriodictableHttpGet, PeriodictableHttpGet.class, features); 74 | } 75 | /** 76 | * 77 | * @return 78 | * returns PeriodictableSoap 79 | */ 80 | @WebEndpoint(name = "periodictableSoap12") 81 | public PeriodictableSoap getPeriodictableSoap12() { 82 | return super.getPort(PeriodictableSoap12, PeriodictableSoap.class); 83 | } 84 | 85 | /** 86 | * 87 | * @param features 88 | * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. 89 | * @return 90 | * returns PeriodictableSoap 91 | */ 92 | @WebEndpoint(name = "periodictableSoap12") 93 | public PeriodictableSoap getPeriodictableSoap12(WebServiceFeature... features) { 94 | return super.getPort(PeriodictableSoap12, PeriodictableSoap.class, features); 95 | } 96 | /** 97 | * 98 | * @return 99 | * returns PeriodictableSoap 100 | */ 101 | @WebEndpoint(name = "periodictableSoap") 102 | public PeriodictableSoap getPeriodictableSoap() { 103 | return super.getPort(PeriodictableSoap, PeriodictableSoap.class); 104 | } 105 | 106 | /** 107 | * 108 | * @param features 109 | * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. 110 | * @return 111 | * returns PeriodictableSoap 112 | */ 113 | @WebEndpoint(name = "periodictableSoap") 114 | public PeriodictableSoap getPeriodictableSoap(WebServiceFeature... features) { 115 | return super.getPort(PeriodictableSoap, PeriodictableSoap.class, features); 116 | } 117 | /** 118 | * 119 | * @return 120 | * returns PeriodictableHttpPost 121 | */ 122 | @WebEndpoint(name = "periodictableHttpPost") 123 | public PeriodictableHttpPost getPeriodictableHttpPost() { 124 | return super.getPort(PeriodictableHttpPost, PeriodictableHttpPost.class); 125 | } 126 | 127 | /** 128 | * 129 | * @param features 130 | * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. 131 | * @return 132 | * returns PeriodictableHttpPost 133 | */ 134 | @WebEndpoint(name = "periodictableHttpPost") 135 | public PeriodictableHttpPost getPeriodictableHttpPost(WebServiceFeature... features) { 136 | return super.getPort(PeriodictableHttpPost, PeriodictableHttpPost.class, features); 137 | } 138 | 139 | } 140 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/periodicTable/PeriodictableHttpGet.java: -------------------------------------------------------------------------------- 1 | package businessLayer.webserviceClients.periodicTable; 2 | 3 | import javax.jws.WebMethod; 4 | import javax.jws.WebParam; 5 | import javax.jws.WebResult; 6 | import javax.jws.WebService; 7 | import javax.jws.soap.SOAPBinding; 8 | import javax.xml.bind.annotation.XmlSeeAlso; 9 | 10 | /** 11 | * This class was generated by Apache CXF 3.0.0-milestone2 12 | * 2014-03-14T14:08:52.177+05:30 13 | * Generated source version: 3.0.0-milestone2 14 | * 15 | */ 16 | @WebService(targetNamespace = "http://www.webserviceX.NET", name = "periodictableHttpGet") 17 | @XmlSeeAlso({ObjectFactory.class}) 18 | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) 19 | public interface PeriodictableHttpGet { 20 | 21 | /** 22 | * Get atomic Number by element name 23 | */ 24 | @WebResult(name = "string", targetNamespace = "http://www.webserviceX.NET", partName = "Body") 25 | @WebMethod(operationName = "GetAtomicNumber") 26 | public java.lang.String getAtomicNumber( 27 | @WebParam(partName = "ElementName", name = "ElementName", targetNamespace = "http://www.webserviceX.NET") 28 | java.lang.String elementName 29 | ); 30 | 31 | /** 32 | * Get atomic symbol by element name 33 | */ 34 | @WebResult(name = "string", targetNamespace = "http://www.webserviceX.NET", partName = "Body") 35 | @WebMethod(operationName = "GetElementSymbol") 36 | public java.lang.String getElementSymbol( 37 | @WebParam(partName = "ElementName", name = "ElementName", targetNamespace = "http://www.webserviceX.NET") 38 | java.lang.String elementName 39 | ); 40 | 41 | /** 42 | * Get element 43 | */ 44 | @WebResult(name = "string", targetNamespace = "http://www.webserviceX.NET", partName = "Body") 45 | @WebMethod(operationName = "GetAtoms") 46 | public java.lang.String getAtoms(); 47 | 48 | /** 49 | * Get atomic wieght by element name 50 | */ 51 | @WebResult(name = "string", targetNamespace = "http://www.webserviceX.NET", partName = "Body") 52 | @WebMethod(operationName = "GetAtomicWeight") 53 | public java.lang.String getAtomicWeight( 54 | @WebParam(partName = "ElementName", name = "ElementName", targetNamespace = "http://www.webserviceX.NET") 55 | java.lang.String elementName 56 | ); 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/periodicTable/PeriodictableHttpGet_PeriodictableHttpGet_Client.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.periodicTable; 3 | 4 | /** 5 | * Please modify this class to meet your needs 6 | * This class is not complete 7 | */ 8 | 9 | import java.io.File; 10 | import java.net.MalformedURLException; 11 | import java.net.URL; 12 | import javax.xml.namespace.QName; 13 | 14 | /** 15 | * This class was generated by Apache CXF 3.0.0-milestone2 16 | * 2014-03-14T14:08:52.087+05:30 17 | * Generated source version: 3.0.0-milestone2 18 | * 19 | */ 20 | public final class PeriodictableHttpGet_PeriodictableHttpGet_Client { 21 | 22 | private static final QName SERVICE_NAME = new QName("http://www.webserviceX.NET", "periodictable"); 23 | 24 | private PeriodictableHttpGet_PeriodictableHttpGet_Client() { 25 | } 26 | 27 | public static void main(String args[]) throws java.lang.Exception { 28 | URL wsdlURL = Periodictable.WSDL_LOCATION; 29 | if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 30 | File wsdlFile = new File(args[0]); 31 | try { 32 | if (wsdlFile.exists()) { 33 | wsdlURL = wsdlFile.toURI().toURL(); 34 | } else { 35 | wsdlURL = new URL(args[0]); 36 | } 37 | } catch (MalformedURLException e) { 38 | e.printStackTrace(); 39 | } 40 | } 41 | 42 | Periodictable ss = new Periodictable(wsdlURL, SERVICE_NAME); 43 | PeriodictableHttpGet port = ss.getPeriodictableHttpGet(); 44 | 45 | { 46 | System.out.println("Invoking getAtomicNumber..."); 47 | java.lang.String _getAtomicNumber_elementName = ""; 48 | java.lang.String _getAtomicNumber__return = port.getAtomicNumber(_getAtomicNumber_elementName); 49 | System.out.println("getAtomicNumber.result=" + _getAtomicNumber__return); 50 | 51 | 52 | } 53 | { 54 | System.out.println("Invoking getElementSymbol..."); 55 | java.lang.String _getElementSymbol_elementName = ""; 56 | java.lang.String _getElementSymbol__return = port.getElementSymbol(_getElementSymbol_elementName); 57 | System.out.println("getElementSymbol.result=" + _getElementSymbol__return); 58 | 59 | 60 | } 61 | { 62 | System.out.println("Invoking getAtoms..."); 63 | java.lang.String _getAtoms__return = port.getAtoms(); 64 | System.out.println("getAtoms.result=" + _getAtoms__return); 65 | 66 | 67 | } 68 | { 69 | System.out.println("Invoking getAtomicWeight..."); 70 | java.lang.String _getAtomicWeight_elementName = ""; 71 | java.lang.String _getAtomicWeight__return = port.getAtomicWeight(_getAtomicWeight_elementName); 72 | System.out.println("getAtomicWeight.result=" + _getAtomicWeight__return); 73 | 74 | 75 | } 76 | 77 | System.exit(0); 78 | } 79 | 80 | } 81 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/periodicTable/PeriodictableHttpPost.java: -------------------------------------------------------------------------------- 1 | package businessLayer.webserviceClients.periodicTable; 2 | 3 | import javax.jws.WebMethod; 4 | import javax.jws.WebParam; 5 | import javax.jws.WebResult; 6 | import javax.jws.WebService; 7 | import javax.jws.soap.SOAPBinding; 8 | import javax.xml.bind.annotation.XmlSeeAlso; 9 | 10 | /** 11 | * This class was generated by Apache CXF 3.0.0-milestone2 12 | * 2014-03-14T14:08:52.196+05:30 13 | * Generated source version: 3.0.0-milestone2 14 | * 15 | */ 16 | @WebService(targetNamespace = "http://www.webserviceX.NET", name = "periodictableHttpPost") 17 | @XmlSeeAlso({ObjectFactory.class}) 18 | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) 19 | public interface PeriodictableHttpPost { 20 | 21 | /** 22 | * Get atomic Number by element name 23 | */ 24 | @WebResult(name = "string", targetNamespace = "http://www.webserviceX.NET", partName = "Body") 25 | @WebMethod(operationName = "GetAtomicNumber") 26 | public java.lang.String getAtomicNumber( 27 | @WebParam(partName = "ElementName", name = "ElementName", targetNamespace = "http://www.webserviceX.NET") 28 | java.lang.String elementName 29 | ); 30 | 31 | /** 32 | * Get atomic symbol by element name 33 | */ 34 | @WebResult(name = "string", targetNamespace = "http://www.webserviceX.NET", partName = "Body") 35 | @WebMethod(operationName = "GetElementSymbol") 36 | public java.lang.String getElementSymbol( 37 | @WebParam(partName = "ElementName", name = "ElementName", targetNamespace = "http://www.webserviceX.NET") 38 | java.lang.String elementName 39 | ); 40 | 41 | /** 42 | * Get element 43 | */ 44 | @WebResult(name = "string", targetNamespace = "http://www.webserviceX.NET", partName = "Body") 45 | @WebMethod(operationName = "GetAtoms") 46 | public java.lang.String getAtoms(); 47 | 48 | /** 49 | * Get atomic wieght by element name 50 | */ 51 | @WebResult(name = "string", targetNamespace = "http://www.webserviceX.NET", partName = "Body") 52 | @WebMethod(operationName = "GetAtomicWeight") 53 | public java.lang.String getAtomicWeight( 54 | @WebParam(partName = "ElementName", name = "ElementName", targetNamespace = "http://www.webserviceX.NET") 55 | java.lang.String elementName 56 | ); 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/periodicTable/PeriodictableHttpPost_PeriodictableHttpPost_Client.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.periodicTable; 3 | 4 | /** 5 | * Please modify this class to meet your needs 6 | * This class is not complete 7 | */ 8 | 9 | import java.io.File; 10 | import java.net.MalformedURLException; 11 | import java.net.URL; 12 | import javax.xml.namespace.QName; 13 | 14 | /** 15 | * This class was generated by Apache CXF 3.0.0-milestone2 16 | * 2014-03-14T14:08:52.164+05:30 17 | * Generated source version: 3.0.0-milestone2 18 | * 19 | */ 20 | public final class PeriodictableHttpPost_PeriodictableHttpPost_Client { 21 | 22 | private static final QName SERVICE_NAME = new QName("http://www.webserviceX.NET", "periodictable"); 23 | 24 | private PeriodictableHttpPost_PeriodictableHttpPost_Client() { 25 | } 26 | 27 | public static void main(String args[]) throws java.lang.Exception { 28 | URL wsdlURL = Periodictable.WSDL_LOCATION; 29 | if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 30 | File wsdlFile = new File(args[0]); 31 | try { 32 | if (wsdlFile.exists()) { 33 | wsdlURL = wsdlFile.toURI().toURL(); 34 | } else { 35 | wsdlURL = new URL(args[0]); 36 | } 37 | } catch (MalformedURLException e) { 38 | e.printStackTrace(); 39 | } 40 | } 41 | 42 | Periodictable ss = new Periodictable(wsdlURL, SERVICE_NAME); 43 | PeriodictableHttpPost port = ss.getPeriodictableHttpPost(); 44 | 45 | { 46 | System.out.println("Invoking getAtomicNumber..."); 47 | java.lang.String _getAtomicNumber_elementName = ""; 48 | java.lang.String _getAtomicNumber__return = port.getAtomicNumber(_getAtomicNumber_elementName); 49 | System.out.println("getAtomicNumber.result=" + _getAtomicNumber__return); 50 | 51 | 52 | } 53 | { 54 | System.out.println("Invoking getElementSymbol..."); 55 | java.lang.String _getElementSymbol_elementName = ""; 56 | java.lang.String _getElementSymbol__return = port.getElementSymbol(_getElementSymbol_elementName); 57 | System.out.println("getElementSymbol.result=" + _getElementSymbol__return); 58 | 59 | 60 | } 61 | { 62 | System.out.println("Invoking getAtoms..."); 63 | java.lang.String _getAtoms__return = port.getAtoms(); 64 | System.out.println("getAtoms.result=" + _getAtoms__return); 65 | 66 | 67 | } 68 | { 69 | System.out.println("Invoking getAtomicWeight..."); 70 | java.lang.String _getAtomicWeight_elementName = ""; 71 | java.lang.String _getAtomicWeight__return = port.getAtomicWeight(_getAtomicWeight_elementName); 72 | System.out.println("getAtomicWeight.result=" + _getAtomicWeight__return); 73 | 74 | 75 | } 76 | 77 | System.exit(0); 78 | } 79 | 80 | } 81 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/periodicTable/PeriodictableSoap.java: -------------------------------------------------------------------------------- 1 | package businessLayer.webserviceClients.periodicTable; 2 | 3 | import javax.jws.WebMethod; 4 | import javax.jws.WebParam; 5 | import javax.jws.WebResult; 6 | import javax.jws.WebService; 7 | import javax.xml.bind.annotation.XmlSeeAlso; 8 | import javax.xml.ws.RequestWrapper; 9 | import javax.xml.ws.ResponseWrapper; 10 | 11 | /** 12 | * This class was generated by Apache CXF 3.0.0-milestone2 13 | * 2014-03-14T14:08:52.186+05:30 14 | * Generated source version: 3.0.0-milestone2 15 | * 16 | */ 17 | @WebService(targetNamespace = "http://www.webserviceX.NET", name = "periodictableSoap") 18 | @XmlSeeAlso({ObjectFactory.class}) 19 | public interface PeriodictableSoap { 20 | 21 | /** 22 | * Get atomic Number by element name 23 | */ 24 | @WebResult(name = "GetAtomicNumberResult", targetNamespace = "http://www.webserviceX.NET") 25 | @RequestWrapper(localName = "GetAtomicNumber", targetNamespace = "http://www.webserviceX.NET", className = "businessLayer.webserviceClients.periodicTable.GetAtomicNumber") 26 | @WebMethod(operationName = "GetAtomicNumber", action = "http://www.webserviceX.NET/GetAtomicNumber") 27 | @ResponseWrapper(localName = "GetAtomicNumberResponse", targetNamespace = "http://www.webserviceX.NET", className = "businessLayer.webserviceClients.periodicTable.GetAtomicNumberResponse") 28 | public java.lang.String getAtomicNumber( 29 | @WebParam(name = "ElementName", targetNamespace = "http://www.webserviceX.NET") 30 | java.lang.String elementName 31 | ); 32 | 33 | /** 34 | * Get atomic symbol by element name 35 | */ 36 | @WebResult(name = "GetElementSymbolResult", targetNamespace = "http://www.webserviceX.NET") 37 | @RequestWrapper(localName = "GetElementSymbol", targetNamespace = "http://www.webserviceX.NET", className = "businessLayer.webserviceClients.periodicTable.GetElementSymbol") 38 | @WebMethod(operationName = "GetElementSymbol", action = "http://www.webserviceX.NET/GetElementSymbol") 39 | @ResponseWrapper(localName = "GetElementSymbolResponse", targetNamespace = "http://www.webserviceX.NET", className = "businessLayer.webserviceClients.periodicTable.GetElementSymbolResponse") 40 | public java.lang.String getElementSymbol( 41 | @WebParam(name = "ElementName", targetNamespace = "http://www.webserviceX.NET") 42 | java.lang.String elementName 43 | ); 44 | 45 | /** 46 | * Get element 47 | */ 48 | @WebResult(name = "GetAtomsResult", targetNamespace = "http://www.webserviceX.NET") 49 | @RequestWrapper(localName = "GetAtoms", targetNamespace = "http://www.webserviceX.NET", className = "businessLayer.webserviceClients.periodicTable.GetAtoms") 50 | @WebMethod(operationName = "GetAtoms", action = "http://www.webserviceX.NET/GetAtoms") 51 | @ResponseWrapper(localName = "GetAtomsResponse", targetNamespace = "http://www.webserviceX.NET", className = "businessLayer.webserviceClients.periodicTable.GetAtomsResponse") 52 | public java.lang.String getAtoms(); 53 | 54 | /** 55 | * Get atomic wieght by element name 56 | */ 57 | @WebResult(name = "GetAtomicWeightResult", targetNamespace = "http://www.webserviceX.NET") 58 | @RequestWrapper(localName = "GetAtomicWeight", targetNamespace = "http://www.webserviceX.NET", className = "businessLayer.webserviceClients.periodicTable.GetAtomicWeight") 59 | @WebMethod(operationName = "GetAtomicWeight", action = "http://www.webserviceX.NET/GetAtomicWeight") 60 | @ResponseWrapper(localName = "GetAtomicWeightResponse", targetNamespace = "http://www.webserviceX.NET", className = "businessLayer.webserviceClients.periodicTable.GetAtomicWeightResponse") 61 | public java.lang.String getAtomicWeight( 62 | @WebParam(name = "ElementName", targetNamespace = "http://www.webserviceX.NET") 63 | java.lang.String elementName 64 | ); 65 | } 66 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/periodicTable/PeriodictableSoap_PeriodictableSoap12_Client.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.periodicTable; 3 | 4 | /** 5 | * Please modify this class to meet your needs 6 | * This class is not complete 7 | */ 8 | 9 | import java.io.File; 10 | import java.net.MalformedURLException; 11 | import java.net.URL; 12 | import javax.xml.namespace.QName; 13 | 14 | /** 15 | * This class was generated by Apache CXF 3.0.0-milestone2 16 | * 2014-03-14T14:08:52.132+05:30 17 | * Generated source version: 3.0.0-milestone2 18 | * 19 | */ 20 | public final class PeriodictableSoap_PeriodictableSoap12_Client { 21 | 22 | private static final QName SERVICE_NAME = new QName("http://www.webserviceX.NET", "periodictable"); 23 | 24 | private PeriodictableSoap_PeriodictableSoap12_Client() { 25 | } 26 | 27 | public static void main(String args[]) throws java.lang.Exception { 28 | URL wsdlURL = Periodictable.WSDL_LOCATION; 29 | if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 30 | File wsdlFile = new File(args[0]); 31 | try { 32 | if (wsdlFile.exists()) { 33 | wsdlURL = wsdlFile.toURI().toURL(); 34 | } else { 35 | wsdlURL = new URL(args[0]); 36 | } 37 | } catch (MalformedURLException e) { 38 | e.printStackTrace(); 39 | } 40 | } 41 | 42 | Periodictable ss = new Periodictable(wsdlURL, SERVICE_NAME); 43 | PeriodictableSoap port = ss.getPeriodictableSoap12(); 44 | 45 | { 46 | System.out.println("Invoking getAtomicNumber..."); 47 | java.lang.String _getAtomicNumber_elementName = ""; 48 | java.lang.String _getAtomicNumber__return = port.getAtomicNumber(_getAtomicNumber_elementName); 49 | System.out.println("getAtomicNumber.result=" + _getAtomicNumber__return); 50 | 51 | 52 | } 53 | { 54 | System.out.println("Invoking getElementSymbol..."); 55 | java.lang.String _getElementSymbol_elementName = ""; 56 | java.lang.String _getElementSymbol__return = port.getElementSymbol(_getElementSymbol_elementName); 57 | System.out.println("getElementSymbol.result=" + _getElementSymbol__return); 58 | 59 | 60 | } 61 | { 62 | System.out.println("Invoking getAtoms..."); 63 | java.lang.String _getAtoms__return = port.getAtoms(); 64 | System.out.println("getAtoms.result=" + _getAtoms__return); 65 | 66 | 67 | } 68 | { 69 | System.out.println("Invoking getAtomicWeight..."); 70 | java.lang.String _getAtomicWeight_elementName = ""; 71 | java.lang.String _getAtomicWeight__return = port.getAtomicWeight(_getAtomicWeight_elementName); 72 | System.out.println("getAtomicWeight.result=" + _getAtomicWeight__return); 73 | 74 | 75 | } 76 | 77 | System.exit(0); 78 | } 79 | 80 | } 81 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/periodicTable/PeriodictableSoap_PeriodictableSoap_Client.java: -------------------------------------------------------------------------------- 1 | 2 | package businessLayer.webserviceClients.periodicTable; 3 | 4 | /** 5 | * Please modify this class to meet your needs 6 | * This class is not complete 7 | */ 8 | 9 | import java.io.File; 10 | import java.net.MalformedURLException; 11 | import java.net.URL; 12 | import javax.xml.namespace.QName; 13 | 14 | /** 15 | * This class was generated by Apache CXF 3.0.0-milestone2 16 | * 2014-03-14T14:08:52.151+05:30 17 | * Generated source version: 3.0.0-milestone2 18 | * 19 | */ 20 | public final class PeriodictableSoap_PeriodictableSoap_Client { 21 | 22 | private static final QName SERVICE_NAME = new QName("http://www.webserviceX.NET", "periodictable"); 23 | 24 | private PeriodictableSoap_PeriodictableSoap_Client() { 25 | } 26 | 27 | public static void main(String args[]) throws java.lang.Exception { 28 | URL wsdlURL = Periodictable.WSDL_LOCATION; 29 | if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 30 | File wsdlFile = new File(args[0]); 31 | try { 32 | if (wsdlFile.exists()) { 33 | wsdlURL = wsdlFile.toURI().toURL(); 34 | } else { 35 | wsdlURL = new URL(args[0]); 36 | } 37 | } catch (MalformedURLException e) { 38 | e.printStackTrace(); 39 | } 40 | } 41 | 42 | Periodictable ss = new Periodictable(wsdlURL, SERVICE_NAME); 43 | PeriodictableSoap port = ss.getPeriodictableSoap(); 44 | 45 | { 46 | System.out.println("Invoking getAtomicNumber..."); 47 | java.lang.String _getAtomicNumber_elementName = ""; 48 | java.lang.String _getAtomicNumber__return = port.getAtomicNumber(_getAtomicNumber_elementName); 49 | System.out.println("getAtomicNumber.result=" + _getAtomicNumber__return); 50 | 51 | 52 | } 53 | { 54 | System.out.println("Invoking getElementSymbol..."); 55 | java.lang.String _getElementSymbol_elementName = ""; 56 | java.lang.String _getElementSymbol__return = port.getElementSymbol(_getElementSymbol_elementName); 57 | System.out.println("getElementSymbol.result=" + _getElementSymbol__return); 58 | 59 | 60 | } 61 | { 62 | System.out.println("Invoking getAtoms..."); 63 | java.lang.String _getAtoms__return = port.getAtoms(); 64 | System.out.println("getAtoms.result=" + _getAtoms__return); 65 | 66 | 67 | } 68 | { 69 | System.out.println("Invoking getAtomicWeight..."); 70 | java.lang.String _getAtomicWeight_elementName = ""; 71 | java.lang.String _getAtomicWeight__return = port.getAtomicWeight(_getAtomicWeight_elementName); 72 | System.out.println("getAtomicWeight.result=" + _getAtomicWeight__return); 73 | 74 | 75 | } 76 | 77 | System.exit(0); 78 | } 79 | 80 | } 81 | -------------------------------------------------------------------------------- /src/main/java/businessLayer/webserviceClients/periodicTable/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://www.webserviceX.NET", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) 2 | package businessLayer.webserviceClients.periodicTable; 3 | -------------------------------------------------------------------------------- /src/main/java/pages/BasePage.java: -------------------------------------------------------------------------------- 1 | package pages; 2 | 3 | import org.apache.log4j.Logger; 4 | import utils.RuntimeUtils; 5 | 6 | public class BasePage { 7 | protected Logger logger; 8 | 9 | public BasePage(){ 10 | logger = (Logger) RuntimeUtils.retrieveState("logger"); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/pages/PageUtils.java: -------------------------------------------------------------------------------- 1 | package pages; 2 | 3 | import utils.DriverUtils; 4 | 5 | public class PageUtils { 6 | public static void navigateTo(String url) { 7 | DriverUtils.getDriver().get(url); 8 | DriverUtils.saveScreenShotAs("navigateTo", "Navigate to: " + url); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/pages/SearchPage.java: -------------------------------------------------------------------------------- 1 | package pages; 2 | 3 | import org.apache.log4j.Logger; 4 | import org.openqa.selenium.By; 5 | import org.openqa.selenium.WebDriver; 6 | import utils.DriverUtils; 7 | 8 | public class SearchPage extends BasePage { 9 | private final WebDriver driver; 10 | private String searchInputBoxId = "gbqfq"; 11 | private String searchButtonId = "gbqfb"; 12 | private String numberOfSearchResultsId = "resultStats"; 13 | 14 | public SearchPage() { 15 | driver = DriverUtils.getDriver(); 16 | } 17 | 18 | public void searchFor(String searchCriteria) { 19 | enterSearchCriteria(searchCriteria); 20 | search(); 21 | } 22 | 23 | private void enterSearchCriteria(String searchCriteria) { 24 | logger.info("enterSearchCriteria: " + searchCriteria); 25 | driver.findElement(By.id(searchInputBoxId)).sendKeys(searchCriteria); 26 | } 27 | 28 | private void search() { 29 | driver.findElement(By.id(searchButtonId)).click(); 30 | } 31 | 32 | public int getNumberOfSearchResults() { 33 | String numberOfSearchResults = driver.findElement(By.id(numberOfSearchResultsId)).getText(); 34 | DriverUtils.saveScreenShotAs("getNumberOfSearchResults", "Search results: " + numberOfSearchResults); 35 | numberOfSearchResults = numberOfSearchResults.replaceAll("About ", "").replaceAll(" results.*", "").replaceAll(",",""); 36 | logger.info("numberOfSearchResults: " + numberOfSearchResults); 37 | return Integer.valueOf(numberOfSearchResults); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/utils/CustomAsserts.java: -------------------------------------------------------------------------------- 1 | package utils; 2 | 3 | import org.apache.log4j.Logger; 4 | import org.junit.Assert; 5 | 6 | import java.util.ArrayList; 7 | 8 | public class CustomAsserts { 9 | private static ArrayList verificationFailures = new ArrayList(); 10 | 11 | public static void assertTrue(String errorMessage, boolean condition) { 12 | Logger logger = (Logger) RuntimeUtils.retrieveState("logger"); 13 | try { 14 | Assert.assertTrue(condition); 15 | } catch (AssertionError ae) { 16 | logger.info("*****Custom Assertion Error" + errorMessage + "*****\n" + ae.toString()); 17 | throw ae; 18 | } 19 | } 20 | 21 | public static void assertFalse(String failureMessage, boolean condition) { 22 | assertEquals(failureMessage, false, condition); 23 | } 24 | 25 | public static void assertEquals(String failureMessage, Object expected, Object actual){ 26 | org.junit.Assert.assertEquals(failureMessage, expected, actual); 27 | } 28 | 29 | public static void assertContains (String failureMessage, String expectedSubString, String actualCompleteString) { 30 | failureMessage = failureMessage + "\n\t\tSubString: " + expectedSubString + "\n\t\t NOT PRESENT IN: " 31 | + actualCompleteString; 32 | assertTrue(failureMessage, actualCompleteString.contains(expectedSubString)); 33 | } 34 | 35 | public static void verifyTrue(String failureMessage, boolean condition) { 36 | verifyEquals(failureMessage, true, condition); 37 | } 38 | 39 | 40 | public static void verifyFalse(String failureMessage, boolean condition) { 41 | verifyEquals(failureMessage, false, condition); 42 | } 43 | 44 | public static void verifyEquals(String failureMessage, Object expected, Object actual) { 45 | try { 46 | org.junit.Assert.assertEquals(failureMessage, expected, actual); 47 | } catch (AssertionError ex) { 48 | String verificationFailureMessage = "\nVerification Failure"; 49 | verificationFailureMessage += "\t" + failureMessage + "\n\t\tExpected: " + expected.toString() + "\n\t\t Actual: " 50 | + actual.toString(); 51 | verificationFailureMessage += "\nException: " + ex.toString(); 52 | addVerificationFailure(verificationFailureMessage); 53 | } 54 | } 55 | 56 | public static void verifyContains (String failureMessage, String expectedSubString, String actualCompleteString) { 57 | failureMessage = failureMessage + "\n\t\tSubString: " + expectedSubString + "\n\t\t NOT PRESENT IN: " 58 | + actualCompleteString; 59 | verifyTrue(failureMessage,actualCompleteString.contains(expectedSubString)); 60 | } 61 | 62 | // public static void assertTrue(String failureMessage, boolean condition){ 63 | // assertEquals(failureMessage, true, condition); 64 | // } 65 | 66 | private static void addVerificationFailure(String verificationFailureMessage) { 67 | verificationFailures.add(verificationFailureMessage); 68 | } 69 | public static ArrayList getVerificationFailures() { 70 | return verificationFailures; 71 | } 72 | 73 | public static void resetVerificationFailures() { 74 | verificationFailures.clear(); 75 | } 76 | 77 | } 78 | -------------------------------------------------------------------------------- /src/main/java/utils/CustomHTMLReporter.java: -------------------------------------------------------------------------------- 1 | package utils; 2 | 3 | import net.masterthought.cucumber.ReportBuilder; 4 | 5 | import java.io.File; 6 | import java.util.ArrayList; 7 | import java.util.List; 8 | 9 | public class CustomHTMLReporter { 10 | public static void main (String[] args) { 11 | File reportOutputDirectory = new File("build/reports/pretty"); 12 | List jsonReportFiles = new ArrayList(); 13 | jsonReportFiles.add("build/reports/cucumber-json-report.json"); 14 | 15 | String buildNumber = "1"; 16 | String buildProjectName = "cuke-jvm-sample"; 17 | String pluginURL = ""; 18 | Boolean skippedFails = false; 19 | Boolean undefinedFails = false; 20 | Boolean flashCharts = true; 21 | Boolean runWithJenkins = false; 22 | Boolean artifactsEnabled = true; 23 | Boolean highCharts = false; 24 | 25 | ReportBuilder reportBuilder = null; 26 | try { 27 | reportBuilder = new ReportBuilder(jsonReportFiles,reportOutputDirectory,"","1", 28 | "buildProjectName",false,false, true,true, false, "", 29 | false); 30 | 31 | reportBuilder.generateReports(); 32 | } catch (Exception e) { 33 | e.printStackTrace(); 34 | } 35 | 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/utils/DriverUtils.java: -------------------------------------------------------------------------------- 1 | package utils; 2 | 3 | import org.apache.log4j.Logger; 4 | import org.openqa.selenium.OutputType; 5 | import org.openqa.selenium.TakesScreenshot; 6 | import org.openqa.selenium.WebDriver; 7 | import org.openqa.selenium.firefox.FirefoxDriver; 8 | 9 | import java.io.File; 10 | import java.text.SimpleDateFormat; 11 | import java.util.Date; 12 | import java.util.concurrent.TimeUnit; 13 | 14 | public class DriverUtils { 15 | private static WebDriver driver; 16 | 17 | private static WebDriver startWebDriver() { 18 | Logger logger = (Logger) RuntimeUtils.retrieveState("logger"); 19 | logger.info("Start WebDriver"); 20 | WebDriver d = new FirefoxDriver(); 21 | d.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); 22 | d.manage().timeouts().pageLoadTimeout(60, TimeUnit.SECONDS); 23 | d.manage().timeouts().setScriptTimeout(60,TimeUnit.SECONDS); 24 | d.manage().window().maximize(); 25 | return d; 26 | } 27 | 28 | public static byte[] takeScreenShot() 29 | { 30 | return ((TakesScreenshot) driver).getScreenshotAs(OutputType.BYTES); 31 | } 32 | 33 | public static String saveScreenShotAs(String fileName, String comment) { 34 | String savedFileName = fileName; 35 | Logger logger = (Logger) RuntimeUtils.retrieveState("logger"); 36 | Date date = new Date(); 37 | SimpleDateFormat simpleDateFormat = new SimpleDateFormat("MM-dd-yyyy h-mm-ssa"); 38 | String formattedDate = simpleDateFormat.format(date); 39 | 40 | savedFileName = "build/reports/" + FileUtils.getNormalisedFileName(fileName) + "_" + formattedDate + ".png"; 41 | File screenshot = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE); 42 | screenshot.renameTo(new File(savedFileName)); 43 | logger.info("\n\t" + comment + "\n\t\tScreen shot saved in: " + savedFileName); 44 | return savedFileName; 45 | } 46 | 47 | public static WebDriver resetWebDriver() { 48 | if (driver == null) { 49 | driver = startWebDriver(); 50 | } 51 | else 52 | { 53 | driver.manage().deleteAllCookies(); 54 | } 55 | return driver; 56 | } 57 | 58 | public static WebDriver getDriver() { 59 | if (driver == null) { 60 | driver = startWebDriver(); 61 | } 62 | return driver; 63 | } 64 | 65 | public static void quitDriver() { 66 | Logger logger = (Logger) RuntimeUtils.retrieveState("logger"); 67 | logger.info("Quit WebDriver"); 68 | if (driver != null) driver.quit(); 69 | driver = null; 70 | } 71 | } -------------------------------------------------------------------------------- /src/main/java/utils/FileUtils.java: -------------------------------------------------------------------------------- 1 | package utils; 2 | 3 | import gherkin.deps.com.google.gson.Gson; 4 | import org.json.JSONException; 5 | import org.json.JSONObject; 6 | import org.json.XML; 7 | 8 | import java.io.*; 9 | import java.util.HashMap; 10 | 11 | public class FileUtils { 12 | public static String convertStringToJsonString(String xmlSource) { 13 | JSONObject xmlJSONObj; 14 | String jsonPrettyPrintString = ""; 15 | try { 16 | if (!xmlSource.startsWith("\n" + xmlSource); 18 | } 19 | xmlJSONObj = XML.toJSONObject(xmlSource); 20 | jsonPrettyPrintString = xmlJSONObj.toString(4); 21 | } catch (JSONException e) { 22 | e.printStackTrace(); 23 | } 24 | return jsonPrettyPrintString; 25 | } 26 | 27 | public static Object loadJsonEntityFrom(String jsonFile, String section) { 28 | HashMap jsonFileContent = getJsonFileContent(jsonFile); 29 | return jsonFileContent.get(section); 30 | } 31 | 32 | public static String getNormalisedFileName(String name) { 33 | name = name.replaceAll("[^[^a-zA-Z0-9]*]", ""); 34 | return name.length()>50 ? name.substring(0,50) : name; 35 | } 36 | 37 | // public static String getAbsolutePathForEntity(String fileName) { 38 | // File f; 39 | // String path = ""; 40 | // 41 | // try { 42 | // f = new File(fileName); 43 | // if (f.exists()) { 44 | // path = f.getAbsolutePath(); 45 | // } 46 | // } catch (Exception e) { 47 | // e.printStackTrace(); 48 | // } 49 | // System.out.println("\tAbsolute path for File: " + fileName + "\n\tAbsolute Path: " + path); 50 | // return path; 51 | // } 52 | 53 | private static HashMap getJsonFileContent(String fileName) { 54 | fileName = "src/test/entities/" + fileName + ".json"; 55 | HashMap loadedJson = new HashMap(); 56 | try { 57 | BufferedReader bufferedReader = new BufferedReader(new FileReader(fileName)); 58 | Gson gson = new Gson(); 59 | loadedJson = gson.fromJson(bufferedReader, HashMap.class); 60 | } catch (IOException e) { 61 | e.printStackTrace(); 62 | } 63 | return loadedJson; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /src/main/java/utils/RuntimeUtils.java: -------------------------------------------------------------------------------- 1 | package utils; 2 | 3 | import java.util.HashMap; 4 | 5 | public class RuntimeUtils { 6 | private static HashMap state = new HashMap(); 7 | 8 | private RuntimeUtils() {} 9 | 10 | public static void saveState(String key, Object value) { 11 | state.put(key, value); 12 | } 13 | 14 | public static Object retrieveState(String key) { 15 | return state.get(key); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=INFO, LogToConsole 2 | log4j.logger.testExecutionLogger = INFO, LogToConsole, LogToFile 3 | log4j.logger.benchmarkLogger=INFO, LogToBenchmarkFile 4 | 5 | log4j.additivity.testExecutionLogger = false 6 | log4j.additivity.benchmarkLogger=false 7 | 8 | 9 | log4j.logger.org.apache.cxf=INFO 10 | 11 | log4j.appender.LogToConsole=org.apache.log4j.ConsoleAppender 12 | log4j.appender.LogToConsole.threshold=INFO 13 | log4j.appender.LogToConsole.layout=org.apache.log4j.PatternLayout 14 | log4j.appender.LogToConsole.layout.ConversionPattern=%d %-5p (%13F:%L) %3x - %m%n 15 | 16 | log4j.appender.LogToFile=org.apache.log4j.FileAppender 17 | log4j.appender.LogToFile.File=build//reports//testExecution.log 18 | log4j.appender.LogToFile.threshold=INFO 19 | log4j.appender.LogToFile.append=true 20 | log4j.appender.LogToFile.layout=org.apache.log4j.PatternLayout 21 | log4j.appender.LogToFile.layout.ConversionPattern=%d %-5p (%13F:%L) %3x - %m%n 22 | 23 | # Appender File writes to the file "target\\benchmarks.log". 24 | log4j.appender.LogToBenchmarkFile=org.apache.log4j.FileAppender 25 | log4j.appender.LogToBenchmarkFile.File=build//reports//benchmarks.log 26 | log4j.appender.LogToBenchmarkFile.threshold=INFO 27 | log4j.appender.LogToBenchmarkFile.Append=true 28 | log4j.appender.LogToBenchmarkFile.layout=org.apache.log4j.PatternLayout 29 | log4j.appender.LogToBenchmarkFile.layout.ConversionPattern=%d || %-5p || (%13F:%L) || %m%n 30 | -------------------------------------------------------------------------------- /src/test/entities/addresses.json: -------------------------------------------------------------------------------- 1 | { 2 | "bne_res_1": { 3 | "numberStreet": "51 hope street", 4 | "postCode": "5311", 5 | "city": "brisbane", 6 | "state": "QLD", 7 | "country": "Australia" 8 | }, 9 | "bne_res_2": { 10 | "numberStreet": "52 hope street", 11 | "postCode": "5322", 12 | "city": "sunshine coast", 13 | "state": "QLD", 14 | "country": "Australia" 15 | }, 16 | "bne_res_3": { 17 | "numberStreet": "53 hope street", 18 | "postCode": "5333", 19 | "city": "gold coast", 20 | "state": "QLD", 21 | "country": "Australia" 22 | }, 23 | "bne_res_4": { 24 | "numberStreet": "54 hope street", 25 | "postCode": "5344", 26 | "city": "gold coast", 27 | "state": "QLD", 28 | "country": "Australia" 29 | } 30 | } -------------------------------------------------------------------------------- /src/test/entities/contact_info.json: -------------------------------------------------------------------------------- 1 | { 2 | "individual_1": { 3 | "firstName": "John", 4 | "lastName": "Doe", 5 | "email": "johndoe@somedomain.com", 6 | "mobilePhone": "04000789433", 7 | "dob": "01/10/1970" 8 | }, 9 | "individual_2": { 10 | "firstName": "Mary", 11 | "lastName": "Ann", 12 | "email": "maryann@somedomain.com", 13 | "mobilePhone": "072340789433", 14 | "dob": "01/10/1987" 15 | } 16 | } -------------------------------------------------------------------------------- /src/test/java/gradle/cucumber/RunCukesTest.java: -------------------------------------------------------------------------------- 1 | package gradle.cucumber; 2 | 3 | import cucumber.api.java.After; 4 | import cucumber.api.java.Before; 5 | import cucumber.api.junit.Cucumber; 6 | import cucumber.api.Scenario; 7 | import org.apache.log4j.Logger; 8 | import org.apache.log4j.PropertyConfigurator; 9 | import org.junit.runner.RunWith; 10 | import utils.DriverUtils; 11 | import utils.RuntimeUtils; 12 | 13 | import java.io.FileInputStream; 14 | import java.io.IOException; 15 | import java.util.Properties; 16 | 17 | @RunWith(Cucumber.class) 18 | public class RunCukesTest { 19 | Logger logger = null; 20 | 21 | @Before() 22 | public void commonSetup() { 23 | logger = setupLogger(); 24 | logger.info("In Common Before Hook"); 25 | } 26 | 27 | @Before("@browser") 28 | public void setUpWebDriver() { 29 | logger = (Logger) RuntimeUtils.retrieveState("logger"); 30 | logger.info("In @browser Before Hook"); 31 | DriverUtils.resetWebDriver(); 32 | } 33 | 34 | @After("@browser") 35 | public void takeScreenShot(Scenario scenario) { 36 | logger = (Logger) RuntimeUtils.retrieveState("logger"); 37 | logger.info("In @browser After Hook"); 38 | logger.info("Scenario: " + scenario.toString() + " Failed. Taking screenshot"); 39 | if (scenario.isFailed()) 40 | { 41 | logger.info("Scenario: " + scenario.toString() + " Failed. Taking screenshot"); 42 | scenario.embed(DriverUtils.takeScreenShot(), "image/png"); 43 | } 44 | DriverUtils.quitDriver(); 45 | } 46 | 47 | private Logger setupLogger() { 48 | logger = Logger.getLogger("testExecutionLogger"); 49 | String log4JPropertyFile = "src/main/resources/log4j.properties"; 50 | Properties p = new Properties(); 51 | 52 | try { 53 | p.load(new FileInputStream(log4JPropertyFile)); 54 | PropertyConfigurator.configure(p); 55 | logger.info("Wow! Logger is configured!"); 56 | } catch (IOException e) { 57 | e.printStackTrace(); 58 | } 59 | RuntimeUtils.saveState("logger", logger); 60 | return logger; 61 | } 62 | } -------------------------------------------------------------------------------- /src/test/java/gradle/cucumber/steps/CreateCustomer.java: -------------------------------------------------------------------------------- 1 | package gradle.cucumber.steps; 2 | 3 | import cucumber.api.PendingException; 4 | import cucumber.api.java.en.Given; 5 | import cucumber.api.DataTable; 6 | import cucumber.api.java.en.When; 7 | import gherkin.deps.com.google.gson.internal.StringMap; 8 | import utils.EntityUtils; 9 | 10 | import java.util.HashMap; 11 | 12 | import static utils.FileUtils.loadJsonEntityFrom; 13 | 14 | public class CreateCustomer { 15 | @Given("^I create a new Individual Customer$") 16 | public void I_create_a_new_Individual_Customer(DataTable entities) throws Throwable { 17 | HashMap loadedTestData = EntityUtils.getTestDataFromEntities(entities); 18 | } 19 | 20 | @When("^I load test data implicitly$") 21 | public void I_load_test_data_implicitly() throws Throwable { 22 | HashMap loadedTestData = EntityUtils.getTestDataFromEntities("addresses", "bne_res_4"); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/test/java/gradle/cucumber/steps/globalWeather/GlobalWeatherSteps.java: -------------------------------------------------------------------------------- 1 | package gradle.cucumber.steps.globalWeather; 2 | 3 | import businessLayer.weather.Weather; 4 | import cucumber.api.java.en.Then; 5 | import cucumber.api.java.en.When; 6 | 7 | public class GlobalWeatherSteps { 8 | @When("^I get list of cities for \"(.*)\"$") 9 | public void I_get_list_of_cities_for_country(String forCountry) throws Throwable { 10 | Weather weather = new Weather(); 11 | weather.getCities(forCountry); 12 | } 13 | 14 | @Then("^I can see the weather for (\\d+) random cities in \"([^\"]*)\"$") 15 | public void I_can_see_the_weather_for_random_cities_in(int numberOfCities, String forCountry) throws Throwable { 16 | Weather weather = new Weather(); 17 | weather.getWeatherForCities(numberOfCities, forCountry); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/test/java/gradle/cucumber/steps/google/SearchSteps.java: -------------------------------------------------------------------------------- 1 | package gradle.cucumber.steps.google; 2 | 3 | import businessLayer.google.search.Search; 4 | import cucumber.api.java.en.Given; 5 | import cucumber.api.java.en.Then; 6 | import cucumber.api.java.en.When; 7 | 8 | public class SearchSteps { 9 | @Given("^I am on the google search page$") 10 | public void I_am_on_the_google_search_page() throws Throwable { 11 | Search search = new Search(); 12 | search.navigateToSearchPage(); 13 | } 14 | 15 | @When("^I search for \"([^\"]*)\"$") 16 | public void I_search_for(String searchCriteria) throws Throwable { 17 | Search search = new Search(); 18 | search.searchFor(searchCriteria); 19 | } 20 | 21 | @Then("^I see a list of related posts$") 22 | public void I_see_a_list_of_related_posts() throws Throwable { 23 | Search search = new Search(); 24 | search.assertSearchResultsFound(); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/test/resources/CreateIndividualCustomer.feature: -------------------------------------------------------------------------------- 1 | Feature: Test Data Management example 2 | 3 | @json 4 | Scenario: Use test data from json example 5 | Given I create a new Individual Customer 6 | | entity_type | data_section_to_use | 7 | | contact_info | individual_1 | 8 | | addresses | bne_res_3 | 9 | 10 | @json 11 | Scenario Outline: Use test data across steps 12 | Given I create a new Individual Customer 13 | | entity_type | data_section_to_use | randomize | 14 | | contact_info | individual_1 | | 15 | | addresses | | | 16 | When I load test data implicitly 17 | 18 | Examples: 19 | | data_section_to_use | randomize | 20 | | bne_res_2 | true | 21 | | bne_res_3 | false | 22 | -------------------------------------------------------------------------------- /src/test/resources/google/search.feature: -------------------------------------------------------------------------------- 1 | Feature: Google search feature 2 | 3 | @browser 4 | Scenario Outline: Search for specific content related posts 5 | Given I am on the google search page 6 | When I search for "" 7 | Then I see a list of related posts 8 | Examples: 9 | | content | 10 | | cucumber_jvm | 11 | | Essence of Testing | -------------------------------------------------------------------------------- /src/test/resources/weather/weather.feature: -------------------------------------------------------------------------------- 1 | Feature: Weather check using WebService 2 | 3 | @webservice 4 | Scenario Outline: Search for specific content related posts 5 | When I get list of cities for "" 6 | Then I can see the weather for 3 random cities in "" 7 | 8 | Examples: 9 | |country| 10 | |India | 11 | 12 | --------------------------------------------------------------------------------