From 6f0592cb2b753fb47297464a3fa1a312620da3ba Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Tue, 18 Jan 2022 20:31:22 +0100 Subject: Add WSDL exercise --- Year_3/TSDWL/WSDL/NetSix/NetSixServer/build.xml | 71 + .../NetSixServer/build/web/META-INF/MANIFEST.MF | 2 + .../web/WEB-INF/classes/.netbeans_automatic_build | 0 .../web/WEB-INF/classes/.netbeans_update_resources | 0 .../build/web/WEB-INF/glassfish-web.xml | 10 + .../NetSix/NetSixServer/build/web/WEB-INF/web.xml | 12 + .../WSDL/NetSix/NetSixServer/dist/NetSixServer.war | Bin 0 -> 3228 bytes .../NetSix/NetSixServer/nbproject/ant-deploy.xml | 150 ++ .../NetSix/NetSixServer/nbproject/build-impl.xml | 1442 ++++++++++++++++++++ .../NetSixServer/nbproject/genfiles.properties | 8 + .../WSDL/NetSix/NetSixServer/nbproject/jax-ws.xml | 9 + .../NetSix/NetSixServer/nbproject/jaxws-build.xml | 35 + .../nbproject/private/private.properties | 7 + .../NetSixServer/nbproject/project.properties | 89 ++ .../WSDL/NetSix/NetSixServer/nbproject/project.xml | 21 + .../WSDL/NetSix/NetSixServer/src/conf/MANIFEST.MF | 2 + .../src/java/me/dcariotti/wsserv/WsServ.java | 46 + .../WSDL/NetSix/NetSixServer/web/WEB-INF/web.xml | 12 + .../TSDWL/WSDL/NetSix/NetSixServerClient/build.xml | 71 + .../jax-ws/me/dcariotti/netsix/ObjectFactory.java | 71 + .../jax-ws/me/dcariotti/netsix/Richiedi.java | 79 ++ .../me/dcariotti/netsix/RichiediResponse.java | 54 + .../jax-ws/me/dcariotti/netsix/WsServ.java | 45 + .../jax-ws/me/dcariotti/netsix/WsServ_Service.java | 94 ++ .../jax-ws/me/dcariotti/netsix/package-info.java | 2 + .../WsServ/me/dcariotti/netsix/ObjectFactory.java | 71 + .../WsServ/me/dcariotti/netsix/Richiedi.java | 79 ++ .../me/dcariotti/netsix/RichiediResponse.java | 54 + .../WsServ/me/dcariotti/netsix/WsServ.java | 45 + .../WsServ/me/dcariotti/netsix/WsServ_Service.java | 94 ++ .../WsServ/me/dcariotti/netsix/package-info.java | 2 + .../build/web/META-INF/MANIFEST.MF | 2 + .../build/web/META-INF/context.xml | 2 + .../web/WEB-INF/classes/.netbeans_automatic_build | 0 .../web/WEB-INF/classes/.netbeans_update_resources | 0 .../build/web/WEB-INF/jax-ws-catalog.xml | 5 + .../NetSix/NetSixServerClient/build/web/index.html | 16 + .../NetSixServerClient/build/web/search.html | 28 + .../WSDL/NetSix/NetSixServerClient/catalog.xml | 5 + .../NetSixServerClient/dist/NetSixServerClient.war | Bin 0 -> 16150 bytes .../NetSixServerClient/nbproject/ant-deploy.xml | 76 ++ .../NetSixServerClient/nbproject/build-impl.xml | 1442 ++++++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../NetSix/NetSixServerClient/nbproject/jax-ws.xml | 42 + .../NetSixServerClient/nbproject/jaxws-build.xml | 46 + .../nbproject/private/private.properties | 5 + .../nbproject/project.properties | 84 ++ .../NetSixServerClient/nbproject/project.xml | 23 + .../NetSix/NetSixServerClient/src/conf/MANIFEST.MF | 2 + .../wsdl/localhost_8080/NetSixServer/WsServ.wsdl | 36 + .../localhost_8080/NetSixServer/WsServ.xsd_1.xsd | 19 + .../java/me/dcariotti/netsix/NetSixServlet.java | 122 ++ .../NetSixServerClient/web/META-INF/context.xml | 2 + .../web/WEB-INF/jax-ws-catalog.xml | 5 + .../WSDL/NetSix/NetSixServerClient/web/index.html | 16 + .../WSDL/NetSix/NetSixServerClient/web/search.html | 28 + 56 files changed, 4691 insertions(+) create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServer/build.xml create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServer/build/web/META-INF/MANIFEST.MF create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServer/build/web/WEB-INF/classes/.netbeans_automatic_build create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServer/build/web/WEB-INF/classes/.netbeans_update_resources create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServer/build/web/WEB-INF/glassfish-web.xml create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServer/build/web/WEB-INF/web.xml create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServer/dist/NetSixServer.war create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/ant-deploy.xml create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/build-impl.xml create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/genfiles.properties create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/jax-ws.xml create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/jaxws-build.xml create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/private/private.properties create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/project.properties create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/project.xml create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServer/src/conf/MANIFEST.MF create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServer/src/java/me/dcariotti/wsserv/WsServ.java create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServer/web/WEB-INF/web.xml create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build.xml create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/ObjectFactory.java create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/Richiedi.java create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/RichiediResponse.java create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/WsServ.java create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/WsServ_Service.java create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/package-info.java create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated/jax-wsCache/WsServ/me/dcariotti/netsix/ObjectFactory.java create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated/jax-wsCache/WsServ/me/dcariotti/netsix/Richiedi.java create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated/jax-wsCache/WsServ/me/dcariotti/netsix/RichiediResponse.java create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated/jax-wsCache/WsServ/me/dcariotti/netsix/WsServ.java create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated/jax-wsCache/WsServ/me/dcariotti/netsix/WsServ_Service.java create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated/jax-wsCache/WsServ/me/dcariotti/netsix/package-info.java create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/META-INF/MANIFEST.MF create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/META-INF/context.xml create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/WEB-INF/classes/.netbeans_automatic_build create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/WEB-INF/classes/.netbeans_update_resources create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/WEB-INF/jax-ws-catalog.xml create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/index.html create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/search.html create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/catalog.xml create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/dist/NetSixServerClient.war create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/ant-deploy.xml create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/build-impl.xml create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/genfiles.properties create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/jax-ws.xml create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/jaxws-build.xml create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/private/private.properties create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/project.properties create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/project.xml create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/src/conf/MANIFEST.MF create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/src/conf/xml-resources/web-service-references/WsServ/wsdl/localhost_8080/NetSixServer/WsServ.wsdl create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/src/conf/xml-resources/web-service-references/WsServ/wsdl/localhost_8080/NetSixServer/WsServ.xsd_1.xsd create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/src/java/me/dcariotti/netsix/NetSixServlet.java create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/web/META-INF/context.xml create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/web/WEB-INF/jax-ws-catalog.xml create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/web/index.html create mode 100644 Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/web/search.html diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServer/build.xml b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/build.xml new file mode 100644 index 0000000..5eae93b --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/build.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + Builds, tests, and runs the project NetSixServer. + + + diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServer/build/web/META-INF/MANIFEST.MF b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/build/web/META-INF/MANIFEST.MF new file mode 100644 index 0000000..59499bc --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/build/web/META-INF/MANIFEST.MF @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 + diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServer/build/web/WEB-INF/classes/.netbeans_automatic_build b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/build/web/WEB-INF/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServer/build/web/WEB-INF/classes/.netbeans_update_resources b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/build/web/WEB-INF/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServer/build/web/WEB-INF/glassfish-web.xml b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/build/web/WEB-INF/glassfish-web.xml new file mode 100644 index 0000000..13e0059 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/build/web/WEB-INF/glassfish-web.xml @@ -0,0 +1,10 @@ + + + + + + + Keep a copy of the generated servlet class' java code. + + + diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServer/build/web/WEB-INF/web.xml b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/build/web/WEB-INF/web.xml new file mode 100644 index 0000000..6058a36 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/build/web/WEB-INF/web.xml @@ -0,0 +1,12 @@ + + + + + + 30 + + + diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServer/dist/NetSixServer.war b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/dist/NetSixServer.war new file mode 100644 index 0000000..2417307 Binary files /dev/null and b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/dist/NetSixServer.war differ diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/ant-deploy.xml b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/ant-deploy.xml new file mode 100644 index 0000000..5d33e0d --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/ant-deploy.xml @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/build-impl.xml b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/build-impl.xml new file mode 100644 index 0000000..9cc69ee --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/build-impl.xml @@ -0,0 +1,1442 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set build.web.dir + Must set build.generated.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.war + + + + + + + + + +The Java EE server classpath is not correctly set up - server home directory is missing. +Either open the project in the IDE and assign the server or setup the server classpath manually. +For example like this: + ant -Dj2ee.server.home=<app_server_installation_directory> + + +The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}. +Either open the project in the IDE and assign the server or setup the server classpath manually. +For example like this: + ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file) +or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +The libs.CopyLibs.classpath property is not set up. +This property must point to +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part +of NetBeans IDE installation and is usually located at +<netbeans_installation>/java<version>/ant/extra folder. +Either open the project in the IDE and make sure CopyLibs library +exists or setup the property manually. For example like this: + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.jsp.includes + + + + + + + + + + + + + + + + + + + + + + + + + + Must select a file in the IDE or set jsp.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable. + + + Launching ${browse.url} + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/genfiles.properties b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/genfiles.properties new file mode 100644 index 0000000..f756c44 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=35d8b409 +build.xml.script.CRC32=f1142801 +build.xml.stylesheet.CRC32=651128d4@1.77.1.1 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=35d8b409 +nbproject/build-impl.xml.script.CRC32=1922045a +nbproject/build-impl.xml.stylesheet.CRC32=99ea4b56@1.77.1.1 diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/jax-ws.xml b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/jax-ws.xml new file mode 100644 index 0000000..593367d --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/jax-ws.xml @@ -0,0 +1,9 @@ + + + + + me.dcariotti.wsserv.WsServ + + + + diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/jaxws-build.xml b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/jaxws-build.xml new file mode 100644 index 0000000..c1e50cd --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/jaxws-build.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/private/private.properties b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/private/private.properties new file mode 100644 index 0000000..d8d22bb --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/private/private.properties @@ -0,0 +1,7 @@ +deploy.ant.properties.file=/home/dcariotti/.netbeans/8.2/config/GlassFishEE6/Properties/gfv3-1342272572.properties +j2ee.platform.is.jsr109=true +j2ee.server.domain=/home/dcariotti/glassfish-4.1.1/glassfish/domains/domain1 +j2ee.server.home=/home/dcariotti/glassfish-4.1.1/glassfish +j2ee.server.instance=[/home/dcariotti/glassfish-4.1.1/glassfish:/home/dcariotti/glassfish-4.1.1/glassfish/domains/domain1]deployer:gfv3ee6wc:localhost:4848 +j2ee.server.middleware=/home/dcariotti/glassfish-4.1.1 +user.properties.file=/home/dcariotti/.netbeans/8.2/build.properties diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/project.properties b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/project.properties new file mode 100644 index 0000000..f75bc6c --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/project.properties @@ -0,0 +1,89 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=true +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.web.dir}/WEB-INF/classes +build.classes.excludes=**/*.java,**/*.form +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +build.web.dir=${build.dir}/web +build.web.excludes=${build.classes.excludes} +client.urlPart= +compile.jsps=false +conf.dir=${source.root}/conf +debug.classpath=${build.classes.dir}:${javac.classpath} +debug.test.classpath=\ + ${run.test.classpath} +display.browser=true +# Files to be excluded from distribution war +dist.archive.excludes= +dist.dir=dist +dist.ear.war=${dist.dir}/${war.ear.name} +dist.javadoc.dir=${dist.dir}/javadoc +dist.war=${dist.dir}/${war.name} +endorsed.classpath=\ + ${libs.javaee-endorsed-api-7.0.classpath} +excludes= +includes=** +j2ee.compile.on.save=true +j2ee.copy.static.files.on.save=true +j2ee.deploy.on.save=true +j2ee.platform=1.7-web +j2ee.platform.classpath=${j2ee.server.home}/modules/endorsed/javax.annotation-api.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/cdi-api.jar:${j2ee.server.home}/modules/javax.security.auth.message-api.jar:${j2ee.server.home}/modules/javax.jms-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent-api.jar:${j2ee.server.home}/modules/javax.ejb-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl.jar:${j2ee.server.home}/modules/javax.el.jar:${j2ee.server.home}/modules/javax.enterprise.deploy-api.jar:${j2ee.server.home}/modules/javax.json.jar:${j2ee.server.home}/modules/javax.servlet.jsp-api.jar:${j2ee.server.home}/modules/javax.faces.jar:${j2ee.server.home}/modules/javax.xml.registry-api.jar:${j2ee.server.home}/modules/javax.resource-api.jar:${j2ee.server.home}/modules/javax.persistence.jar:${j2ee.server.home}/modules/javax.batch-api.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/javax.interceptor-api.jar:${j2ee.server.home}/modules/javax.mail.jar:${j2ee.server.home}/modules/javax.inject.jar:${j2ee.server.home}/modules/javax.transaction-api.jar:${j2ee.server.home}/modules/javax.security.jacc-api.jar:${j2ee.server.home}/modules/javax.websocket-api.jar:${j2ee.server.home}/modules/bean-validator.jar:${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/weld-osgi-bundle.jar:${j2ee.server.home}/modules/javax.ws.rs-api.jar:${j2ee.server.home}/modules/javax.xml.rpc-api.jar:${j2ee.server.home}/modules/javax.management.j2ee-api.jar:${j2ee.server.home}/modules/javax.servlet-api.jar:${j2ee.server.middleware}/mq/lib/jaxm-api.jar +j2ee.platform.embeddableejb.classpath=${j2ee.server.home}/lib/embedded/glassfish-embedded-static-shell.jar +j2ee.platform.wscompile.classpath=${j2ee.server.home}/modules/webservices-osgi.jar +j2ee.platform.wsgen.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar +j2ee.platform.wsimport.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar +j2ee.platform.wsit.classpath= +j2ee.server.type=gfv3ee6 +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.debug=true +javac.deprecation=false +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.preview=true +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +lib.dir=${web.docbase.dir}/WEB-INF/lib +no.dependencies=false +persistence.xml.dir=${conf.dir} +platform.active=default_platform +resource.dir=setup +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +# Space-separated list of JVM arguments used when running a class with a main method or a unit test +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value): +runmain.jvmargs= +source.encoding=UTF-8 +source.root=src +src.dir=${source.root}/java +test.src.dir=test +war.content.additional= +war.ear.name=${war.name} +war.name=NetSixServer.war +web.docbase.dir=web +webinf.dir=web/WEB-INF diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/project.xml b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/project.xml new file mode 100644 index 0000000..ff43439 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/nbproject/project.xml @@ -0,0 +1,21 @@ + + + org.netbeans.modules.web.project + + + + + + NetSixServer + 1.6.5 + + + + + + + + + + + diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServer/src/conf/MANIFEST.MF b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/src/conf/MANIFEST.MF new file mode 100644 index 0000000..59499bc --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/src/conf/MANIFEST.MF @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 + diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServer/src/java/me/dcariotti/wsserv/WsServ.java b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/src/java/me/dcariotti/wsserv/WsServ.java new file mode 100644 index 0000000..8ff11d1 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/src/java/me/dcariotti/wsserv/WsServ.java @@ -0,0 +1,46 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package me.dcariotti.wsserv; + +import java.util.HashMap; +import javax.jws.WebService; +import javax.jws.WebMethod; +import javax.jws.WebParam; + +/** + * + * @author dcariotti + */ +@WebService(serviceName = "WsServ") +public class WsServ { + + private HashMap series; + + public WsServ() { + this.series = new HashMap(); + this.series.put("The Witcher", new int[] {1, 2, 3, 4, 5, 6}); + this.series.put("Rick & Morty", new int[] {1, 2, 3, 4, 5, 6, 7, 8}); + this.series.put("After Life", new int[] {1, 4, 5, 6, 9}); + this.series.put("Lovesick", new int[] {1, 2, 3, 4, 5, 6, 7}); + this.series.put("Chuck", new int[] {1, 2, 3, 4, 5, 6}); + this.series.put("Halt and catch fire", new int[] {1, 2, 3}); + } + + @WebMethod(operationName = "richiedi") + public boolean richiedi(@WebParam(name = "name") final String name, @WebParam(name = "episode") final int episode) { + if (this.series.containsKey(name)) { + int[] episodes = this.series.get(name); + + for (int number : episodes) { + if (number == episode) { + return true; + } + } + } + + return false; + } +} diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServer/web/WEB-INF/web.xml b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/web/WEB-INF/web.xml new file mode 100644 index 0000000..6058a36 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServer/web/WEB-INF/web.xml @@ -0,0 +1,12 @@ + + + + + + 30 + + + diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build.xml b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build.xml new file mode 100644 index 0000000..72f5fa1 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + Builds, tests, and runs the project NetSixServerClient. + + + diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/ObjectFactory.java b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/ObjectFactory.java new file mode 100644 index 0000000..544bb11 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/ObjectFactory.java @@ -0,0 +1,71 @@ + +package me.dcariotti.netsix; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the me.dcariotti.netsix package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _Richiedi_QNAME = new QName("http://wsserv.dcariotti.me/", "richiedi"); + private final static QName _RichiediResponse_QNAME = new QName("http://wsserv.dcariotti.me/", "richiediResponse"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: me.dcariotti.netsix + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link Richiedi } + * + */ + public Richiedi createRichiedi() { + return new Richiedi(); + } + + /** + * Create an instance of {@link RichiediResponse } + * + */ + public RichiediResponse createRichiediResponse() { + return new RichiediResponse(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Richiedi }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://wsserv.dcariotti.me/", name = "richiedi") + public JAXBElement createRichiedi(Richiedi value) { + return new JAXBElement(_Richiedi_QNAME, Richiedi.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link RichiediResponse }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://wsserv.dcariotti.me/", name = "richiediResponse") + public JAXBElement createRichiediResponse(RichiediResponse value) { + return new JAXBElement(_RichiediResponse_QNAME, RichiediResponse.class, null, value); + } + +} diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/Richiedi.java b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/Richiedi.java new file mode 100644 index 0000000..9632aa4 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/Richiedi.java @@ -0,0 +1,79 @@ + +package me.dcariotti.netsix; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for richiedi complex type. + * + *

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

