Author: thomas.diesler(a)jboss.com
Date: 2008-03-12 07:09:56 -0400 (Wed, 12 Mar 2008)
New Revision: 5939
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/AddressingClient.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/AsyncProcessRequest.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Bus.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Client.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ClientHelper.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarAddressingEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarJMSEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarMessageBean.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarProcessor.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarReplyEndpointImpl.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarRequest.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponse.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponseMessageBean.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/JMSClient.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ReplyConverter.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ReplyToServlet.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Route.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ServiceRequest.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Stop.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/Bus.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarRequest.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarResponse.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarService.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/ObjectFactory.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/Route.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/ServiceRequest.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/Stop.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/package-info.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperMTOMEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperSWAEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/AbstractPressReleaseEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/Agency.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/EditionMTOM.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/EditionSWA.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperMTOM.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperMTOMEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperSWA.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperSWAEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/PressRelease.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/PressReleaseEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/Printer.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecureAgency.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecureNewspaperMTOMEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecureNewspaperSWAEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecurePressReleaseEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecurePrinter.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/
stack/native/trunk/src/test/resources/jaxws/samples/advanced/
stack/native/trunk/src/test/resources/jaxws/samples/advanced/news/
Removed:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/
stack/native/trunk/src/test/resources/jaxws/samples/dar/
stack/native/trunk/src/test/resources/jaxws/samples/news/
Modified:
stack/native/trunk/ant-import-tests/build-samples-jaxws.xml
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/DarReplyEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/DarReplyService.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/DarResponse.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/ObjectFactory.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/Route.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/ServiceRequest.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/Stop.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/package-info.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/ObjectFactory.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/PressRelease.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/PressReleaseEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/PressReleaseService.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/SubmitPressRelease.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/SubmitPressReleaseResponse.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/package-info.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/EditionMTOM.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/NewspaperMTOMEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/NewspaperMTOMService.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/ObjectFactory.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/StringArray.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/package-info.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/EditionSWA.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/NewspaperSWAEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/NewspaperSWAService.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/ObjectFactory.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/StringArray.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/package-info.java
Log:
[JBWS-2031] Put advanced samples together with the retail sample
Modified: stack/native/trunk/ant-import-tests/build-samples-jaxws.xml
===================================================================
--- stack/native/trunk/ant-import-tests/build-samples-jaxws.xml 2008-03-12 11:02:53 UTC
(rev 5938)
+++ stack/native/trunk/ant-import-tests/build-samples-jaxws.xml 2008-03-12 11:09:56 UTC
(rev 5939)
@@ -21,82 +21,82 @@
<!-- jaxws-samples-dar -->
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-dar.jar">
<fileset dir="${tests.output.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/samples/dar/Bus.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/DarEndpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/DarProcessor.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/DarRequest.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/DarResponse.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/Route.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/ServiceRequest.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/Stop.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Bus.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarEndpoint.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarProcessor.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarRequest.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponse.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Route.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/ServiceRequest.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Stop.class"/>
</fileset>
</jar>
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-dar-client.jar">
<fileset dir="${tests.output.dir}/classes">
- <include
name="org/jboss/test/ws/jaxws/samples/dar/generated/*.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/ClientHelper.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/Client.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/*.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/ClientHelper.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Client.class"/>
</fileset>
</jar>
<jar
jarfile="${tests.output.dir}/libs/jaxws-samples-dar-addressing.jar">
<fileset dir="${tests.output.dir}/classes">
- <include
name="org/jboss/test/ws/jaxws/samples/dar/AsyncProcessRequest.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/Bus.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/DarAddressingEndpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/DarMessageBean.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/DarProcessor.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/DarRequest.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/DarResponse.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/ReplyConverter.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/Route.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/ServiceRequest.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/Stop.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/generated/reply/*.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/AsyncProcessRequest.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Bus.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarAddressingEndpoint.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarMessageBean.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarProcessor.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarRequest.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponse.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/ReplyConverter.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Route.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/ServiceRequest.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Stop.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/*.class"/>
</fileset>
</jar>
<jar
jarfile="${tests.output.dir}/libs/jaxws-samples-dar-addressing-client.jar">
<fileset dir="${tests.output.dir}/classes">
- <include
name="org/jboss/test/ws/jaxws/samples/dar/generated/*.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/ClientHelper.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/AddressingClient.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/*.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/ClientHelper.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/AddressingClient.class"/>
</fileset>
</jar>
- <war
warfile="${tests.output.dir}/libs/jaxws-samples-dar-addressing-client.war"
webxml="${tests.output.dir}/resources/jaxws/samples/dar/WEB-INF/web.xml">
+ <war
warfile="${tests.output.dir}/libs/jaxws-samples-dar-addressing-client.war"
webxml="${tests.output.dir}/resources/jaxws/samples/advanced/dialaride/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/classes">
- <include
name="org/jboss/test/ws/jaxws/samples/dar/generated/reply/*.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/DarReplyEndpointImpl.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/ReplyToServlet.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/*.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarReplyEndpointImpl.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/ReplyToServlet.class"/>
</classes>
- <webinf
dir="${tests.output.dir}/resources/jaxws/samples/dar/WEB-INF">
+ <webinf
dir="${tests.output.dir}/resources/jaxws/samples/advanced/dialaride/WEB-INF">
<include name="jboss-web.xml"/>
<include name="wsdl/reply.wsdl"/>
</webinf>
</war>
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-dar-jms.jar">
<fileset dir="${tests.output.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/samples/dar/Bus.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/DarJMSEndpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/DarProcessor.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/DarRequest.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/DarResponse.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/Route.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/ServiceRequest.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/Stop.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Bus.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarJMSEndpoint.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarProcessor.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarRequest.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponse.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Route.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/ServiceRequest.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Stop.class"/>
</fileset>
</jar>
- <war jarfile="${tests.output.dir}/libs/jaxws-samples-dar-jms-client.war"
webxml="${tests.output.dir}/resources/jaxws/samples/dar/WEB-INF-jms/web.xml">
+ <war jarfile="${tests.output.dir}/libs/jaxws-samples-dar-jms-client.war"
webxml="${tests.output.dir}/resources/jaxws/samples/advanced/dialaride/WEB-INF-jms/web.xml">
<fileset dir="${tests.output.dir}/classes">
- <include
name="org/jboss/test/ws/jaxws/samples/dar/generated/*.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/ClientHelper.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/dar/JMSClient.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/*.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/ClientHelper.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/JMSClient.class"/>
</fileset>
- <webinf
dir="${tests.output.dir}/resources/jaxws/samples/dar/WEB-INF-jms">
+ <webinf
dir="${tests.output.dir}/resources/jaxws/samples/advanced/dialaride/WEB-INF-jms">
<include name="jboss-web.xml"/>
</webinf>
</war>
<jar
jarfile="${tests.output.dir}/libs/jaxws-samples-dar-jms-client.jar">
<fileset dir="${tests.output.dir}/classes">
- <include
name="org/jboss/test/ws/jaxws/samples/dar/DarResponseMessageBean.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponseMessageBean.class"/>
</fileset>
</jar>
<jar
jarfile="${tests.output.dir}/libs/jaxws-samples-dar-jms-client.sar">
@@ -104,7 +104,7 @@
<include name="jaxws-samples-dar-jms-client.war"/>
<include name="jaxws-samples-dar-jms-client.jar"/>
</fileset>
- <metainf
dir="${tests.output.dir}/resources/jaxws/samples/dar/META-INF">
+ <metainf
dir="${tests.output.dir}/resources/jaxws/samples/advanced/dialaride/META-INF">
<include name="jboss-service.xml"/>
</metainf>
</jar>
@@ -129,48 +129,48 @@
<!-- jaxws-samples-news -->
<jar
jarfile="${tests.output.dir}/libs/jaxws-samples-news-step1-newspaper.jar">
<fileset dir="${tests.output.dir}/classes">
- <include
name="org/jboss/test/ws/jaxws/samples/news/PressRelease.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/AbstractPressReleaseEndpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/PressReleaseEndpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/NewspaperSWA.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/AbstractNewspaperSWAEndpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/NewspaperSWAEndpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/NewspaperMTOM.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/AbstractNewspaperMTOMEndpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/NewspaperMTOMEndpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/EditionSWA.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/EditionMTOM.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/jaxws-handlers-server.xml"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/PressRelease.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/AbstractPressReleaseEndpoint.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/PressReleaseEndpoint.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperSWA.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperSWAEndpoint.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperSWAEndpoint.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperMTOM.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperMTOMEndpoint.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperMTOMEndpoint.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/EditionSWA.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/EditionMTOM.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/jaxws-handlers-server.xml"/>
</fileset>
</jar>
<jar
jarfile="${tests.output.dir}/libs/jaxws-samples-news-step1-agency.jar">
<fileset dir="${tests.output.dir}/classes">
- <include
name="org/jboss/test/ws/jaxws/samples/news/generated/agency/*.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/Agency.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/*.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/Agency.class"/>
</fileset>
</jar>
<jar
jarfile="${tests.output.dir}/libs/jaxws-samples-news-step1-printer.jar">
<fileset dir="${tests.output.dir}/classes">
- <include
name="org/jboss/test/ws/jaxws/samples/news/generated/printer/**/*.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/Printer.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/**/*.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/Printer.class"/>
</fileset>
</jar>
<jar
jarfile="${tests.output.dir}/libs/jaxws-samples-news-step2-newspaper.jar">
<fileset dir="${tests.output.dir}/classes">
- <include
name="org/jboss/test/ws/jaxws/samples/news/PressRelease.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/AbstractPressReleaseEndpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/SecurePressReleaseEndpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/NewspaperSWA.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/AbstractNewspaperSWAEndpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/SecureNewspaperSWAEndpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/NewspaperMTOM.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/AbstractNewspaperMTOMEndpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/SecureNewspaperMTOMEndpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/EditionSWA.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/EditionMTOM.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/jaxws-handlers-server.xml"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/PressRelease.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/AbstractPressReleaseEndpoint.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/SecurePressReleaseEndpoint.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperSWA.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperSWAEndpoint.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/SecureNewspaperSWAEndpoint.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperMTOM.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperMTOMEndpoint.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/SecureNewspaperMTOMEndpoint.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/EditionSWA.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/EditionMTOM.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/jaxws-handlers-server.xml"/>
</fileset>
- <metainf
dir="${tests.output.dir}/resources/jaxws/samples/news/META-INF">
+ <metainf
dir="${tests.output.dir}/resources/jaxws/samples/advanced/news/META-INF">
<include name="jboss-wsse-server.xml"/>
<include name="bob-sign_enc.jks"/>
<include name="wsse10.truststore"/>
@@ -178,11 +178,11 @@
</jar>
<jar
jarfile="${tests.output.dir}/libs/jaxws-samples-news-step2-agency.jar">
<fileset dir="${tests.output.dir}/classes">
- <include
name="org/jboss/test/ws/jaxws/samples/news/generated/agency/*.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/Agency.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/SecureAgency.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/*.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/Agency.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/SecureAgency.class"/>
</fileset>
- <metainf
dir="${tests.output.dir}/resources/jaxws/samples/news/META-INF">
+ <metainf
dir="${tests.output.dir}/resources/jaxws/samples/advanced/news/META-INF">
<include name="jboss-wsse-client.xml"/>
<include name="alice-sign_enc.jks"/>
<include name="wsse10.truststore"/>
@@ -190,9 +190,9 @@
</jar>
<jar
jarfile="${tests.output.dir}/libs/jaxws-samples-news-step2-printer.jar">
<fileset dir="${tests.output.dir}/classes">
- <include
name="org/jboss/test/ws/jaxws/samples/news/generated/printer/**/*.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/Printer.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/news/SecurePrinter.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/**/*.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/Printer.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/news/SecurePrinter.class"/>
</fileset>
</jar>
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/AddressingClient.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/AddressingClient.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/AddressingClient.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/AddressingClient.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,137 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+//$Id$
+
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.net.URL;
+import java.util.Date;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Response;
+import javax.xml.ws.addressing.AddressingBuilder;
+import javax.xml.ws.addressing.AddressingProperties;
+import javax.xml.ws.addressing.AttributedURI;
+import javax.xml.ws.addressing.JAXWSAConstants;
+
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.DarEndpoint;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.DarRequest;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.DarResponse;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.DarService;
+import org.jboss.ws.core.StubExt;
+import org.jboss.ws.extensions.addressing.AddressingClientUtil;
+
+/**
+ * DAR addressing client; invokes the DAR addressing endpoint (sync, asynch and oneway)
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class AddressingClient
+{
+ protected DarEndpoint endpoint;
+
+ private static AddressingBuilder BUILDER;
+ private static final String WSA_TO =
"http://org.jboss.test.ws.jaxws.samples.dar/server";
+ private static final String WSA_ACTION =
"http://org.jboss.test.ws.jaxws.samples.dar/action/processIn";
+ private static final String WSA_ACTION_ONEWAY =
"http://org.jboss.test.ws.jaxws.samples.dar/action/onewayProcessIn";
+
+ static
+ {
+ BUILDER = AddressingBuilder.getAddressingBuilder();
+ }
+
+ public AddressingClient(URL url)
+ {
+ DarService service = new DarService(url, new
QName("http://org.jboss.ws/samples/dar", "DarService"));
+ endpoint = service.getDarEndpointPort();
+ ((StubExt)endpoint).setConfigName("Standard WSAddressing Client");
+ ClientHelper.setUsernamePassword((BindingProvider)endpoint, "kermit",
"thefrog");
+ }
+
+ public void run(boolean asynch) throws Exception
+ {
+ configureAddressingProperties((BindingProvider)endpoint, WSA_ACTION, WSA_TO,
"http://localhost:8080/dar-client/replyTo");
+ DarRequest request = ClientHelper.getRequest();
+ System.out.println(new Date() + " Sending request...");
+ if (asynch)
+ {
+ Response<DarResponse> resp = endpoint.processAsync(request);
+ System.out.println("Doing something interesting in the mean time... ;-)
");
+ resp.get();
+ }
+ else
+ {
+ endpoint.process(request);
+ }
+ //don't care about the response: it is null since the real one went to the
replyTo address
+ System.out.println(new Date() + " Done.");
+ }
+
+ public void runOneway() throws Exception
+ {
+ configureAddressingProperties((BindingProvider)endpoint, WSA_ACTION_ONEWAY, WSA_TO,
"http://localhost:8080/dar-client/replyService");
+ DarRequest request = ClientHelper.getRequest();
+ System.out.println(new Date() + " Sending request...");
+ endpoint.onewayProcess(request);
+ System.out.println(new Date() + " Done.");
+ }
+
+ private static void configureAddressingProperties(BindingProvider bp, String
wsaAction, String wsaTo, String replyTo) throws URISyntaxException
+ {
+ AddressingProperties requestProps =
AddressingClientUtil.createDefaultProps(wsaAction, wsaTo);
+ AttributedURI messageId = AddressingClientUtil.createMessageID();
+ System.out.println("Sent message ID: " + messageId.getURI());
+ requestProps.setMessageID(messageId);
+ requestProps.setReplyTo(BUILDER.newEndpointReference(new URI(replyTo)));
+ bp.getRequestContext().put(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND,
requestProps);
+ }
+
+ public static void main(String[] args)
+ {
+ try
+ {
+ if (args.length == 1)
+ {
+ AddressingClient client = new AddressingClient(new URL(args[0]));
+ System.out.println("* Synchronous invocation: ");
+ client.run(false);
+ System.out.println("\n* Asynchronous invocation: ");
+ client.run(true);
+ System.out.println("\n* Oneway invocation: ");
+ client.runOneway();
+ }
+ else
+ {
+ System.out.println("AddressingClient usage:");
+ System.out.println("wsrunclient.sh -classpath AddressingClient.jar
org.jboss.test.ws.jaxws.samples.dar.AddressingClient
http://host:port/dar?wsdl");
+ }
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/AsyncProcessRequest.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/AsyncProcessRequest.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/AsyncProcessRequest.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/AsyncProcessRequest.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,57 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+import java.io.Serializable;
+import java.net.URI;
+
+public class AsyncProcessRequest implements Serializable
+{
+ private DarRequest request;
+ private URI replyTo;
+ private URI messageId;
+
+ public DarRequest getRequest()
+ {
+ return request;
+ }
+ public void setRequest(DarRequest request)
+ {
+ this.request = request;
+ }
+ public URI getReplyTo()
+ {
+ return replyTo;
+ }
+ public void setReplyTo(URI replyTo)
+ {
+ this.replyTo = replyTo;
+ }
+ public URI getMessageId()
+ {
+ return messageId;
+ }
+ public void setMessageId(URI messageId)
+ {
+ this.messageId = messageId;
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Bus.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/Bus.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Bus.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Bus.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,53 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+import java.io.Serializable;
+
+/**
+ * A bus with its id and max load (number of persons)
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class Bus implements Serializable
+{
+ private String id;
+ private int capacity;
+
+ public String getId()
+ {
+ return id;
+ }
+ public void setId(String id)
+ {
+ this.id = id;
+ }
+ public int getCapacity()
+ {
+ return capacity;
+ }
+ public void setCapacity(int capacity)
+ {
+ this.capacity = capacity;
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Client.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/Client.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Client.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Client.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,97 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+//$Id$
+
+import java.net.URL;
+import java.util.Date;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Response;
+
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.DarEndpoint;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.DarRequest;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.DarResponse;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.DarService;
+
+/**
+ * DAR client; invokes the DAR endpoint (sync, asynch)
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class Client
+{
+ protected DarEndpoint endpoint;
+
+ public Client(URL url)
+ {
+ DarService service = new DarService(url, new
QName("http://org.jboss.ws/samples/dar", "DarService"));
+ endpoint = service.getDarEndpointPort();
+ ClientHelper.setUsernamePassword((BindingProvider)endpoint, "kermit",
"thefrog");
+ }
+
+ public void run(boolean asynch) throws Exception
+ {
+ DarRequest request = ClientHelper.getRequest();
+ System.out.println(new Date() + " Sending request...");
+ DarResponse darResponse;
+ if (asynch)
+ {
+ Response<DarResponse> response = endpoint.processAsync(request);
+ System.out.println("Doing something interesting in the mean time... ;-)
");
+ darResponse = response.get();
+ }
+ else
+ {
+ darResponse = endpoint.process(request);
+ }
+ System.out.println(new Date() + " Response received: "+darResponse);
+ ClientHelper.printResponse(darResponse);
+ }
+
+ public static void main(String[] args)
+ {
+ try
+ {
+ if (args.length == 1)
+ {
+ Client client = new Client(new URL(args[0]));
+ System.out.println("* Synchronous invocation: ");
+ client.run(false);
+ System.out.println("\n* Asynchronous invocation: ");
+ client.run(true);
+ }
+ else
+ {
+ System.out.println("Client usage:");
+ System.out.println("wsrunclient.sh -classpath client.jar
org.jboss.test.ws.jaxws.samples.dar.Client
http://host:port/dar?wsdl");
+ }
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ClientHelper.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ClientHelper.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ClientHelper.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ClientHelper.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,94 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+import java.io.PrintStream;
+import java.util.GregorianCalendar;
+import java.util.List;
+
+import javax.xml.ws.BindingProvider;
+
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.Bus;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.DarRequest;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.DarResponse;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.Route;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.ServiceRequest;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.Stop;
+
+import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl;
+
+public class ClientHelper
+{
+ public static void setUsernamePassword(BindingProvider bp, String username, String
password)
+ {
+ bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, username);
+ bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, password);
+ }
+
+ public static DarRequest getRequest()
+ {
+ DarRequest request = new DarRequest();
+ request.setMapId("map1234");
+ for (int s=0; s<5; s++)
+ {
+ ServiceRequest serviceRequest = new ServiceRequest();
+ Stop up = new Stop();
+ up.setNode(new Double(Math.random()*1000).intValue());
+ up.setTime(new XMLGregorianCalendarImpl(new GregorianCalendar()));
+ Stop down = new Stop();
+ down.setNode(new Double(Math.random()*1000).intValue());
+ down.setTime(new XMLGregorianCalendarImpl(new GregorianCalendar()));
+ serviceRequest.setFrom(up);
+ serviceRequest.setTo(down);
+ serviceRequest.setPeople(new Double(Math.random()*3).intValue()+1);
+ serviceRequest.setId("Req" + s);
+ request.getRequests().add(serviceRequest);
+ }
+ for (int b=0; b<2; b++)
+ {
+ Bus bus = new Bus();
+ bus.setCapacity(10);
+ bus.setId("Bus" + b);
+ request.getBuses().add(bus);
+ }
+ return request;
+ }
+
+ public static void printResponse(DarResponse response)
+ {
+ printResponse(response, System.out);
+ }
+
+ public static void printResponse(DarResponse response, PrintStream output)
+ {
+ List<Route> routes = response.getRoutes();
+ for (Route route : routes)
+ {
+ output.print(route.getBusId() + ": ");
+ for (Stop stop : route.getStops())
+ {
+ output.print(stop.getNode() + " ");
+ }
+ output.print("\n");
+ }
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarAddressingEndpoint.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarAddressingEndpoint.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarAddressingEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarAddressingEndpoint.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,130 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+//$Id$
+
+import javax.annotation.Resource;
+import javax.ejb.Stateless;
+import javax.jms.ObjectMessage;
+import javax.jms.Queue;
+import javax.jms.QueueConnection;
+import javax.jms.QueueConnectionFactory;
+import javax.jms.QueueSender;
+import javax.jms.QueueSession;
+import javax.jms.Session;
+import javax.jws.Oneway;
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.naming.InitialContext;
+import javax.xml.ws.Action;
+import javax.xml.ws.WebServiceContext;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.addressing.AddressingProperties;
+import javax.xml.ws.addressing.JAXWSAConstants;
+
+import org.jboss.annotation.security.SecurityDomain;
+import org.jboss.logging.Logger;
+import org.jboss.ws.annotation.EndpointConfig;
+import org.jboss.wsf.spi.annotation.WebContext;
+
+
+/**
+ * Addressing endpoint; performs sync and async DAR route optimization
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@Stateless
+@WebService(name = "DarEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/dar",
+ serviceName = "DarService")
+@SOAPBinding(style = SOAPBinding.Style.RPC,
+ use = SOAPBinding.Use.LITERAL)
+@SecurityDomain("JBossWS")
+@WebContext(contextRoot="/dar",
+ urlPattern="/*",
+ authMethod="BASIC",
+ transportGuarantee="NONE",
+ secureWSDLAccess=false)
+@EndpointConfig(configName = "Standard WSAddressing Endpoint")
+public class DarAddressingEndpoint
+{
+ @Resource
+ private WebServiceContext ctx;
+ private static Logger log = Logger.getLogger(DarAddressingEndpoint.class);
+
+ @WebMethod(operationName = "process", action =
"http://org.jboss.test.ws.jaxws.samples.dar/action/processIn")
+ @Action(input =
"http://org.jboss.test.ws.jaxws.samples.dar/action/processIn", output =
"http://org.jboss.test.ws.jaxws.samples.dar/action/processOut")
+ public DarResponse process(DarRequest request)
+ {
+ DarProcessor processor = new DarProcessor();
+ AddressingProperties props =
(AddressingProperties)ctx.getMessageContext().get(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND);
+ if (props!=null && props.getReplyTo()!=null)
+ {
+ System.out.println(props.getReplyTo().getAddress().getURI());
+ }
+ return processor.process(request);
+ }
+
+
+
+ @WebMethod(operationName = "onewayProcess", action =
"http://org.jboss.test.ws.jaxws.samples.dar/action/onewayProcessIn")
+ @Action(input =
"http://org.jboss.test.ws.jaxws.samples.dar/action/onewayProcessIn")
+ @Oneway
+ public void onewayProcess(DarRequest request)
+ {
+ QueueSession queueSession =null;
+ QueueSender sender = null;
+ try {
+ InitialContext context = new InitialContext();
+ QueueConnectionFactory connectionFactory =
(QueueConnectionFactory)context.lookup("ConnectionFactory");
+ QueueConnection con = connectionFactory.createQueueConnection();
+ queueSession = con.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
+ Queue queue = (Queue)context.lookup("queue/DarQueue");
+ sender = queueSession.createSender(queue);
+ AsyncProcessRequest asyncRequest = new AsyncProcessRequest();
+ asyncRequest.setRequest(request);
+ AddressingProperties props =
(AddressingProperties)ctx.getMessageContext().get(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND);
+ asyncRequest.setReplyTo(props.getReplyTo().getAddress().getURI());
+ asyncRequest.setMessageId(props.getMessageID().getURI());
+ ObjectMessage message = queueSession.createObjectMessage(asyncRequest);
+ sender.send(message);
+ log.info("AsyncProcessRequest sent...");
+ } catch (Exception e) {
+ throw new WebServiceException(e);
+ } finally {
+ try
+ {
+ sender.close();
+ }
+ catch(Exception e1) {}
+ try
+ {
+ queueSession.close();
+ }
+ catch(Exception e1) {}
+ }
+
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarEndpoint.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarEndpoint.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarEndpoint.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,60 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+//$Id$
+
+import javax.ejb.Stateless;
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.jboss.annotation.security.SecurityDomain;
+import org.jboss.wsf.spi.annotation.WebContext;
+
+/**
+ * Performs DAR route optimization
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@Stateless
+@WebService(name = "DarEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/dar",
+ serviceName = "DarService")
+@SOAPBinding(style = SOAPBinding.Style.RPC,
+ use = SOAPBinding.Use.LITERAL)
+@SecurityDomain("JBossWS")
+@WebContext(contextRoot="/dar",
+ urlPattern="/*",
+ authMethod="BASIC",
+ transportGuarantee="NONE",
+ secureWSDLAccess=false)
+public class DarEndpoint
+{
+ @WebMethod(operationName = "process", action =
"http://org.jboss.test.ws.jaxws.samples.dar/action/processIn")
+ public DarResponse process(DarRequest request)
+ {
+ DarProcessor processor = new DarProcessor();
+ return processor.process(request);
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarJMSEndpoint.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarJMSEndpoint.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarJMSEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarJMSEndpoint.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,73 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+//$Id$
+
+import javax.ejb.ActivationConfigProperty;
+import javax.ejb.MessageDriven;
+import javax.jms.Message;
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.core.transport.jms.JMSTransportSupportEJB3;
+import org.jboss.wsf.spi.annotation.WebContext;
+
+
+/**
+ * Performs DAR route optimization
+ *
+ * @author alessio.soldano(a)jboss.com
+ * @since 01-Feb-2008
+ */
+@WebService (name = "DarEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/dar",
+ serviceName = "DarService")
+@WebContext(contextRoot="/dar")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+@MessageDriven(activationConfig = {
+ @ActivationConfigProperty(propertyName = "destinationType", propertyValue
= "javax.jms.Queue"),
+ @ActivationConfigProperty(propertyName = "destination", propertyValue =
"queue/DarRequestQueue")
+ },
+ messageListenerInterface = javax.jms.MessageListener.class
+)
+public class DarJMSEndpoint extends JMSTransportSupportEJB3
+{
+
+ private static final Logger log = Logger.getLogger(DarJMSEndpoint.class);
+
+ @WebMethod(operationName = "process", action =
"http://org.jboss.test.ws.jaxws.samples.dar/action/processIn")
+ public DarResponse process(DarRequest request)
+ {
+ DarProcessor processor = new DarProcessor();
+ return processor.process(request);
+ }
+
+ @Override
+ public void onMessage(Message message)
+ {
+ log.debug("onMessage: " + message);
+ super.onMessage(message);
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarMessageBean.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarMessageBean.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarMessageBean.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarMessageBean.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,94 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+//$Id$
+
+import java.net.URL;
+
+import javax.ejb.ActivationConfigProperty;
+import javax.ejb.MessageDriven;
+import javax.jms.Message;
+import javax.jms.MessageListener;
+import javax.jms.ObjectMessage;
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Service;
+import javax.xml.ws.addressing.AddressingProperties;
+import javax.xml.ws.addressing.JAXWSAConstants;
+import javax.xml.ws.addressing.Relationship;
+
+import org.jboss.logging.Logger;
+import
org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.DarReplyEndpoint;
+import org.jboss.ws.core.StubExt;
+import org.jboss.ws.extensions.addressing.AddressingClientUtil;
+import org.jboss.ws.extensions.addressing.RelationshipImpl;
+
+/**
+ * Get DAR requests from the queue, delegate to the DarProcessor and
+ * send responses back to the client endpoints.
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@MessageDriven( name="DarListener", activationConfig= {
+
@ActivationConfigProperty(propertyName="destinationType",propertyValue="javax.jms.Queue"),
+
@ActivationConfigProperty(propertyName="destination",propertyValue="queue/DarQueue")}
+)
+public class DarMessageBean implements MessageListener
+{
+ private static Logger log = Logger.getLogger(DarMessageBean.class);
+ private static final String WSA_ACTION =
"http://org.jboss.test.ws.jaxws.samples.dar/action/receiveIn";
+
+ public void onMessage(Message arg0)
+ {
+ try {
+ ObjectMessage message = (ObjectMessage)arg0;
+ AsyncProcessRequest asyncRequest = (AsyncProcessRequest)message.getObject();
+ DarProcessor processor = new DarProcessor();
+ DarResponse response = processor.process(asyncRequest.getRequest());
+
+ //convert the response and send it to the client reply service
+ org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.DarResponse
darResponse = ReplyConverter.convertResponse(response);
+ String replyTo = asyncRequest.getReplyTo().toURL().toString();
+ log.info("Response will be sent to: " + replyTo);
+ QName serviceName = new QName("http://org.jboss.ws/samples/dar",
"DarReplyService");
+ Service service = Service.create(new URL(replyTo + "?wsdl"),
serviceName);
+ DarReplyEndpoint endpoint =
(DarReplyEndpoint)service.getPort(DarReplyEndpoint.class);
+
+ //setup addressing configuration and properties
+ ((StubExt)endpoint).setConfigName("Standard WSAddressing Client");
+
((BindingProvider)endpoint).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
replyTo);
+ AddressingProperties requestProps =
AddressingClientUtil.createOneWayProps(WSA_ACTION, replyTo);
+ requestProps.setMessageID(AddressingClientUtil.createMessageID());
+ Relationship[] relationships = new Relationship[1];
+ relationships[0] = new RelationshipImpl(asyncRequest.getMessageId());
+ requestProps.setRelatesTo(relationships);
+
((BindingProvider)endpoint).getRequestContext().put(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND,
requestProps);
+
+ endpoint.receive(darResponse);
+ log.info("Response sent.");
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarProcessor.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarProcessor.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarProcessor.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarProcessor.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,102 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+//$Id$
+
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Map;
+
+import org.jboss.logging.Logger;
+
+/**
+ * Mock implementation of a DAR problem optimizer
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class DarProcessor
+{
+ private Logger log = Logger.getLogger(this.getClass());
+
+ public DarResponse process(DarRequest request)
+ {
+ //FAKE implementation...
+ log.info("Processing DAR request... " + request);
+ DarResponse response = new DarResponse();
+ if (request != null)
+ {
+ List<Stop> stopList = new LinkedList<Stop>();
+ List<ServiceRequest> rejectedRequests = new
LinkedList<ServiceRequest>();
+ if (!request.getRequests().isEmpty())
+ {
+ rejectedRequests.add(request.getRequests().remove(0));
+ for (ServiceRequest sRequest : request.getRequests())
+ {
+ Stop from = sRequest.getFrom();
+ Stop to = sRequest.getTo();
+ if (from != null && to != null)
+ {
+ log.info(sRequest.getPeople() + " person(s) from " +
from.getNode() + " to " + to.getNode());
+ stopList.add(from);
+ stopList.add(to);
+ }
+ }
+ }
+ //computing... ;-)
+ try
+ {
+ Thread.sleep(5000);
+ }
+ catch (Exception e)
+ {
+ }
+ Map<String,Route> routes = new HashMap<String,Route>();
+ if (!request.getBuses().isEmpty())
+ {
+ for (Bus bus : request.getBuses())
+ {
+ Route route = new Route();
+ route.setBusId(bus.getId());
+ route.setStops(new LinkedList<Stop>());
+ routes.put(bus.getId(), route);
+ }
+ Iterator<Stop> itStop = stopList.iterator();
+ while (itStop.hasNext())
+ {
+ int random = new
Double(Math.random()*request.getBuses().size()).intValue();
+ Bus bus = request.getBuses().get(random);
+ Route route = routes.get(bus.getId());
+ route.getStops().add(itStop.next());
+ route.getStops().add(itStop.next());
+ }
+ }
+ response.setUnservedRequests(rejectedRequests);
+ response.setRoutes(new LinkedList<Route>(routes.values()));
+ log.info("Done " + request);
+ }
+ return response;
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarReplyEndpointImpl.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarReplyEndpointImpl.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarReplyEndpointImpl.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarReplyEndpointImpl.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,87 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+//$Id$
+
+import java.util.List;
+
+import javax.annotation.Resource;
+import javax.jws.Oneway;
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.jws.soap.SOAPBinding.Style;
+import javax.jws.soap.SOAPBinding.Use;
+import javax.xml.ws.Action;
+import javax.xml.ws.WebServiceContext;
+import javax.xml.ws.addressing.AddressingProperties;
+import javax.xml.ws.addressing.JAXWSAConstants;
+
+import org.jboss.logging.Logger;
+import
org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.DarReplyEndpoint;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.DarResponse;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.Route;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.Stop;
+import org.jboss.ws.annotation.EndpointConfig;
+
+/**
+ * The client endpoint receiving DAR responses
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@WebService(name = "DarReplyEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/dar",
+ endpointInterface =
"org.jboss.test.ws.jaxws.samples.dar.generated.reply.DarReplyEndpoint",
+ wsdlLocation = "/WEB-INF/wsdl/reply.wsdl",
+ serviceName = "DarReplyService")
+@SOAPBinding(style = Style.RPC,
+ use = Use.LITERAL)
+@EndpointConfig(configName = "Standard WSAddressing Endpoint")
+public class DarReplyEndpointImpl implements DarReplyEndpoint
+{
+ @Resource
+ private WebServiceContext ctx;
+ private static Logger log = Logger.getLogger(DarReplyEndpointImpl.class);
+
+ @WebMethod(action =
"http://org.jboss.test.ws.jaxws.samples.dar/action/receiveIn")
+ @Oneway
+ @Action(input =
"http://org.jboss.test.ws.jaxws.samples.dar/action/receiveIn")
+ public void receive(DarResponse arg0)
+ {
+ AddressingProperties props =
(AddressingProperties)ctx.getMessageContext().get(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND);
+ log.info("Result received; relationship message id: " +
props.getRelatesTo()[0].getID());
+ List<Route> routes = arg0.getRoutes();
+ for (Route route : routes)
+ {
+ log.info(route.getBusId() + ": ");
+ StringBuilder sb = new StringBuilder();
+ for (Stop stop : route.getStops())
+ {
+ sb.append(stop.getNode() + " ");
+ }
+ log.info(sb.toString());
+ }
+ }
+
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarRequest.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarRequest.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarRequest.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarRequest.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * A DAR request contains a list of service requests, the number of
+ * buses available in the current fleet and the mapId of the city
+ * whose roads' graph should be used.
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class DarRequest implements Serializable
+{
+ private List<ServiceRequest> requests;
+ private List<Bus> buses;
+ private String mapId;
+
+ public List<ServiceRequest> getRequests()
+ {
+ return requests;
+ }
+ public void setRequests(List<ServiceRequest> requests)
+ {
+ this.requests = requests;
+ }
+ public String getMapId()
+ {
+ return mapId;
+ }
+ public void setMapId(String mapId)
+ {
+ this.mapId = mapId;
+ }
+ public List<Bus> getBuses()
+ {
+ return buses;
+ }
+ public void setBuses(List<Bus> buses)
+ {
+ this.buses = buses;
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponse.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarResponse.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponse.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponse.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,54 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+import java.util.List;
+
+/**
+ * A DAR response contains the optimized routes and the
+ * requests the processor was not able to serve.
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class DarResponse
+{
+ private List<Route> routes;
+ private List<ServiceRequest> unservedRequests;
+
+ public List<Route> getRoutes()
+ {
+ return routes;
+ }
+ public void setRoutes(List<Route> routes)
+ {
+ this.routes = routes;
+ }
+ public List<ServiceRequest> getUnservedRequests()
+ {
+ return unservedRequests;
+ }
+ public void setUnservedRequests(List<ServiceRequest> unservedRequests)
+ {
+ this.unservedRequests = unservedRequests;
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponseMessageBean.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarResponseMessageBean.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponseMessageBean.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponseMessageBean.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,63 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+//$Id$
+
+import javax.ejb.ActivationConfigProperty;
+import javax.ejb.MessageDriven;
+import javax.jms.Message;
+import javax.jms.TextMessage;
+
+import org.jboss.logging.Logger;
+
+/**
+ * Receives DAR responses through JMS
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@MessageDriven(activationConfig = {
+ @ActivationConfigProperty(propertyName = "destinationType", propertyValue
= "javax.jms.Queue"),
+ @ActivationConfigProperty(propertyName = "destination", propertyValue =
"queue/DarResponseQueue")
+ },
+ messageListenerInterface = javax.jms.MessageListener.class
+)
+public class DarResponseMessageBean
+{
+ private Logger log = Logger.getLogger(DarResponseMessageBean.class);
+
+ public void onMessage(Message arg0)
+ {
+ try
+ {
+ TextMessage textMessage = (TextMessage)arg0;
+ String result = textMessage.getText();
+ log.info("DAR response received: " + result);
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/JMSClient.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/JMSClient.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/JMSClient.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/JMSClient.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,151 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+//$Id$
+
+import java.io.IOException;
+import java.io.PrintStream;
+
+import javax.jms.Queue;
+import javax.jms.QueueConnection;
+import javax.jms.QueueConnectionFactory;
+import javax.jms.QueueSender;
+import javax.jms.QueueSession;
+import javax.jms.Session;
+import javax.jms.TextMessage;
+import javax.naming.InitialContext;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.jboss.logging.Logger;
+
+/**
+ * DAR client; invokes the DAR JMS endpoint
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class JMSClient extends HttpServlet
+{
+ private Logger log = Logger.getLogger(JMSClient.class);
+
+ protected void doGet(HttpServletRequest httpServletRequest, HttpServletResponse
httpServletResponse) throws ServletException, IOException {
+ runMessageClient(new PrintStream(httpServletResponse.getOutputStream()));
+ }
+
+ private void runMessageClient(PrintStream ps)
+ {
+ String reqMessage = "<env:Envelope
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>" +
+ "<env:Header></env:Header>" +
+ "<env:Body>" +
+ "<ns1:process
xmlns:ns1='http://org.jboss.ws/samples/dar'>" +
+ "<arg0>" +
+ "<buses>" +
+ "<capacity>10</capacity>" +
+ "<id>Bus0</id>" +
+ "</buses>" +
+ "<buses>" +
+ "<capacity>10</capacity>" +
+ "<id>Bus1</id>" +
+ "</buses>" +
+ "<mapId>map1234</mapId>" +
+ "<requests>" +
+
"<from><node>667</node><time>2008-02-01T14:25:12.114+01:00</time></from>"
+
+ "<id>Req0</id>" +
+ "<people>2</people>" +
+
"<to><node>17</node><time>2008-02-01T14:25:12.114+01:00</time></to>"
+
+ "</requests>" +
+ "<requests>" +
+
"<from><node>18</node><time>2008-02-01T14:25:12.114+01:00</time></from>"
+
+ "<id>Req1</id>" +
+ "<people>1</people>" +
+
"<to><node>575</node><time>2008-02-01T14:25:12.114+01:00</time></to>"
+
+ "</requests>" +
+ "<requests>" +
+
"<from><node>713</node><time>2008-02-01T14:25:12.114+01:00</time></from>"
+
+ "<id>Req2</id>" +
+ "<people>2</people>" +
+
"<to><node>845</node><time>2008-02-01T14:25:12.114+01:00</time></to>"
+
+ "</requests>" +
+ "<requests>" +
+
"<from><node>117</node><time>2008-02-01z...zT14:25:12.114+01:00</time></from>"
+
+ "<id>Req3</id>" +
+ "<people>2</people>" +
+
"<to><node>140</node><time>2008-02-01T14:25:12.114+01:00</time></to>"
+
+ "</requests>" +
+ "<requests>" +
+
"<from><node>318</node><time>2008-02-01T14:25:12.114+01:00</time></from>"
+
+ "<id>Req4</id>" +
+ "<people>1</people>" +
+
"<to><node>57</node><time>2008-02-01T14:25:12.114+01:00</time></to>"
+
+ "</requests>" +
+ "</arg0>" +
+ "</ns1:process>" +
+ "</env:Body>" +
+ "</env:Envelope>";
+
+ QueueConnection con = null;
+ QueueSession session = null;
+ try
+ {
+ InitialContext context = new InitialContext();
+ QueueConnectionFactory connectionFactory =
(QueueConnectionFactory)context.lookup("ConnectionFactory");
+ Queue reqQueue = (Queue)context.lookup("queue/DarRequestQueue");
+ con = connectionFactory.createQueueConnection();
+ session = con.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
+ Queue resQueue = (Queue)context.lookup("queue/DarResponseQueue");
+ con.start();
+ TextMessage message = session.createTextMessage(reqMessage);
+ message.setJMSReplyTo(resQueue);
+ QueueSender sender = session.createSender(reqQueue);
+ sender.send(message);
+ sender.close();
+ ps.println("Request message sent, doing something interesting in the mean
time... ;-) ");
+ con.stop();
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace(ps);
+ }
+ finally
+ {
+ try
+ {
+ session.close();
+ }
+ catch(Exception e1) {}
+ try
+ {
+ con.close();
+ }
+ catch(Exception e1) {}
+ }
+ }
+
+
+ protected void doPost(HttpServletRequest httpServletRequest, HttpServletResponse
httpServletResponse) throws ServletException, IOException {
+ doGet(httpServletRequest,httpServletResponse);
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ReplyConverter.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ReplyConverter.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ReplyConverter.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ReplyConverter.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,82 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+import java.util.GregorianCalendar;
+
+import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl;
+
+public class ReplyConverter
+{
+ public static
org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.DarResponse
convertResponse(DarResponse response)
+ {
+ if (response == null)
+ return null;
+ org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.DarResponse r =
new org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.DarResponse();
+ for (Route route : response.getRoutes())
+ {
+ r.getRoutes().add(convertRoute(route));
+ }
+ for (ServiceRequest request : response.getUnservedRequests())
+ {
+ r.getUnservedRequests().add(convertServiceRequest(request));
+ }
+ return r;
+ }
+
+ public static
org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.ServiceRequest
convertServiceRequest(ServiceRequest request)
+ {
+ if (request == null)
+ return null;
+ org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.ServiceRequest s
= new
org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.ServiceRequest();
+ s.setFrom(convertStop(request.getFrom()));
+ s.setTo(convertStop(request.getTo()));
+ s.setId(request.getId());
+ s.setPeople(request.getPeople());
+ return s;
+ }
+
+ public static org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.Route
convertRoute(Route route)
+ {
+ if (route == null)
+ return null;
+ org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.Route r = new
org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.Route();
+ r.setBusId(route.getBusId());
+ for (Stop stop : route.getStops())
+ {
+ r.getStops().add(convertStop(stop));
+ }
+ return r;
+ }
+
+ public static org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.Stop
convertStop(Stop stop)
+ {
+ if (stop == null)
+ return null;
+ org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.Stop s = new
org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.Stop();
+ s.setNode(stop.getNode());
+ GregorianCalendar cal = new GregorianCalendar();
+ cal.setTime(stop.getTime());
+ s.setTime(new XMLGregorianCalendarImpl(cal));
+ return s;
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ReplyToServlet.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ReplyToServlet.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ReplyToServlet.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ReplyToServlet.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.servlet.ServletException;
+import java.io.IOException;
+import java.io.BufferedReader;
+
+/**
+ * A simple servlet sink receiving DAR responses.
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class ReplyToServlet extends HttpServlet {
+
+ protected void doGet(HttpServletRequest httpServletRequest, HttpServletResponse
httpServletResponse) throws ServletException, IOException {
+ dump(httpServletRequest, httpServletResponse);
+ }
+
+ protected void doPost(HttpServletRequest httpServletRequest, HttpServletResponse
httpServletResponse) throws ServletException, IOException {
+ dump(httpServletRequest, httpServletResponse);
+ }
+
+ private void dump(HttpServletRequest httpServletRequest, HttpServletResponse
httpServletResponse) {
+ System.out.println("ReplyTo sink:");
+
+ try {
+ BufferedReader reader = httpServletRequest.getReader();
+ String inputLine;
+
+ while ((inputLine = reader.readLine()) != null) {
+ System.out.println(inputLine);
+ }
+ reader.close();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+
+ httpServletResponse.setStatus(200);
+ }
+}
+
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Route.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/Route.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Route.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Route.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,53 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+import java.util.List;
+
+/**
+ * A route has the list of stops a given bus has to do.
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class Route
+{
+ private List<Stop> stops;
+ private String busId;
+
+ public List<Stop> getStops()
+ {
+ return stops;
+ }
+ public void setStops(List<Stop> stops)
+ {
+ this.stops = stops;
+ }
+ public String getBusId()
+ {
+ return busId;
+ }
+ public void setBusId(String busId)
+ {
+ this.busId = busId;
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ServiceRequest.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ServiceRequest.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ServiceRequest.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ServiceRequest.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+import java.io.Serializable;
+
+public class ServiceRequest implements Serializable
+{
+ private String id;
+ private Stop from;
+ private Stop to;
+ private int people;
+
+ public Stop getFrom()
+ {
+ return from;
+ }
+ public void setFrom(Stop from)
+ {
+ this.from = from;
+ }
+ public Stop getTo()
+ {
+ return to;
+ }
+ public void setTo(Stop to)
+ {
+ this.to = to;
+ }
+ public int getPeople()
+ {
+ return people;
+ }
+ public void setPeople(int people)
+ {
+ this.people = people;
+ }
+ public String getId()
+ {
+ return id;
+ }
+ public void setId(String id)
+ {
+ this.id = id;
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Stop.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/Stop.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Stop.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Stop.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,54 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * A required pick-up or delivery point (where & when)
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class Stop implements Serializable
+{
+ private Date time;
+ private Integer node; //the graph node corresponding to a given place in the city map
+
+ public Date getTime()
+ {
+ return time;
+ }
+ public void setTime(Date time)
+ {
+ this.time = time;
+ }
+ public Integer getNode()
+ {
+ return node;
+ }
+ public void setNode(Integer node)
+ {
+ this.node = node;
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/Bus.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/Bus.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/Bus.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/Bus.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,79 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for bus complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="bus">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="capacity"
type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="id"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "bus", propOrder = {
+ "capacity",
+ "id"
+})
+public class Bus {
+
+ protected int capacity;
+ protected String id;
+
+ /**
+ * Gets the value of the capacity property.
+ *
+ */
+ public int getCapacity() {
+ return capacity;
+ }
+
+ /**
+ * Sets the value of the capacity property.
+ *
+ */
+ public void setCapacity(int value) {
+ this.capacity = value;
+ }
+
+ /**
+ * Gets the value of the id property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setId(String value) {
+ this.id = value;
+ }
+
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarEndpoint.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/DarEndpoint.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarEndpoint.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,33 @@
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated;
+
+import javax.jws.Oneway;
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.xml.ws.Response;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.1.1-b03-
+ * Generated source version: 2.0
+ *
+ */
+@WebService(name = "DarEndpoint", targetNamespace =
"http://org.jboss.ws/samples/dar")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface DarEndpoint {
+
+ @WebMethod(operationName = "process")
+ public Response<DarResponse> processAsync(@WebParam(name = "arg0",
partName = "arg0") DarRequest arg0);
+
+ @WebMethod(action =
"http://org.jboss.test.ws.jaxws.samples.dar/action/processIn")
+ @WebResult(partName = "return")
+ public DarResponse process(@WebParam(name = "arg0", partName =
"arg0") DarRequest arg0);
+
+ @WebMethod(action =
"http://org.jboss.test.ws.jaxws.samples.dar/action/onewayProcessIn")
+ @Oneway
+ public void onewayProcess(@WebParam(name = "arg0", partName =
"arg0") DarRequest arg0);
+
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarRequest.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/DarRequest.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarRequest.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarRequest.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,129 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for darRequest complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="darRequest">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="buses"
type="{http://org.jboss.ws/samples/dar}bus" maxOccurs="unbounded"
minOccurs="0"/>
+ * <element name="mapId"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="requests"
type="{http://org.jboss.ws/samples/dar}serviceRequest"
maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "darRequest", propOrder = {
+ "buses",
+ "mapId",
+ "requests"
+})
+public class DarRequest {
+
+ @XmlElement(nillable = true)
+ protected List<Bus> buses;
+ protected String mapId;
+ @XmlElement(nillable = true)
+ protected List<ServiceRequest> requests;
+
+ /**
+ * Gets the value of the buses property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the buses
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getBuses().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Bus }
+ *
+ *
+ */
+ public List<Bus> getBuses() {
+ if (buses == null) {
+ buses = new ArrayList<Bus>();
+ }
+ return this.buses;
+ }
+
+ /**
+ * Gets the value of the mapId property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getMapId() {
+ return mapId;
+ }
+
+ /**
+ * Sets the value of the mapId property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setMapId(String value) {
+ this.mapId = value;
+ }
+
+ /**
+ * Gets the value of the requests property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the requests
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getRequests().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link ServiceRequest }
+ *
+ *
+ */
+ public List<ServiceRequest> getRequests() {
+ if (requests == null) {
+ requests = new ArrayList<ServiceRequest>();
+ }
+ return this.requests;
+ }
+
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarResponse.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/DarResponse.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarResponse.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarResponse.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,102 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for darResponse complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="darResponse">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="routes"
type="{http://org.jboss.ws/samples/dar}route" maxOccurs="unbounded"
minOccurs="0"/>
+ * <element name="unservedRequests"
type="{http://org.jboss.ws/samples/dar}serviceRequest"
maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "darResponse", propOrder = {
+ "routes",
+ "unservedRequests"
+})
+public class DarResponse {
+
+ @XmlElement(nillable = true)
+ protected List<Route> routes;
+ @XmlElement(nillable = true)
+ protected List<ServiceRequest> unservedRequests;
+
+ /**
+ * Gets the value of the routes property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the routes
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getRoutes().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Route }
+ *
+ *
+ */
+ public List<Route> getRoutes() {
+ if (routes == null) {
+ routes = new ArrayList<Route>();
+ }
+ return this.routes;
+ }
+
+ /**
+ * Gets the value of the unservedRequests property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the
unservedRequests property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getUnservedRequests().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link ServiceRequest }
+ *
+ *
+ */
+ public List<ServiceRequest> getUnservedRequests() {
+ if (unservedRequests == null) {
+ unservedRequests = new ArrayList<ServiceRequest>();
+ }
+ return this.unservedRequests;
+ }
+
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarService.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/DarService.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarService.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarService.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,53 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated;
+
+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;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.1.1-b03-
+ * Generated source version: 2.0
+ *
+ */
+@WebServiceClient(name = "DarService", targetNamespace =
"http://org.jboss.ws/samples/dar", wsdlLocation =
"http://localhost.localdomain:8080/dar?wsdl")
+public class DarService
+ extends Service
+{
+
+ private final static URL DARSERVICE_WSDL_LOCATION;
+
+ static {
+ URL url = null;
+ try {
+ url = new URL("http://localhost.localdomain:8080/dar?wsdl");
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ DARSERVICE_WSDL_LOCATION = url;
+ }
+
+ public DarService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public DarService() {
+ super(DARSERVICE_WSDL_LOCATION, new
QName("http://org.jboss.ws/samples/dar", "DarService"));
+ }
+
+ /**
+ *
+ * @return
+ * returns DarEndpoint
+ */
+ @WebEndpoint(name = "DarEndpointPort")
+ public DarEndpoint getDarEndpointPort() {
+ return (DarEndpoint)super.getPort(new
QName("http://org.jboss.ws/samples/dar", "DarEndpointPort"),
DarEndpoint.class);
+ }
+
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/ObjectFactory.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/ObjectFactory.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/ObjectFactory.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/ObjectFactory.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,80 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated;
+
+import javax.xml.bind.annotation.XmlRegistry;
+
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the org.jboss.test.ws.jaxws.samples.dar.generated package.
+ * <p>An ObjectFactory allows you to programatically
+ * construct new instances of the Java representation
+ * for XML content. The Java representation of XML
+ * content can consist of schema derived interfaces
+ * and classes representing the binding of schema
+ * type definitions, element declarations and model
+ * groups. Factory methods for each of these are
+ * provided in this class.
+ *
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema
derived classes for package: org.jboss.test.ws.jaxws.samples.dar.generated
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link DarRequest }
+ *
+ */
+ public DarRequest createDarRequest() {
+ return new DarRequest();
+ }
+
+ /**
+ * Create an instance of {@link Bus }
+ *
+ */
+ public Bus createBus() {
+ return new Bus();
+ }
+
+ /**
+ * Create an instance of {@link ServiceRequest }
+ *
+ */
+ public ServiceRequest createServiceRequest() {
+ return new ServiceRequest();
+ }
+
+ /**
+ * Create an instance of {@link Route }
+ *
+ */
+ public Route createRoute() {
+ return new Route();
+ }
+
+ /**
+ * Create an instance of {@link DarResponse }
+ *
+ */
+ public DarResponse createDarResponse() {
+ return new DarResponse();
+ }
+
+ /**
+ * Create an instance of {@link Stop }
+ *
+ */
+ public Stop createStop() {
+ return new Stop();
+ }
+
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/Route.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/Route.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/Route.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/Route.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,96 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for route complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="route">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="busId"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="stops"
type="{http://org.jboss.ws/samples/dar}stop" maxOccurs="unbounded"
minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "route", propOrder = {
+ "busId",
+ "stops"
+})
+public class Route {
+
+ protected String busId;
+ @XmlElement(nillable = true)
+ protected List<Stop> stops;
+
+ /**
+ * Gets the value of the busId property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getBusId() {
+ return busId;
+ }
+
+ /**
+ * Sets the value of the busId property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setBusId(String value) {
+ this.busId = value;
+ }
+
+ /**
+ * Gets the value of the stops property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the stops
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getStops().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Stop }
+ *
+ *
+ */
+ public List<Stop> getStops() {
+ if (stops == null) {
+ stops = new ArrayList<Stop>();
+ }
+ return this.stops;
+ }
+
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/ServiceRequest.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/ServiceRequest.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/ServiceRequest.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/ServiceRequest.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,133 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for serviceRequest complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="serviceRequest">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="from"
type="{http://org.jboss.ws/samples/dar}stop" minOccurs="0"/>
+ * <element name="id"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="people"
type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="to"
type="{http://org.jboss.ws/samples/dar}stop" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "serviceRequest", propOrder = {
+ "from",
+ "id",
+ "people",
+ "to"
+})
+public class ServiceRequest {
+
+ protected Stop from;
+ protected String id;
+ protected int people;
+ protected Stop to;
+
+ /**
+ * Gets the value of the from property.
+ *
+ * @return
+ * possible object is
+ * {@link Stop }
+ *
+ */
+ public Stop getFrom() {
+ return from;
+ }
+
+ /**
+ * Sets the value of the from property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Stop }
+ *
+ */
+ public void setFrom(Stop value) {
+ this.from = value;
+ }
+
+ /**
+ * Gets the value of the id property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setId(String value) {
+ this.id = value;
+ }
+
+ /**
+ * Gets the value of the people property.
+ *
+ */
+ public int getPeople() {
+ return people;
+ }
+
+ /**
+ * Sets the value of the people property.
+ *
+ */
+ public void setPeople(int value) {
+ this.people = value;
+ }
+
+ /**
+ * Gets the value of the to property.
+ *
+ * @return
+ * possible object is
+ * {@link Stop }
+ *
+ */
+ public Stop getTo() {
+ return to;
+ }
+
+ /**
+ * Sets the value of the to property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Stop }
+ *
+ */
+ public void setTo(Stop value) {
+ this.to = value;
+ }
+
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/Stop.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/Stop.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/Stop.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/Stop.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,90 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.datatype.XMLGregorianCalendar;
+
+
+/**
+ * <p>Java class for stop complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="stop">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="node"
type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ * <element name="time"
type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "stop", propOrder = {
+ "node",
+ "time"
+})
+public class Stop {
+
+ protected Integer node;
+ @XmlSchemaType(name = "dateTime")
+ protected XMLGregorianCalendar time;
+
+ /**
+ * Gets the value of the node property.
+ *
+ * @return
+ * possible object is
+ * {@link Integer }
+ *
+ */
+ public Integer getNode() {
+ return node;
+ }
+
+ /**
+ * Sets the value of the node property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Integer }
+ *
+ */
+ public void setNode(Integer value) {
+ this.node = value;
+ }
+
+ /**
+ * Gets the value of the time property.
+ *
+ * @return
+ * possible object is
+ * {@link XMLGregorianCalendar }
+ *
+ */
+ public XMLGregorianCalendar getTime() {
+ return time;
+ }
+
+ /**
+ * Sets the value of the time property.
+ *
+ * @param value
+ * allowed object is
+ * {@link XMLGregorianCalendar }
+ *
+ */
+ public void setTime(XMLGregorianCalendar value) {
+ this.time = value;
+ }
+
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/package-info.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/package-info.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/package-info.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/package-info.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,2 @@
+(a)javax.xml.bind.annotation.XmlSchema(namespace =
"http://org.jboss.ws/samples/dar")
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated;
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply)
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/DarReplyEndpoint.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarReplyEndpoint.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/DarReplyEndpoint.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.dar.generated.reply;
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply;
import javax.jws.Oneway;
import javax.jws.WebMethod;
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/DarReplyService.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarReplyService.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/DarReplyService.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.dar.generated.reply;
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply;
import java.net.MalformedURLException;
import java.net.URL;
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/DarResponse.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarResponse.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/DarResponse.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.dar.generated.reply;
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply;
import java.util.ArrayList;
import java.util.List;
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/ObjectFactory.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/ObjectFactory.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/ObjectFactory.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.dar.generated.reply;
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply;
import javax.xml.bind.annotation.XmlRegistry;
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/Route.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/Route.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/Route.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.dar.generated.reply;
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply;
import java.util.ArrayList;
import java.util.List;
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/ServiceRequest.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/ServiceRequest.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/ServiceRequest.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.dar.generated.reply;
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/Stop.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/Stop.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/Stop.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.dar.generated.reply;
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/package-info.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/package-info.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/package-info.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,2 +1,2 @@
@javax.xml.bind.annotation.XmlSchema(namespace =
"http://org.jboss.ws/samples/dar")
-package org.jboss.test.ws.jaxws.samples.dar.generated.reply;
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply;
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperMTOMEndpoint.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/AbstractNewspaperMTOMEndpoint.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperMTOMEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperMTOMEndpoint.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,59 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import java.util.Date;
+
+import javax.activation.DataHandler;
+
+import org.jboss.logging.Logger;
+
+/**
+ * The common implementation of the MTOM newspaper endpoint
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class AbstractNewspaperMTOMEndpoint
+{
+ private Logger log = Logger.getLogger(this.getClass());
+
+ public EditionMTOM getNewspaperEdition(String newspaperId)
+ {
+ log.info("Newspaper edition requested: " + newspaperId);
+ EditionMTOM edition = new EditionMTOM();
+ edition.setContent(new DataHandler("This is the newspaper document with id
" + newspaperId, "text/plain"));
+ edition.setDate(new Date());
+ edition.setId(newspaperId);
+ return edition;
+ }
+
+ public String[] getNewspaperEditionIdList(Date from, Date to)
+ {
+ String[] ids = new String[2];
+ ids[0] = "doc01";
+ ids[1] = "doc02";
+ return ids;
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperSWAEndpoint.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/AbstractNewspaperSWAEndpoint.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperSWAEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperSWAEndpoint.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,59 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import java.util.Date;
+
+import javax.activation.DataHandler;
+
+import org.jboss.logging.Logger;
+
+/**
+ * The common implementation of the SWA newspaper endpoint
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class AbstractNewspaperSWAEndpoint
+{
+ private Logger log = Logger.getLogger(this.getClass());
+
+ public EditionSWA getNewspaperEdition(String newspaperId)
+ {
+ log.info("Newspaper edition requested: " + newspaperId);
+ EditionSWA edition = new EditionSWA();
+ edition.setContent(new DataHandler("This is the newspaper document with id
" + newspaperId, "text/plain"));
+ edition.setDate(new Date());
+ edition.setId(newspaperId);
+ return edition;
+ }
+
+ public String[] getNewspaperEditionIdList(Date from, Date to)
+ {
+ String[] ids = new String[2];
+ ids[0] = "doc01";
+ ids[1] = "doc02";
+ return ids;
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/AbstractPressReleaseEndpoint.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/AbstractPressReleaseEndpoint.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/AbstractPressReleaseEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/AbstractPressReleaseEndpoint.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import org.jboss.logging.Logger;
+
+/**
+ * The common implementation of the press release endpoint
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public abstract class AbstractPressReleaseEndpoint
+{
+ private Logger log = Logger.getLogger(this.getClass());
+
+ public void submitPressRelease(PressRelease release)
+ {
+ log.info("Received a press release from agency: " +
release.getAgencyId());
+ log.info("- Title: " + release.getTitle());
+ log.info("- Text: " + release.getBody());
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/Agency.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/Agency.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/Agency.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/Agency.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,85 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import java.net.URL;
+import java.util.GregorianCalendar;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.test.ws.jaxws.samples.advanced.news.generated.agency.PressRelease;
+import
org.jboss.test.ws.jaxws.samples.advanced.news.generated.agency.PressReleaseEndpoint;
+import
org.jboss.test.ws.jaxws.samples.advanced.news.generated.agency.PressReleaseService;
+
+import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl;
+
+/**
+ * The press agency client
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class Agency
+{
+
+ protected PressReleaseEndpoint endpoint;
+
+ public Agency(URL url)
+ {
+ PressReleaseService service = new PressReleaseService(url, new
QName("http://org.jboss.ws/samples/news", "PressReleaseService"));
+ endpoint = service.getPressReleaseEndpointPort();
+ }
+
+ public void run(String title, String body)
+ {
+ PressRelease pressRelease = new PressRelease();
+ pressRelease.setAgencyId("agency01");
+ pressRelease.setTitle(title);
+ pressRelease.setBody(body);
+ pressRelease.setDate(new XMLGregorianCalendarImpl(new GregorianCalendar()));
+ endpoint.submitPressRelease(pressRelease);
+ }
+
+ public static void main(String[] args)
+ {
+ try
+ {
+ if (args.length == 3)
+ {
+ Agency agency = new Agency(new URL(args[0]));
+ agency.run(args[1], args[2]);
+ System.out.println("Press release sent.");
+ }
+ else
+ {
+ System.out.println("Agency client usage:");
+ System.out.println("wsrunclient.sh -classpath agency.jar
org.jboss.test.ws.jaxws.samples.news.Agency
http://host:port/news/pressRelease?wsdl title
body");
+ }
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/EditionMTOM.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/EditionMTOM.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/EditionMTOM.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/EditionMTOM.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,68 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import java.util.Date;
+
+import javax.activation.DataHandler;
+import javax.xml.bind.annotation.XmlMimeType;
+
+/**
+ * The MTOM version of the newspaper edition
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class EditionMTOM
+{
+ private Date date;
+ private DataHandler content;
+ private String id;
+
+ public Date getDate()
+ {
+ return date;
+ }
+ public void setDate(Date date)
+ {
+ this.date = date;
+ }
+ @XmlMimeType("text/plain")
+ public DataHandler getContent()
+ {
+ return content;
+ }
+ public void setContent(DataHandler content)
+ {
+ this.content = content;
+ }
+ public String getId()
+ {
+ return id;
+ }
+ public void setId(String id)
+ {
+ this.id = id;
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/EditionSWA.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/EditionSWA.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/EditionSWA.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/EditionSWA.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,72 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import java.util.Date;
+
+import javax.activation.DataHandler;
+import javax.xml.bind.annotation.XmlAttachmentRef;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * The SWA version of the newspaper edition
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@XmlRootElement
+public class EditionSWA
+{
+ private Date date;
+ private DataHandler content;
+ private String id;
+
+ public Date getDate()
+ {
+ return date;
+ }
+ public void setDate(Date date)
+ {
+ this.date = date;
+ }
+ @XmlElement
+ @XmlAttachmentRef
+ public DataHandler getContent()
+ {
+ return content;
+ }
+ public void setContent(DataHandler content)
+ {
+ this.content = content;
+ }
+ public String getId()
+ {
+ return id;
+ }
+ public void setId(String id)
+ {
+ this.id = id;
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperMTOM.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/NewspaperMTOM.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperMTOM.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperMTOM.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import java.util.Date;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * The MTOM newspaper endpoint interface
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@WebService(targetNamespace = "http://org.jboss.ws/samples/news")
+@SOAPBinding(style = SOAPBinding.Style.RPC,
+ use = SOAPBinding.Use.LITERAL)
+public interface NewspaperMTOM
+{
+ @WebMethod
+ public EditionMTOM getNewspaperEdition(@WebParam(name = "id") String
newspaperId);
+
+ @WebMethod
+ public String[] getNewspaperEditionIdList(@WebParam(name = "from") Date
from, @WebParam(name = "to") Date to);
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperMTOMEndpoint.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/NewspaperMTOMEndpoint.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperMTOMEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperMTOMEndpoint.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,53 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.xml.ws.BindingType;
+
+import org.jboss.wsf.spi.annotation.WebContext;
+
+/**
+ * The MTOM newspaper endpoint
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@Stateless
+@WebService(endpointInterface =
"org.jboss.test.ws.jaxws.samples.news.NewspaperMTOM",
+ name = "NewspaperMTOMEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/news",
+ serviceName = "NewspaperMTOMService")
+@SOAPBinding(style = SOAPBinding.Style.RPC,
+ use = SOAPBinding.Use.LITERAL)
+@WebContext(contextRoot="/news",
+ urlPattern="/newspaper/mtom")
+@BindingType(value = "http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true")
+//@HandlerChain(file = "jaxws-handlers-server.xml")
+public class NewspaperMTOMEndpoint extends AbstractNewspaperMTOMEndpoint implements
NewspaperMTOM
+{
+
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperSWA.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/NewspaperSWA.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperSWA.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperSWA.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import java.util.Date;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * The SWA newspaper endpoint interface
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@WebService(targetNamespace = "http://org.jboss.ws/samples/news")
+@SOAPBinding(style = SOAPBinding.Style.RPC,
+ use = SOAPBinding.Use.LITERAL)
+public interface NewspaperSWA
+{
+ @WebMethod
+ public EditionSWA getNewspaperEdition(@WebParam(name = "id") String
newspaperId);
+
+ @WebMethod
+ public String[] getNewspaperEditionIdList(@WebParam(name = "from") Date
from, @WebParam(name = "to") Date to);
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperSWAEndpoint.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/NewspaperSWAEndpoint.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperSWAEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperSWAEndpoint.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,50 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.jboss.wsf.spi.annotation.WebContext;
+
+/**
+ * The SWA newspaper endpoint
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@Stateless
+@WebService(endpointInterface =
"org.jboss.test.ws.jaxws.samples.news.NewspaperSWA",
+ name = "NewspaperSWAEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/news",
+ serviceName = "NewspaperSWAService")
+@SOAPBinding(style = SOAPBinding.Style.RPC,
+ use = SOAPBinding.Use.LITERAL)
+@WebContext(contextRoot="/news",
+ urlPattern="/newspaper/swa")
+public class NewspaperSWAEndpoint extends AbstractNewspaperSWAEndpoint implements
NewspaperSWA
+{
+
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/PressRelease.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/PressRelease.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/PressRelease.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/PressRelease.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+import java.util.Date;
+
+public class PressRelease
+{
+ private String title;
+ private String body;
+ private Date date;
+ private String agencyId;
+
+ public String getTitle()
+ {
+ return title;
+ }
+ public void setTitle(String title)
+ {
+ this.title = title;
+ }
+ public String getBody()
+ {
+ return body;
+ }
+ public void setBody(String body)
+ {
+ this.body = body;
+ }
+ public Date getDate()
+ {
+ return date;
+ }
+ public void setDate(Date date)
+ {
+ this.date = date;
+ }
+ public String getAgencyId()
+ {
+ return agencyId;
+ }
+ public void setAgencyId(String agencyId)
+ {
+ this.agencyId = agencyId;
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/PressReleaseEndpoint.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/PressReleaseEndpoint.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/PressReleaseEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/PressReleaseEndpoint.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.jboss.wsf.spi.annotation.WebContext;
+
+/**
+ * The press release endpoint
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@Stateless
+@WebService(name = "PressReleaseEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/news",
+ serviceName = "PressReleaseService")
+@SOAPBinding(style = SOAPBinding.Style.DOCUMENT,
+ use = SOAPBinding.Use.LITERAL)
+@WebContext(contextRoot="/news",
+ urlPattern="/pressRelease")
+public class PressReleaseEndpoint extends AbstractPressReleaseEndpoint
+{
+
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/Printer.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/Printer.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/Printer.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/Printer.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,121 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import java.io.IOException;
+import java.net.URL;
+import java.util.GregorianCalendar;
+
+import javax.activation.DataHandler;
+import javax.xml.datatype.XMLGregorianCalendar;
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.soap.SOAPBinding;
+
+import org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.mtom.EditionMTOM;
+import
org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.mtom.NewspaperMTOMEndpoint;
+import
org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.mtom.NewspaperMTOMService;
+import org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.swa.EditionSWA;
+import
org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.swa.NewspaperSWAEndpoint;
+import
org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.swa.NewspaperSWAService;
+
+import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl;
+
+/**
+ * The printer client
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class Printer
+{
+ protected NewspaperMTOMEndpoint mtomEndpoint;
+ protected NewspaperSWAEndpoint swaEndpoint;
+ protected boolean mtom;
+
+ public Printer(URL url, boolean mtom)
+ {
+ this.mtom = mtom;
+ if (mtom)
+ {
+ NewspaperMTOMService mtomService = new NewspaperMTOMService(url, new
QName("http://org.jboss.ws/samples/news", "NewspaperMTOMService"));
+ mtomEndpoint = mtomService.getNewspaperMTOMEndpointPort();
+ }
+ else
+ {
+ NewspaperSWAService swaService = new NewspaperSWAService(url, new
QName("http://org.jboss.ws/samples/news", "NewspaperSWAService"));
+ swaEndpoint = swaService.getNewspaperSWAEndpointPort();
+ }
+ }
+
+ public void run() throws IOException
+ {
+ XMLGregorianCalendar from = new XMLGregorianCalendarImpl(new
GregorianCalendar(2008,1,10));
+ XMLGregorianCalendar to = new XMLGregorianCalendarImpl(new
GregorianCalendar(2008,1,14));
+ if (mtom)
+ {
+
((SOAPBinding)(((BindingProvider)mtomEndpoint).getBinding())).setMTOMEnabled(true);
+ for (String id : mtomEndpoint.getNewspaperEditionIdList(from, to).getItem())
+ {
+ System.out.println("Downloading newspaper document: " + id);
+ EditionMTOM edition = mtomEndpoint.getNewspaperEdition(id);
+ System.out.println("Content: " + edition.getContent());
+ }
+ }
+ else
+ {
+ for (String id : swaEndpoint.getNewspaperEditionIdList(from, to).getItem())
+ {
+ System.out.println("Downloading newspaper document: " + id);
+ EditionSWA edition = swaEndpoint.getNewspaperEdition(id);
+ DataHandler dh = edition.getContent();
+ System.out.println("Content type: " + dh.getContentType());
+ System.out.println("Content: " + dh.getContent());
+ }
+ }
+ }
+
+ public static void main(String[] args)
+ {
+ try
+ {
+ if (args.length == 1)
+ {
+ Printer printer = new Printer(new URL(args[0]),
args[0].endsWith("mtom?wsdl"));
+ printer.run();
+ }
+ else
+ {
+ System.out.println("Printer client usage:");
+ System.out.println("wsrunclient.sh -classpath agency.jar
org.jboss.test.ws.jaxws.samples.news.Printer
http://host:port/news/newspaper/mtom?wsdl");
+ System.out.println("or");
+ System.out.println("wsrunclient.sh -classpath agency.jar
org.jboss.test.ws.jaxws.samples.news.Printer
http://host:port/news/newspaper/swa?wsdl");
+ }
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecureAgency.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecureAgency.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecureAgency.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecureAgency.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,66 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import java.net.URL;
+
+import org.jboss.ws.core.StubExt;
+
+/**
+ * The press agency client using WS-Security
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class SecureAgency extends Agency
+{
+ public SecureAgency(URL url)
+ {
+ super(url);
+ ((StubExt)endpoint).setConfigName("Standard WSSecurity Client");
+ }
+
+ public static void main(String[] args)
+ {
+ try
+ {
+ if (args.length == 3)
+ {
+ Agency agency = new SecureAgency(new URL(args[0]));
+ agency.run(args[1], args[2]);
+ System.out.println("Press release sent.");
+ }
+ else
+ {
+ System.out.println("SecureAgency client usage:");
+ System.out.println("./wsrunclient.sh -classpath agency.jar
org.jboss.test.ws.jaxws.samples.news.SecureAgency " +
+ "http://localhost.localdomain:8080/news/pressRelease?wsdl title
body");
+ }
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecureNewspaperMTOMEndpoint.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecureNewspaperMTOMEndpoint.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecureNewspaperMTOMEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecureNewspaperMTOMEndpoint.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,50 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.xml.ws.BindingType;
+
+import org.jboss.annotation.security.SecurityDomain;
+import org.jboss.wsf.spi.annotation.WebContext;
+
+
+@Stateless
+@WebService(endpointInterface =
"org.jboss.test.ws.jaxws.samples.news.NewspaperMTOM",
+ name = "NewspaperMTOMEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/news",
+ serviceName = "NewspaperMTOMService")
+@SOAPBinding(style = SOAPBinding.Style.RPC,
+ use = SOAPBinding.Use.LITERAL)
+@SecurityDomain("JBossWS")
+@WebContext(contextRoot="/news",
+ urlPattern="/newspaper/mtom",
+ authMethod="BASIC",
+ transportGuarantee="CONFIDENTIAL",
+ secureWSDLAccess=false)
+@BindingType(value = "http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true")
+public class SecureNewspaperMTOMEndpoint extends AbstractNewspaperMTOMEndpoint implements
NewspaperMTOM
+{
+
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecureNewspaperSWAEndpoint.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecureNewspaperSWAEndpoint.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecureNewspaperSWAEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecureNewspaperSWAEndpoint.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,48 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.jboss.annotation.security.SecurityDomain;
+import org.jboss.wsf.spi.annotation.WebContext;
+
+
+@Stateless
+@WebService(endpointInterface =
"org.jboss.test.ws.jaxws.samples.news.NewspaperSWA",
+ name = "NewspaperSWAEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/news",
+ serviceName = "NewspaperSWAService")
+@SOAPBinding(style = SOAPBinding.Style.RPC,
+ use = SOAPBinding.Use.LITERAL)
+@SecurityDomain("JBossWS")
+@WebContext(contextRoot="/news",
+ urlPattern="/newspaper/swa",
+ authMethod="BASIC",
+ transportGuarantee="CONFIDENTIAL",
+ secureWSDLAccess=false)
+public class SecureNewspaperSWAEndpoint extends AbstractNewspaperSWAEndpoint implements
NewspaperSWA
+{
+
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecurePressReleaseEndpoint.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecurePressReleaseEndpoint.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecurePressReleaseEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecurePressReleaseEndpoint.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.jboss.ws.annotation.EndpointConfig;
+import org.jboss.wsf.spi.annotation.WebContext;
+
+/**
+ * The press release endpoint enforcing authentication plus message encryption and
signature
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@Stateless
+@WebService(name = "PressReleaseEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/news",
+ serviceName = "PressReleaseService")
+@SOAPBinding(style = SOAPBinding.Style.DOCUMENT,
+ use = SOAPBinding.Use.LITERAL)
+@WebContext(contextRoot="/news",
+ urlPattern="/pressRelease")
+@EndpointConfig(configName = "Standard WSSecurity Endpoint")
+public class SecurePressReleaseEndpoint extends AbstractPressReleaseEndpoint
+{
+
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecurePrinter.java
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecurePrinter.java)
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecurePrinter.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecurePrinter.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -0,0 +1,71 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import java.net.URL;
+
+import javax.xml.ws.BindingProvider;
+
+/**
+ * The printer client using https transport
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class SecurePrinter extends Printer
+{
+ public SecurePrinter(URL url, boolean mtom)
+ {
+ super(url,mtom);
+ BindingProvider bp = mtom ? (BindingProvider)mtomEndpoint :
(BindingProvider)swaEndpoint;
+ bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "kermit");
+ bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY,
"thefrog");
+ System.setProperty("org.jboss.security.ignoreHttpsHost",
"true");
+ }
+
+ public static void main(String[] args)
+ {
+ try
+ {
+ if (args.length == 1)
+ {
+ SecurePrinter printer = new SecurePrinter(new URL(args[0]),
args[0].endsWith("mtom?wsdl"));
+ printer.run();
+ }
+ else
+ {
+ System.out.println("SecurePrinter client usage:");
+ System.out.println("wsrunclient.sh -classpath agency.jar
-Djavax.net.ssl.trustStore=truststorePath -Djavax.net.ssl.trustStorePassword=truststorePwd
" +
+ "org.jboss.test.ws.jaxws.samples.news.SecurePrinter
http://host:port/news/newspaper/mtom?wsdl");
+ System.out.println("or");
+ System.out.println("wsrunclient.sh -classpath agency.jar
-Djavax.net.ssl.trustStore=truststorePath -Djavax.net.ssl.trustStorePassword=truststorePwd
" +
+ "org.jboss.test.ws.jaxws.samples.news.SecurePrinter
http://host:port/news/newspaper/swa?wsdl");
+ }
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+}
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency)
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/ObjectFactory.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/ObjectFactory.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/ObjectFactory.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.agency;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.agency;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/PressRelease.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressRelease.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/PressRelease.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.agency;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.agency;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/PressReleaseEndpoint.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressReleaseEndpoint.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/PressReleaseEndpoint.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.agency;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.agency;
import javax.jws.WebMethod;
import javax.jws.WebParam;
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/PressReleaseService.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressReleaseService.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/PressReleaseService.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.agency;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.agency;
import java.net.MalformedURLException;
import java.net.URL;
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/SubmitPressRelease.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/SubmitPressRelease.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/SubmitPressRelease.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.agency;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.agency;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/SubmitPressReleaseResponse.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/SubmitPressReleaseResponse.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/SubmitPressReleaseResponse.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.agency;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.agency;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/package-info.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/package-info.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/package-info.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,2 +1,2 @@
@javax.xml.bind.annotation.XmlSchema(namespace =
"http://org.jboss.ws/samples/news")
-package org.jboss.test.ws.jaxws.samples.news.generated.agency;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.agency;
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom)
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/EditionMTOM.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/EditionMTOM.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/EditionMTOM.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.mtom;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.mtom;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/NewspaperMTOMEndpoint.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/NewspaperMTOMEndpoint.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/NewspaperMTOMEndpoint.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.mtom;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.mtom;
import javax.jws.WebMethod;
import javax.jws.WebParam;
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/NewspaperMTOMService.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/NewspaperMTOMService.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/NewspaperMTOMService.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.mtom;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.mtom;
import java.net.MalformedURLException;
import java.net.URL;
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/ObjectFactory.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/ObjectFactory.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/ObjectFactory.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.mtom;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.mtom;
import javax.xml.bind.annotation.XmlRegistry;
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/StringArray.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/StringArray.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/StringArray.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.mtom;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.mtom;
import java.util.ArrayList;
import java.util.List;
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/package-info.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/package-info.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/package-info.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,2 +1,2 @@
@javax.xml.bind.annotation.XmlSchema(namespace =
"http://jaxb.dev.java.net/array")
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.mtom;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.mtom;
Copied:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa
(from rev 5937,
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa)
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/EditionSWA.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/EditionSWA.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/EditionSWA.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.swa;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.swa;
import javax.activation.DataHandler;
import javax.xml.bind.annotation.XmlAccessType;
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/NewspaperSWAEndpoint.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/NewspaperSWAEndpoint.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/NewspaperSWAEndpoint.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.swa;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.swa;
import javax.jws.WebMethod;
import javax.jws.WebParam;
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/NewspaperSWAService.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/NewspaperSWAService.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/NewspaperSWAService.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.swa;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.swa;
import java.net.MalformedURLException;
import java.net.URL;
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/ObjectFactory.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/ObjectFactory.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/ObjectFactory.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.swa;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.swa;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/StringArray.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/StringArray.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/StringArray.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.swa;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.swa;
import java.util.ArrayList;
import java.util.List;
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/package-info.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/package-info.java 2008-03-12
10:23:49 UTC (rev 5937)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/package-info.java 2008-03-12
11:09:56 UTC (rev 5939)
@@ -1,2 +1,2 @@
@javax.xml.bind.annotation.XmlSchema(namespace =
"http://jaxb.dev.java.net/array")
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.swa;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.swa;
Copied: stack/native/trunk/src/test/resources/jaxws/samples/advanced/news (from rev 5937,
stack/native/trunk/src/test/resources/jaxws/samples/news)