# HG changeset patch # User František Kučera # Date 1271062239 -7200 # Node ID 75dec396f0e3b61bf55d3f419e75d0ae0a4d0535 # Parent 8fce6d5325769edb11f62e681a5f3d33f27e0e1e WS: přidána pokusná webová služba – SOAP. diff -r 8fce6d532576 -r 75dec396f0e3 .hgignore --- a/.hgignore Tue Apr 06 23:43:24 2010 +0200 +++ b/.hgignore Mon Apr 12 10:50:39 2010 +0200 @@ -24,3 +24,7 @@ java/nekurak.net-rest/dist/* java/nekurak.net-rest/build/* java/nekurak.net-rest/nbproject/private + +java/nekurak.net-ws/dist/* +java/nekurak.net-ws/build/* +java/nekurak.net-ws/nbproject/private diff -r 8fce6d532576 -r 75dec396f0e3 java/nekurak.net-ear/nbproject/build-impl.xml --- a/java/nekurak.net-ear/nbproject/build-impl.xml Tue Apr 06 23:43:24 2010 +0200 +++ b/java/nekurak.net-ear/nbproject/build-impl.xml Mon Apr 12 10:50:39 2010 +0200 @@ -179,6 +179,15 @@ + + + + + + + + + @@ -194,6 +203,7 @@ + @@ -273,6 +283,7 @@ + @@ -479,6 +490,15 @@ + + + + + + + + + diff -r 8fce6d532576 -r 75dec396f0e3 java/nekurak.net-ear/nbproject/genfiles.properties --- a/java/nekurak.net-ear/nbproject/genfiles.properties Tue Apr 06 23:43:24 2010 +0200 +++ b/java/nekurak.net-ear/nbproject/genfiles.properties Mon Apr 12 10:50:39 2010 +0200 @@ -3,6 +3,6 @@ build.xml.stylesheet.CRC32=475c2a62@1.17.2 # 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=efe37659 -nbproject/build-impl.xml.script.CRC32=4bf9637a +nbproject/build-impl.xml.data.CRC32=3ed495e4 +nbproject/build-impl.xml.script.CRC32=a4c4fbbd nbproject/build-impl.xml.stylesheet.CRC32=624b8ca2@1.17.2 diff -r 8fce6d532576 -r 75dec396f0e3 java/nekurak.net-ear/nbproject/project.properties --- a/java/nekurak.net-ear/nbproject/project.properties Tue Apr 06 23:43:24 2010 +0200 +++ b/java/nekurak.net-ear/nbproject/project.properties Mon Apr 12 10:50:39 2010 +0200 @@ -17,7 +17,8 @@ jar.content.additional=\ ${reference.nekurak_net-web.dist-ear}:\ ${reference.nekurak_net-ejb.dist-ear}:\ - ${reference.nekurak_net-rest.dist-ear} + ${reference.nekurak_net-rest.dist-ear}:\ + ${reference.nekurak_net-ws.dist-ear} jar.name=nekurak.net-ear.ear javac.debug=true javac.deprecation=false @@ -29,9 +30,11 @@ project.nekurak_net-ejb=../nekurak.net-ejb project.nekurak_net-rest=../nekurak.net-rest project.nekurak_net-web=../nekurak.net-web +project.nekurak_net-ws=../nekurak.net-ws reference.nekurak_net-ejb.dist-ear=${project.nekurak_net-ejb}/dist/nekurak.net-ejb.jar reference.nekurak_net-rest.dist-ear=${project.nekurak_net-rest}/dist/nekurak.net-rest.war reference.nekurak_net-web.dist-ear=${project.nekurak_net-web}/dist/nekurak.net-web.war +reference.nekurak_net-ws.dist-ear=${project.nekurak_net-ws}/dist/nekurak.net-ws.war resource.dir=setup run.classpath= source.root=. diff -r 8fce6d532576 -r 75dec396f0e3 java/nekurak.net-ear/nbproject/project.xml --- a/java/nekurak.net-ear/nbproject/project.xml Tue Apr 06 23:43:24 2010 +0200 +++ b/java/nekurak.net-ear/nbproject/project.xml Mon Apr 12 10:50:39 2010 +0200 @@ -19,6 +19,10 @@ ${reference.nekurak_net-rest.dist-ear} / + + ${reference.nekurak_net-ws.dist-ear} + / + @@ -46,6 +50,14 @@ clean-ear dist-ear + + nekurak_net-ws + j2ee_ear_archive + + dist-ear + clean-ear + dist-ear + diff -r 8fce6d532576 -r 75dec396f0e3 java/nekurak.net-ws/nbproject/ant-deploy.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/nekurak.net-ws/nbproject/ant-deploy.xml Mon Apr 12 10:50:39 2010 +0200 @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 8fce6d532576 -r 75dec396f0e3 java/nekurak.net-ws/nbproject/build-impl.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/nekurak.net-ws/nbproject/build-impl.xml Mon Apr 12 10:50:39 2010 +0200 @@ -0,0 +1,856 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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. 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) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +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 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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 one file in the IDE or set test.class + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 8fce6d532576 -r 75dec396f0e3 java/nekurak.net-ws/nbproject/genfiles.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/nekurak.net-ws/nbproject/genfiles.properties Mon Apr 12 10:50:39 2010 +0200 @@ -0,0 +1,11 @@ +build.xml.data.CRC32=4cb22909 +build.xml.script.CRC32=a0b9ee34 +build.xml.stylesheet.CRC32=c0ebde35@1.21.2.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=4cb22909 +nbproject/build-impl.xml.script.CRC32=2e1faad3 +nbproject/build-impl.xml.stylesheet.CRC32=b139b33b@1.21.2.1 +nbproject/wsit-deploy.xml.data.CRC32=4cb22909 +nbproject/wsit-deploy.xml.script.CRC32=deb039de +nbproject/wsit-deploy.xml.stylesheet.CRC32=beb36995@3.9.1 diff -r 8fce6d532576 -r 75dec396f0e3 java/nekurak.net-ws/nbproject/jax-ws.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/nekurak.net-ws/nbproject/jax-ws.xml Mon Apr 12 10:50:39 2010 +0200 @@ -0,0 +1,9 @@ + + + + + cz.frantovo.nekurak.ws.Pokus + + + + diff -r 8fce6d532576 -r 75dec396f0e3 java/nekurak.net-ws/nbproject/jaxws-build.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/nekurak.net-ws/nbproject/jaxws-build.xml Mon Apr 12 10:50:39 2010 +0200 @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + diff -r 8fce6d532576 -r 75dec396f0e3 java/nekurak.net-ws/nbproject/project.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/nekurak.net-ws/nbproject/project.properties Mon Apr 12 10:50:39 2010 +0200 @@ -0,0 +1,73 @@ +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 +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-6.0.classpath} +excludes= +includes=** +j2ee.deploy.on.save=false +j2ee.platform=1.6-web +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.source=1.5 +javac.target=1.5 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir}:\ + ${libs.junit.classpath}:\ + ${libs.junit_4.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= +jspcompilation.classpath=${jspc.classpath}:${javac.classpath} +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=nekurak.net-ws.war +war.name=nekurak.net-ws.war +web.docbase.dir=web +webinf.dir=web/WEB-INF diff -r 8fce6d532576 -r 75dec396f0e3 java/nekurak.net-ws/nbproject/project.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/nekurak.net-ws/nbproject/project.xml Mon Apr 12 10:50:39 2010 +0200 @@ -0,0 +1,21 @@ + + + org.netbeans.modules.web.project + + + + + + nekurak.net-ws + 1.6.5 + + + + + + + + + + + diff -r 8fce6d532576 -r 75dec396f0e3 java/nekurak.net-ws/nbproject/wsit-deploy.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/nekurak.net-ws/nbproject/wsit-deploy.xml Mon Apr 12 10:50:39 2010 +0200 @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set user properties file + Must set Sun app server root + Must set Sun app server password + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 8fce6d532576 -r 75dec396f0e3 java/nekurak.net-ws/src/conf/MANIFEST.MF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/nekurak.net-ws/src/conf/MANIFEST.MF Mon Apr 12 10:50:39 2010 +0200 @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 + diff -r 8fce6d532576 -r 75dec396f0e3 java/nekurak.net-ws/src/java/cz/frantovo/nekurak/ws/Pokus.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/nekurak.net-ws/src/java/cz/frantovo/nekurak/ws/Pokus.java Mon Apr 12 10:50:39 2010 +0200 @@ -0,0 +1,25 @@ +package cz.frantovo.nekurak.ws; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebService; +import javax.jws.soap.SOAPBinding; + +/** + * + * @author fiki + */ +@WebService(serviceName = "pokusnaSluzba", targetNamespace="pokusNS") +@SOAPBinding(style=SOAPBinding.Style.RPC, use=SOAPBinding.Use.ENCODED) +public class Pokus { + + /** + * Pozdraví osobu + * @param koho jméno osoby v pátém pádě + * @return věta – pozdrav + */ + @WebMethod(operationName="pozdravOsobu") + public String pozdrav(@WebParam(name = "jmenoOsoby") String koho) { + return "Ahoj, " + koho + "!"; + } +} diff -r 8fce6d532576 -r 75dec396f0e3 java/nekurak.net-ws/web/WEB-INF/beans.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/nekurak.net-ws/web/WEB-INF/beans.xml Mon Apr 12 10:50:39 2010 +0200 @@ -0,0 +1,5 @@ + + + diff -r 8fce6d532576 -r 75dec396f0e3 java/nekurak.net-ws/web/WEB-INF/sun-web.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/nekurak.net-ws/web/WEB-INF/sun-web.xml Mon Apr 12 10:50:39 2010 +0200 @@ -0,0 +1,11 @@ + + + + /nekurak.net-ws + + + + Keep a copy of the generated servlet class' java code. + + + diff -r 8fce6d532576 -r 75dec396f0e3 java/nekurak.net-ws/web/WEB-INF/web.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/nekurak.net-ws/web/WEB-INF/web.xml Mon Apr 12 10:50:39 2010 +0200 @@ -0,0 +1,12 @@ + + + + + + 30 + + + diff -r 8fce6d532576 -r 75dec396f0e3 java/nekurak.net-ws/web/WEB-INF/wsit-cz.frantovo.nekurak.ws.Pokus.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/nekurak.net-ws/web/WEB-INF/wsit-cz.frantovo.nekurak.ws.Pokus.xml Mon Apr 12 10:50:39 2010 +0200 @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 8fce6d532576 -r 75dec396f0e3 java/nekurak.net-ws/web/index.jsp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/nekurak.net-ws/web/index.jsp Mon Apr 12 10:50:39 2010 +0200 @@ -0,0 +1,24 @@ + + + + + + + + + WS SOAP + + +

WS SOAP

+

API postavené na webových službách

+ + + +