+ * <complexType name="richiedi">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="episode" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "richiedi", propOrder = { + "name", + "episode" +}) +public class Richiedi { + + protected String name; + protected int episode; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the episode property. + * + */ + public int getEpisode() { + return episode; + } + + /** + * Sets the value of the episode property. + * + */ + public void setEpisode(int value) { + this.episode = value; + } + +} diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/RichiediResponse.java b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/RichiediResponse.java new file mode 100644 index 0000000..2a3cdc5 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/RichiediResponse.java @@ -0,0 +1,54 @@ + +package me.dcariotti.netsix; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for richiediResponse complex type. + * + *

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

+ * <complexType name="richiediResponse">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="return" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "richiediResponse", propOrder = { + "_return" +}) +public class RichiediResponse { + + @XmlElement(name = "return") + protected boolean _return; + + /** + * Gets the value of the return property. + * + */ + public boolean isReturn() { + return _return; + } + + /** + * Sets the value of the return property. + * + */ + public void setReturn(boolean value) { + this._return = value; + } + +} diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/WsServ.java b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/WsServ.java new file mode 100644 index 0000000..d2e9b53 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/WsServ.java @@ -0,0 +1,45 @@ + +package me.dcariotti.netsix; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.ws.Action; +import javax.xml.ws.RequestWrapper; +import javax.xml.ws.ResponseWrapper; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.6-1b01 + * Generated source version: 2.2 + * + */ +@WebService(name = "WsServ", targetNamespace = "http://wsserv.dcariotti.me/") +@XmlSeeAlso({ + ObjectFactory.class +}) +public interface WsServ { + + + /** + * + * @param name + * @param episode + * @return + * returns boolean + */ + @WebMethod + @WebResult(targetNamespace = "") + @RequestWrapper(localName = "richiedi", targetNamespace = "http://wsserv.dcariotti.me/", className = "me.dcariotti.netsix.Richiedi") + @ResponseWrapper(localName = "richiediResponse", targetNamespace = "http://wsserv.dcariotti.me/", className = "me.dcariotti.netsix.RichiediResponse") + @Action(input = "http://wsserv.dcariotti.me/WsServ/richiediRequest", output = "http://wsserv.dcariotti.me/WsServ/richiediResponse") + public boolean richiedi( + @WebParam(name = "name", targetNamespace = "") + String name, + @WebParam(name = "episode", targetNamespace = "") + int episode); + +} diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/WsServ_Service.java b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/WsServ_Service.java new file mode 100644 index 0000000..f2f167a --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/WsServ_Service.java @@ -0,0 +1,94 @@ + +package me.dcariotti.netsix; + +import java.net.MalformedURLException; +import java.net.URL; +import javax.xml.namespace.QName; +import javax.xml.ws.Service; +import javax.xml.ws.WebEndpoint; +import javax.xml.ws.WebServiceClient; +import javax.xml.ws.WebServiceException; +import javax.xml.ws.WebServiceFeature; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.6-1b01 + * Generated source version: 2.2 + * + */ +@WebServiceClient(name = "WsServ", targetNamespace = "http://wsserv.dcariotti.me/", wsdlLocation = "http://localhost:8080/NetSixServer/WsServ?wsdl") +public class WsServ_Service + extends Service +{ + + private final static URL WSSERV_WSDL_LOCATION; + private final static WebServiceException WSSERV_EXCEPTION; + private final static QName WSSERV_QNAME = new QName("http://wsserv.dcariotti.me/", "WsServ"); + + static { + URL url = null; + WebServiceException e = null; + try { + url = new URL("http://localhost:8080/NetSixServer/WsServ?wsdl"); + } catch (MalformedURLException ex) { + e = new WebServiceException(ex); + } + WSSERV_WSDL_LOCATION = url; + WSSERV_EXCEPTION = e; + } + + public WsServ_Service() { + super(__getWsdlLocation(), WSSERV_QNAME); + } + + public WsServ_Service(WebServiceFeature... features) { + super(__getWsdlLocation(), WSSERV_QNAME, features); + } + + public WsServ_Service(URL wsdlLocation) { + super(wsdlLocation, WSSERV_QNAME); + } + + public WsServ_Service(URL wsdlLocation, WebServiceFeature... features) { + super(wsdlLocation, WSSERV_QNAME, features); + } + + public WsServ_Service(URL wsdlLocation, QName serviceName) { + super(wsdlLocation, serviceName); + } + + public WsServ_Service(URL wsdlLocation, QName serviceName, WebServiceFeature... features) { + super(wsdlLocation, serviceName, features); + } + + /** + * + * @return + * returns WsServ + */ + @WebEndpoint(name = "WsServPort") + public WsServ getWsServPort() { + return super.getPort(new QName("http://wsserv.dcariotti.me/", "WsServPort"), WsServ.class); + } + + /** + * + * @param features + * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. + * @return + * returns WsServ + */ + @WebEndpoint(name = "WsServPort") + public WsServ getWsServPort(WebServiceFeature... features) { + return super.getPort(new QName("http://wsserv.dcariotti.me/", "WsServPort"), WsServ.class, features); + } + + private static URL __getWsdlLocation() { + if (WSSERV_EXCEPTION!= null) { + throw WSSERV_EXCEPTION; + } + return WSSERV_WSDL_LOCATION; + } + +} diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/package-info.java b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/package-info.java new file mode 100644 index 0000000..812d7aa --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated-sources/jax-ws/me/dcariotti/netsix/package-info.java @@ -0,0 +1,2 @@ +@javax.xml.bind.annotation.XmlSchema(namespace = "http://wsserv.dcariotti.me/") +package me.dcariotti.netsix; diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated/jax-wsCache/WsServ/me/dcariotti/netsix/ObjectFactory.java b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated/jax-wsCache/WsServ/me/dcariotti/netsix/ObjectFactory.java new file mode 100644 index 0000000..544bb11 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated/jax-wsCache/WsServ/me/dcariotti/netsix/ObjectFactory.java @@ -0,0 +1,71 @@ + +package me.dcariotti.netsix; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the me.dcariotti.netsix package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _Richiedi_QNAME = new QName("http://wsserv.dcariotti.me/", "richiedi"); + private final static QName _RichiediResponse_QNAME = new QName("http://wsserv.dcariotti.me/", "richiediResponse"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: me.dcariotti.netsix + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link Richiedi } + * + */ + public Richiedi createRichiedi() { + return new Richiedi(); + } + + /** + * Create an instance of {@link RichiediResponse } + * + */ + public RichiediResponse createRichiediResponse() { + return new RichiediResponse(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Richiedi }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://wsserv.dcariotti.me/", name = "richiedi") + public JAXBElement createRichiedi(Richiedi value) { + return new JAXBElement(_Richiedi_QNAME, Richiedi.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link RichiediResponse }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://wsserv.dcariotti.me/", name = "richiediResponse") + public JAXBElement createRichiediResponse(RichiediResponse value) { + return new JAXBElement(_RichiediResponse_QNAME, RichiediResponse.class, null, value); + } + +} diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated/jax-wsCache/WsServ/me/dcariotti/netsix/Richiedi.java b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated/jax-wsCache/WsServ/me/dcariotti/netsix/Richiedi.java new file mode 100644 index 0000000..9632aa4 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated/jax-wsCache/WsServ/me/dcariotti/netsix/Richiedi.java @@ -0,0 +1,79 @@ + +package me.dcariotti.netsix; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for richiedi complex type. + * + *

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

+ * <complexType name="richiedi">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="episode" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "richiedi", propOrder = { + "name", + "episode" +}) +public class Richiedi { + + protected String name; + protected int episode; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the episode property. + * + */ + public int getEpisode() { + return episode; + } + + /** + * Sets the value of the episode property. + * + */ + public void setEpisode(int value) { + this.episode = value; + } + +} diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated/jax-wsCache/WsServ/me/dcariotti/netsix/RichiediResponse.java b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated/jax-wsCache/WsServ/me/dcariotti/netsix/RichiediResponse.java new file mode 100644 index 0000000..2a3cdc5 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated/jax-wsCache/WsServ/me/dcariotti/netsix/RichiediResponse.java @@ -0,0 +1,54 @@ + +package me.dcariotti.netsix; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for richiediResponse complex type. + * + *

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

+ * <complexType name="richiediResponse">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="return" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "richiediResponse", propOrder = { + "_return" +}) +public class RichiediResponse { + + @XmlElement(name = "return") + protected boolean _return; + + /** + * Gets the value of the return property. + * + */ + public boolean isReturn() { + return _return; + } + + /** + * Sets the value of the return property. + * + */ + public void setReturn(boolean value) { + this._return = value; + } + +} diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated/jax-wsCache/WsServ/me/dcariotti/netsix/WsServ.java b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated/jax-wsCache/WsServ/me/dcariotti/netsix/WsServ.java new file mode 100644 index 0000000..d2e9b53 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated/jax-wsCache/WsServ/me/dcariotti/netsix/WsServ.java @@ -0,0 +1,45 @@ + +package me.dcariotti.netsix; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.ws.Action; +import javax.xml.ws.RequestWrapper; +import javax.xml.ws.ResponseWrapper; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.6-1b01 + * Generated source version: 2.2 + * + */ +@WebService(name = "WsServ", targetNamespace = "http://wsserv.dcariotti.me/") +@XmlSeeAlso({ + ObjectFactory.class +}) +public interface WsServ { + + + /** + * + * @param name + * @param episode + * @return + * returns boolean + */ + @WebMethod + @WebResult(targetNamespace = "") + @RequestWrapper(localName = "richiedi", targetNamespace = "http://wsserv.dcariotti.me/", className = "me.dcariotti.netsix.Richiedi") + @ResponseWrapper(localName = "richiediResponse", targetNamespace = "http://wsserv.dcariotti.me/", className = "me.dcariotti.netsix.RichiediResponse") + @Action(input = "http://wsserv.dcariotti.me/WsServ/richiediRequest", output = "http://wsserv.dcariotti.me/WsServ/richiediResponse") + public boolean richiedi( + @WebParam(name = "name", targetNamespace = "") + String name, + @WebParam(name = "episode", targetNamespace = "") + int episode); + +} diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated/jax-wsCache/WsServ/me/dcariotti/netsix/WsServ_Service.java b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated/jax-wsCache/WsServ/me/dcariotti/netsix/WsServ_Service.java new file mode 100644 index 0000000..f2f167a --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated/jax-wsCache/WsServ/me/dcariotti/netsix/WsServ_Service.java @@ -0,0 +1,94 @@ + +package me.dcariotti.netsix; + +import java.net.MalformedURLException; +import java.net.URL; +import javax.xml.namespace.QName; +import javax.xml.ws.Service; +import javax.xml.ws.WebEndpoint; +import javax.xml.ws.WebServiceClient; +import javax.xml.ws.WebServiceException; +import javax.xml.ws.WebServiceFeature; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.6-1b01 + * Generated source version: 2.2 + * + */ +@WebServiceClient(name = "WsServ", targetNamespace = "http://wsserv.dcariotti.me/", wsdlLocation = "http://localhost:8080/NetSixServer/WsServ?wsdl") +public class WsServ_Service + extends Service +{ + + private final static URL WSSERV_WSDL_LOCATION; + private final static WebServiceException WSSERV_EXCEPTION; + private final static QName WSSERV_QNAME = new QName("http://wsserv.dcariotti.me/", "WsServ"); + + static { + URL url = null; + WebServiceException e = null; + try { + url = new URL("http://localhost:8080/NetSixServer/WsServ?wsdl"); + } catch (MalformedURLException ex) { + e = new WebServiceException(ex); + } + WSSERV_WSDL_LOCATION = url; + WSSERV_EXCEPTION = e; + } + + public WsServ_Service() { + super(__getWsdlLocation(), WSSERV_QNAME); + } + + public WsServ_Service(WebServiceFeature... features) { + super(__getWsdlLocation(), WSSERV_QNAME, features); + } + + public WsServ_Service(URL wsdlLocation) { + super(wsdlLocation, WSSERV_QNAME); + } + + public WsServ_Service(URL wsdlLocation, WebServiceFeature... features) { + super(wsdlLocation, WSSERV_QNAME, features); + } + + public WsServ_Service(URL wsdlLocation, QName serviceName) { + super(wsdlLocation, serviceName); + } + + public WsServ_Service(URL wsdlLocation, QName serviceName, WebServiceFeature... features) { + super(wsdlLocation, serviceName, features); + } + + /** + * + * @return + * returns WsServ + */ + @WebEndpoint(name = "WsServPort") + public WsServ getWsServPort() { + return super.getPort(new QName("http://wsserv.dcariotti.me/", "WsServPort"), WsServ.class); + } + + /** + * + * @param features + * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. + * @return + * returns WsServ + */ + @WebEndpoint(name = "WsServPort") + public WsServ getWsServPort(WebServiceFeature... features) { + return super.getPort(new QName("http://wsserv.dcariotti.me/", "WsServPort"), WsServ.class, features); + } + + private static URL __getWsdlLocation() { + if (WSSERV_EXCEPTION!= null) { + throw WSSERV_EXCEPTION; + } + return WSSERV_WSDL_LOCATION; + } + +} diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated/jax-wsCache/WsServ/me/dcariotti/netsix/package-info.java b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated/jax-wsCache/WsServ/me/dcariotti/netsix/package-info.java new file mode 100644 index 0000000..812d7aa --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/generated/jax-wsCache/WsServ/me/dcariotti/netsix/package-info.java @@ -0,0 +1,2 @@ +@javax.xml.bind.annotation.XmlSchema(namespace = "http://wsserv.dcariotti.me/") +package me.dcariotti.netsix; diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/META-INF/MANIFEST.MF b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/META-INF/MANIFEST.MF new file mode 100644 index 0000000..59499bc --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/META-INF/MANIFEST.MF @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 + diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/META-INF/context.xml b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/META-INF/context.xml new file mode 100644 index 0000000..21cd445 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/META-INF/context.xml @@ -0,0 +1,2 @@ + + diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/WEB-INF/classes/.netbeans_automatic_build b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/WEB-INF/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/WEB-INF/classes/.netbeans_update_resources b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/WEB-INF/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/WEB-INF/jax-ws-catalog.xml b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/WEB-INF/jax-ws-catalog.xml new file mode 100644 index 0000000..6df3c3e --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/WEB-INF/jax-ws-catalog.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/index.html b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/index.html new file mode 100644 index 0000000..15da543 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/index.html @@ -0,0 +1,16 @@ + + + + + NetSix + + + + + Go to the search page + + diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/search.html b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/search.html new file mode 100644 index 0000000..768c325 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/build/web/search.html @@ -0,0 +1,28 @@ + + + + + NetSix + + + + +
+
+ + +
+
+ + +
+
+ +
+
+ + diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/catalog.xml b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/catalog.xml new file mode 100644 index 0000000..54d389d --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/catalog.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/dist/NetSixServerClient.war b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/dist/NetSixServerClient.war new file mode 100644 index 0000000..6241188 Binary files /dev/null and b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/dist/NetSixServerClient.war differ diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/ant-deploy.xml b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/ant-deploy.xml new file mode 100644 index 0000000..55566c8 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/ant-deploy.xml @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/build-impl.xml b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/build-impl.xml new file mode 100644 index 0000000..d92b4e1 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/build-impl.xml @@ -0,0 +1,1442 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set build.web.dir + Must set build.generated.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.war + + + + + + + + + +The Java EE server classpath is not correctly set up - server home directory is missing. +Either open the project in the IDE and assign the server or setup the server classpath manually. +For example like this: + ant -Dj2ee.server.home=<app_server_installation_directory> + + +The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}. +Either open the project in the IDE and assign the server or setup the server classpath manually. +For example like this: + ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file) +or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +The libs.CopyLibs.classpath property is not set up. +This property must point to +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part +of NetBeans IDE installation and is usually located at +<netbeans_installation>/java<version>/ant/extra folder. +Either open the project in the IDE and make sure CopyLibs library +exists or setup the property manually. For example like this: + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.jsp.includes + + + + + + + + + + + + + + + + + + + + + + + + + + Must select a file in the IDE or set jsp.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable. + + + Launching ${browse.url} + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/genfiles.properties b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/genfiles.properties new file mode 100644 index 0000000..453953b --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=3ee67bc9 +build.xml.script.CRC32=dc415187 +build.xml.stylesheet.CRC32=651128d4@1.77.1.1 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=3ee67bc9 +nbproject/build-impl.xml.script.CRC32=631a619b +nbproject/build-impl.xml.stylesheet.CRC32=99ea4b56@1.77.1.1 diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/jax-ws.xml b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/jax-ws.xml new file mode 100644 index 0000000..11699d2 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/jax-ws.xml @@ -0,0 +1,42 @@ + + + + + + http://localhost:8080/NetSixServer/WsServ?wsdl + localhost_8080/NetSixServer/WsServ.wsdl + me.dcariotti.netsix + catalog.xml + + + extension + true + + + verbose + true + + + fork + false + + + wsdlLocation + http://localhost:8080/NetSixServer/WsServ?wsdl + + + xnocompile + true + + + xendorsed + true + + + package + me.dcariotti.netsix + + + + + diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/jaxws-build.xml b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/jaxws-build.xml new file mode 100644 index 0000000..ade6127 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/jaxws-build.xml @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/private/private.properties b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/private/private.properties new file mode 100644 index 0000000..26d4039 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/private/private.properties @@ -0,0 +1,5 @@ +deploy.ant.properties.file=/home/dcariotti/.netbeans/8.2/tomcat80.properties +j2ee.server.domain=/home/dcariotti/.netbeans/8.2/apache-tomcat-8.0.27.0_base +j2ee.server.home=/home/dcariotti/apache-tomcat-8.0.27 +j2ee.server.instance=tomcat80:home=/home/dcariotti/apache-tomcat-8.0.27:base=apache-tomcat-8.0.27.0_base +user.properties.file=/home/dcariotti/.netbeans/8.2/build.properties diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/project.properties b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/project.properties new file mode 100644 index 0000000..4f4c574 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/project.properties @@ -0,0 +1,84 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=true +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.web.dir}/WEB-INF/classes +build.classes.excludes=**/*.java,**/*.form +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +build.web.dir=${build.dir}/web +build.web.excludes=${build.classes.excludes} +client.urlPart= +compile.jsps=false +conf.dir=${source.root}/conf +debug.classpath=${build.classes.dir}:${javac.classpath} +debug.test.classpath=\ + ${run.test.classpath} +display.browser=true +# Files to be excluded from distribution war +dist.archive.excludes= +dist.dir=dist +dist.ear.war=${dist.dir}/${war.ear.name} +dist.javadoc.dir=${dist.dir}/javadoc +dist.war=${dist.dir}/${war.name} +endorsed.classpath=\ + ${libs.javaee-endorsed-api-7.0.classpath} +excludes= +includes=** +j2ee.compile.on.save=true +j2ee.copy.static.files.on.save=true +j2ee.deploy.on.save=true +j2ee.platform=1.7-web +j2ee.platform.classpath=${j2ee.server.home}/lib/annotations-api.jar:${j2ee.server.home}/lib/catalina-ant.jar:${j2ee.server.home}/lib/catalina-ha.jar:${j2ee.server.home}/lib/catalina-storeconfig.jar:${j2ee.server.home}/lib/catalina-tribes.jar:${j2ee.server.home}/lib/catalina.jar:${j2ee.server.home}/lib/ecj-4.4.2.jar:${j2ee.server.home}/lib/el-api.jar:${j2ee.server.home}/lib/jasper-el.jar:${j2ee.server.home}/lib/jasper.jar:${j2ee.server.home}/lib/jsp-api.jar:${j2ee.server.home}/lib/servlet-api.jar:${j2ee.server.home}/lib/tomcat-api.jar:${j2ee.server.home}/lib/tomcat-coyote.jar:${j2ee.server.home}/lib/tomcat-dbcp.jar:${j2ee.server.home}/lib/tomcat-i18n-es.jar:${j2ee.server.home}/lib/tomcat-i18n-fr.jar:${j2ee.server.home}/lib/tomcat-i18n-ja.jar:${j2ee.server.home}/lib/tomcat-jdbc.jar:${j2ee.server.home}/lib/tomcat-jni.jar:${j2ee.server.home}/lib/tomcat-util-scan.jar:${j2ee.server.home}/lib/tomcat-util.jar:${j2ee.server.home}/lib/tomcat-websocket.jar:${j2ee.server.home}/lib/websocket-api.jar +j2ee.server.type=Tomcat +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.debug=true +javac.deprecation=false +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.preview=true +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +lib.dir=${web.docbase.dir}/WEB-INF/lib +no.dependencies=false +persistence.xml.dir=${conf.dir} +platform.active=default_platform +resource.dir=setup +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +# Space-separated list of JVM arguments used when running a class with a main method or a unit test +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value): +runmain.jvmargs= +source.encoding=UTF-8 +source.root=src +src.dir=${source.root}/java +test.src.dir=test +war.content.additional= +war.ear.name=${war.name} +war.name=NetSixServerClient.war +web.docbase.dir=web +webinf.dir=web/WEB-INF diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/project.xml b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/project.xml new file mode 100644 index 0000000..d4f81f3 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/nbproject/project.xml @@ -0,0 +1,23 @@ + + + org.netbeans.modules.web.project + + + + + + + + NetSixServerClient + 1.6.5 + + + + + + + + + + + diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/src/conf/MANIFEST.MF b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/src/conf/MANIFEST.MF new file mode 100644 index 0000000..59499bc --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/src/conf/MANIFEST.MF @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 + diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/src/conf/xml-resources/web-service-references/WsServ/wsdl/localhost_8080/NetSixServer/WsServ.wsdl b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/src/conf/xml-resources/web-service-references/WsServ/wsdl/localhost_8080/NetSixServer/WsServ.wsdl new file mode 100644 index 0000000..eeb19c6 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/src/conf/xml-resources/web-service-references/WsServ/wsdl/localhost_8080/NetSixServer/WsServ.wsdl @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/src/conf/xml-resources/web-service-references/WsServ/wsdl/localhost_8080/NetSixServer/WsServ.xsd_1.xsd b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/src/conf/xml-resources/web-service-references/WsServ/wsdl/localhost_8080/NetSixServer/WsServ.xsd_1.xsd new file mode 100644 index 0000000..ea0cc30 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/src/conf/xml-resources/web-service-references/WsServ/wsdl/localhost_8080/NetSixServer/WsServ.xsd_1.xsd @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/src/java/me/dcariotti/netsix/NetSixServlet.java b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/src/java/me/dcariotti/netsix/NetSixServlet.java new file mode 100644 index 0000000..6387ccf --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/src/java/me/dcariotti/netsix/NetSixServlet.java @@ -0,0 +1,122 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package me.dcariotti.netsix; + +import java.io.IOException; +import java.io.PrintWriter; +import javax.servlet.RequestDispatcher; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +/** + * + * @author dcariotti + */ +@WebServlet(name = "NetSixServlet", urlPatterns = {"/NetSixServlet"}) +public class NetSixServlet extends HttpServlet { + + /** + * Processes requests for both HTTP GET and POST + * methods. + * + * @param request servlet request + * @param response servlet response + * @throws ServletException if a servlet-specific error occurs + * @throws IOException if an I/O error occurs + */ + protected void processRequest(HttpServletRequest request, HttpServletResponse response) + throws ServletException, IOException { + response.setContentType("text/html;charset=UTF-8"); + try (PrintWriter out = response.getWriter()) { + /* TODO output your page here. You may use following sample code. */ + out.println(""); + out.println(""); + out.println(""); + out.println("Servlet NetSixServlet"); + out.println(""); + out.println(""); + out.println("

Servlet NetSixServlet at " + request.getContextPath() + "

"); + out.println(""); + out.println(""); + } + } + + // + /** + * Handles the HTTP GET method. + * + * @param request servlet request + * @param response servlet response + * @throws ServletException if a servlet-specific error occurs + * @throws IOException if an I/O error occurs + */ + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) + throws ServletException, IOException { + RequestDispatcher view = request.getRequestDispatcher("/search.html"); + + view.forward(request, response); + } + + /** + * Handles the HTTP POST method. + * + * @param request servlet request + * @param response servlet response + * @throws ServletException if a servlet-specific error occurs + * @throws IOException if an I/O error occurs + */ + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) + throws ServletException, IOException { + response.setContentType("text/html"); + String serie_name = request.getParameter("name"); + String serie_episode = request.getParameter("episode"); + + if (serie_name != "" && serie_episode != "") { + boolean result = this.richiedi(serie_name, new Integer(serie_episode)); + PrintWriter out = response.getWriter(); + + out.print("Episode number `"); + out.print(serie_episode); + out.print("` of `"); + out.print(serie_name); + out.print("` is "); + + if (result) { + out.print("present"); + } else { + out.print(" NOT present"); + } + + return; + } + + try (PrintWriter out = response.getWriter()) { + out.println("You must set both input names"); + } + } + + /** + * Returns a short description of the servlet. + * + * @return a String containing servlet description + */ + @Override + public String getServletInfo() { + return "Short description"; + }// + + private static boolean richiedi(java.lang.String name, int episode) { + me.dcariotti.netsix.WsServ_Service service = new me.dcariotti.netsix.WsServ_Service(); + me.dcariotti.netsix.WsServ port = service.getWsServPort(); + return port.richiedi(name, episode); + } + +} diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/web/META-INF/context.xml b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/web/META-INF/context.xml new file mode 100644 index 0000000..21cd445 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/web/META-INF/context.xml @@ -0,0 +1,2 @@ + + diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/web/WEB-INF/jax-ws-catalog.xml b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/web/WEB-INF/jax-ws-catalog.xml new file mode 100644 index 0000000..6df3c3e --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/web/WEB-INF/jax-ws-catalog.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/web/index.html b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/web/index.html new file mode 100644 index 0000000..15da543 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/web/index.html @@ -0,0 +1,16 @@ + + + + + NetSix + + + + + Go to the search page + + diff --git a/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/web/search.html b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/web/search.html new file mode 100644 index 0000000..768c325 --- /dev/null +++ b/Year_3/TSDWL/WSDL/NetSix/NetSixServerClient/web/search.html @@ -0,0 +1,28 @@ + + + + + NetSix + + + + +
+
+ + +
+
+ + +
+
+ +
+
+ + -- cgit v1.2.3-18-g5258