Author: alessio.soldano(a)jboss.com
Date: 2008-01-31 11:57:35 -0500 (Thu, 31 Jan 2008)
New Revision: 5555
Added:
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/dar/AddressingClient.java
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/dar/Bus.java
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/dar/ClientHelper.java
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/dar/DarEndpoint.java
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/dar/DarProcessor.java
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/dar/DarRequest.java
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/dar/ReplyConverter.java
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/dar/Route.java
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/dar/Stop.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/
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/dar/generated/DarEndpoint.java
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/dar/generated/DarResponse.java
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/dar/generated/ObjectFactory.java
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/dar/generated/ServiceRequest.java
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/dar/generated/package-info.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarReplyEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarReplyService.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarResponse.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/ObjectFactory.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/Route.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/ServiceRequest.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/Stop.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/package-info.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/
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/news/AbstractNewspaperSWAEndpoint.java
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/news/Agency.java
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/news/EditionSWA.java
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/news/NewspaperMTOMEndpoint.java
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/news/NewspaperSWAEndpoint.java
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/news/PressReleaseEndpoint.java
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/news/SecureAgency.java
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/news/SecureNewspaperSWAEndpoint.java
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/news/SecurePrinter.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/ObjectFactory.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressRelease.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressReleaseEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressReleaseService.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/SubmitPressRelease.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/SubmitPressReleaseResponse.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/package-info.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/EditionMTOM.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/NewspaperMTOMEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/NewspaperMTOMService.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/ObjectFactory.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/StringArray.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/package-info.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/EditionSWA.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/NewspaperSWAEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/NewspaperSWAService.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/ObjectFactory.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/StringArray.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/package-info.java
stack/native/trunk/src/test/resources/jaxws/samples/dar/
stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF/
stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF/jboss-web.xml
stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF/web.xml
stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF/wsdl/
stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF/wsdl/reply.wsdl
stack/native/trunk/src/test/resources/jaxws/samples/news/
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/Alice.cer
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/Bob.cer
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/alice-sign_enc.jks
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/bob-sign_enc.jks
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/jboss-wsse-client.xml
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/jboss-wsse-server.xml
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/readme.txt
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/wsse10.truststore
Modified:
stack/native/trunk/ant-import-tests/build-samples-jaxws.xml
Log:
[JBWS-1895] Adding first implementation of advanced samples ('dar' sample ->
asynchronous, 'news' sample -> attachments & security)
Modified: stack/native/trunk/ant-import-tests/build-samples-jaxws.xml
===================================================================
--- stack/native/trunk/ant-import-tests/build-samples-jaxws.xml 2008-01-31 13:04:56 UTC
(rev 5554)
+++ stack/native/trunk/ant-import-tests/build-samples-jaxws.xml 2008-01-31 16:57:35 UTC
(rev 5555)
@@ -17,6 +17,61 @@
<target name="build-samples-jaxws" description="Build the jaxws
samples deployments">
<mkdir dir="${tests.output.dir}/libs"/>
+
+ <!-- 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"/>
+ </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"/>
+ </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"/>
+ </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"/>
+ </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">
+ <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"/>
+ </classes>
+ <webinf
dir="${tests.output.dir}/resources/jaxws/samples/dar/WEB-INF">
+ <include name="jboss-web.xml"/>
+ <include name="wsdl/reply.wsdl"/>
+ </webinf>
+ </war>
<!-- jaxws-samples-jmstransport -->
<jar
jarfile="${tests.output.dir}/libs/jaxws-samples-jmstransport.jar">
@@ -33,6 +88,87 @@
<include name="jboss-service.xml"/>
</metainf>
</jar>
+
+ <!-- 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"/>
+ </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"/>
+ </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"/>
+ </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"/>
+ </fileset>
+ <metainf
dir="${tests.output.dir}/resources/jaxws/samples/news/META-INF">
+ <include name="jboss-wsse-server.xml"/>
+ <include name="bob-sign_enc.jks"/>
+ <include name="wsse10.truststore"/>
+ </metainf>
+ </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"/>
+ </fileset>
+ <metainf
dir="${tests.output.dir}/resources/jaxws/samples/news/META-INF">
+ <include name="jboss-wsse-client.xml"/>
+ <include name="alice-sign_enc.jks"/>
+ <include name="wsse10.truststore"/>
+ </metainf>
+ </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"/>
+ </fileset>
+ </jar>
+
+ <!--
+ <jar
jarfile="${tests.output.dir}/libs/jaxws-samples-jmstransport.sar">
+ <fileset dir="${tests.output.dir}/libs">
+ <include name="jaxws-samples-jmstransport.jar"/>
+ </fileset>
+ <metainf
dir="${tests.output.dir}/resources/jaxws/samples/jmstransport/META-INF">
+ <include name="jboss-service.xml"/>
+ </metainf>
+ </jar>
+ -->
<!-- jaxws-samples-webserviceref -->
<war warfile="${tests.output.dir}/libs/jaxws-samples-webserviceref.war"
webxml="${tests.output.dir}/resources/jaxws/samples/webserviceref/WEB-INF/web.xml">
Added:
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/dar/AddressingClient.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/AddressingClient.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -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.dar;
+
+//$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.dar.generated.DarEndpoint;
+import org.jboss.test.ws.jaxws.samples.dar.generated.DarRequest;
+import org.jboss.test.ws.jaxws.samples.dar.generated.DarResponse;
+import org.jboss.test.ws.jaxws.samples.dar.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();
+ }
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/AddressingClient.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/dar/AsyncProcessRequest.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/AsyncProcessRequest.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -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.dar;
+
+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;
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/AsyncProcessRequest.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: 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/dar/Bus.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/Bus.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -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.dar;
+
+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;
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/Bus.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: 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/dar/Client.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/Client.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -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.dar;
+
+//$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.dar.generated.DarEndpoint;
+import org.jboss.test.ws.jaxws.samples.dar.generated.DarRequest;
+import org.jboss.test.ws.jaxws.samples.dar.generated.DarResponse;
+import org.jboss.test.ws.jaxws.samples.dar.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();
+ }
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/Client.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/dar/ClientHelper.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ClientHelper.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,88 @@
+/*
+ * 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.dar;
+
+import java.util.GregorianCalendar;
+import java.util.List;
+
+import javax.xml.ws.BindingProvider;
+
+import org.jboss.test.ws.jaxws.samples.dar.generated.Bus;
+import org.jboss.test.ws.jaxws.samples.dar.generated.DarRequest;
+import org.jboss.test.ws.jaxws.samples.dar.generated.DarResponse;
+import org.jboss.test.ws.jaxws.samples.dar.generated.Route;
+import org.jboss.test.ws.jaxws.samples.dar.generated.ServiceRequest;
+import org.jboss.test.ws.jaxws.samples.dar.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)
+ {
+ List<Route> routes = response.getRoutes();
+ for (Route route : routes)
+ {
+ System.out.print(route.getBusId() + ": ");
+ for (Stop stop : route.getStops())
+ {
+ System.out.print(stop.getNode() + " ");
+ }
+ System.out.print("\n");
+ }
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ClientHelper.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/dar/DarAddressingEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarAddressingEndpoint.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -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.dar;
+
+//$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", output =
"http://org.jboss.test.ws.jaxws.samples.dar/action/onewayProcessOut")
+ @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) {}
+ }
+
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarAddressingEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/dar/DarEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarEndpoint.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -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.dar;
+
+//$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);
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/dar/DarMessageBean.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarMessageBean.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -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.dar;
+
+//$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.dar.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.dar.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();
+ }
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarMessageBean.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/dar/DarProcessor.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarProcessor.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -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.dar;
+
+//$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;
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarProcessor.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/dar/DarReplyEndpointImpl.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarReplyEndpointImpl.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -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.dar;
+
+//$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.dar.generated.reply.DarReplyEndpoint;
+import org.jboss.test.ws.jaxws.samples.dar.generated.reply.DarResponse;
+import org.jboss.test.ws.jaxws.samples.dar.generated.reply.Route;
+import org.jboss.test.ws.jaxws.samples.dar.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());
+ }
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarReplyEndpointImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/dar/DarRequest.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarRequest.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -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.dar;
+
+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;
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarRequest.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/dar/DarResponse.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarResponse.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -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.dar;
+
+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;
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarResponse.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/dar/ReplyConverter.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ReplyConverter.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -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.dar;
+
+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.dar.generated.reply.DarResponse
convertResponse(DarResponse response)
+ {
+ if (response == null)
+ return null;
+ org.jboss.test.ws.jaxws.samples.dar.generated.reply.DarResponse r = new
org.jboss.test.ws.jaxws.samples.dar.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.dar.generated.reply.ServiceRequest
convertServiceRequest(ServiceRequest request)
+ {
+ if (request == null)
+ return null;
+ org.jboss.test.ws.jaxws.samples.dar.generated.reply.ServiceRequest s = new
org.jboss.test.ws.jaxws.samples.dar.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.dar.generated.reply.Route
convertRoute(Route route)
+ {
+ if (route == null)
+ return null;
+ org.jboss.test.ws.jaxws.samples.dar.generated.reply.Route r = new
org.jboss.test.ws.jaxws.samples.dar.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.dar.generated.reply.Stop
convertStop(Stop stop)
+ {
+ if (stop == null)
+ return null;
+ org.jboss.test.ws.jaxws.samples.dar.generated.reply.Stop s = new
org.jboss.test.ws.jaxws.samples.dar.generated.reply.Stop();
+ s.setNode(stop.getNode());
+ GregorianCalendar cal = new GregorianCalendar();
+ cal.setTime(stop.getTime());
+ s.setTime(new XMLGregorianCalendarImpl(cal));
+ return s;
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ReplyConverter.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/dar/ReplyToServlet.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ReplyToServlet.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -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.dar;
+
+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);
+ }
+}
+
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ReplyToServlet.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: 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/dar/Route.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/Route.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -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.dar;
+
+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;
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/Route.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/dar/ServiceRequest.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ServiceRequest.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -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.dar;
+
+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;
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ServiceRequest.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: 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/dar/Stop.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/Stop.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -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.dar;
+
+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;
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/Stop.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/dar/generated/Bus.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/Bus.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,79 @@
+
+package org.jboss.test.ws.jaxws.samples.dar.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;
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/Bus.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/dar/generated/DarEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/DarEndpoint.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,33 @@
+package org.jboss.test.ws.jaxws.samples.dar.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);
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/DarEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/dar/generated/DarRequest.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/DarRequest.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,129 @@
+
+package org.jboss.test.ws.jaxws.samples.dar.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;
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/DarRequest.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/dar/generated/DarResponse.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/DarResponse.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,102 @@
+
+package org.jboss.test.ws.jaxws.samples.dar.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;
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/DarResponse.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/dar/generated/DarService.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/DarService.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,53 @@
+
+package org.jboss.test.ws.jaxws.samples.dar.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);
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/DarService.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/dar/generated/ObjectFactory.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/ObjectFactory.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,80 @@
+
+package org.jboss.test.ws.jaxws.samples.dar.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();
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/ObjectFactory.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/dar/generated/Route.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/Route.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,96 @@
+
+package org.jboss.test.ws.jaxws.samples.dar.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;
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/Route.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/dar/generated/ServiceRequest.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/ServiceRequest.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,133 @@
+
+package org.jboss.test.ws.jaxws.samples.dar.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;
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/ServiceRequest.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/dar/generated/Stop.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/Stop.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,90 @@
+
+package org.jboss.test.ws.jaxws.samples.dar.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;
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/Stop.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/dar/generated/package-info.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/package-info.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,2 @@
+(a)javax.xml.bind.annotation.XmlSchema(namespace =
"http://org.jboss.ws/samples/dar")
+package org.jboss.test.ws.jaxws.samples.dar.generated;
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/package-info.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarReplyEndpoint.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarReplyEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarReplyEndpoint.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,32 @@
+
+package org.jboss.test.ws.jaxws.samples.dar.generated.reply;
+
+import javax.jws.Oneway;
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.1.1-b03-
+ * Generated source version: 2.0
+ *
+ */
+@WebService(name = "DarReplyEndpoint", targetNamespace =
"http://org.jboss.ws/samples/dar")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface DarReplyEndpoint {
+
+
+ /**
+ *
+ * @param arg0
+ */
+ @WebMethod(action =
"http://org.jboss.test.ws.jaxws.samples.dar/action/receiveIn")
+ @Oneway
+ public void receive(
+ @WebParam(name = "arg0", partName = "arg0")
+ DarResponse arg0);
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarReplyEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarReplyService.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarReplyService.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarReplyService.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,53 @@
+
+package org.jboss.test.ws.jaxws.samples.dar.generated.reply;
+
+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 = "DarReplyService", targetNamespace =
"http://org.jboss.ws/samples/dar", wsdlLocation =
"file:/home/alessio/Desktop/Documenti%20asynch/reply.wsdl")
+public class DarReplyService
+ extends Service
+{
+
+ private final static URL DARREPLYSERVICE_WSDL_LOCATION;
+
+ static {
+ URL url = null;
+ try {
+ url = new
URL("file:/home/alessio/Desktop/Documenti%20asynch/reply.wsdl");
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ DARREPLYSERVICE_WSDL_LOCATION = url;
+ }
+
+ public DarReplyService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public DarReplyService() {
+ super(DARREPLYSERVICE_WSDL_LOCATION, new
QName("http://org.jboss.ws/samples/dar", "DarReplyService"));
+ }
+
+ /**
+ *
+ * @return
+ * returns DarReplyEndpoint
+ */
+ @WebEndpoint(name = "DarReplyEndpointPort")
+ public DarReplyEndpoint getDarReplyEndpointPort() {
+ return (DarReplyEndpoint)super.getPort(new
QName("http://org.jboss.ws/samples/dar", "DarReplyEndpointPort"),
DarReplyEndpoint.class);
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarReplyService.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarResponse.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarResponse.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarResponse.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,102 @@
+
+package org.jboss.test.ws.jaxws.samples.dar.generated.reply;
+
+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;
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarResponse.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/ObjectFactory.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/ObjectFactory.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/ObjectFactory.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,64 @@
+
+package org.jboss.test.ws.jaxws.samples.dar.generated.reply;
+
+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.reply 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.reply
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link Stop }
+ *
+ */
+ public Stop createStop() {
+ return new Stop();
+ }
+
+ /**
+ * 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();
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/ObjectFactory.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/Route.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/Route.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/Route.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,96 @@
+
+package org.jboss.test.ws.jaxws.samples.dar.generated.reply;
+
+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;
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/Route.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/ServiceRequest.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/ServiceRequest.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/ServiceRequest.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,133 @@
+
+package org.jboss.test.ws.jaxws.samples.dar.generated.reply;
+
+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;
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/ServiceRequest.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/Stop.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/Stop.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/Stop.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,90 @@
+
+package org.jboss.test.ws.jaxws.samples.dar.generated.reply;
+
+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;
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/Stop.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/package-info.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/package-info.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/package-info.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,2 @@
+(a)javax.xml.bind.annotation.XmlSchema(namespace =
"http://org.jboss.ws/samples/dar")
+package org.jboss.test.ws.jaxws.samples.dar.generated.reply;
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/package-info.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/news/AbstractNewspaperMTOMEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/AbstractNewspaperMTOMEndpoint.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -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.news;
+
+import java.util.Date;
+
+import javax.activation.DataHandler;
+
+import org.jboss.logging.Logger;
+
+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;
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/AbstractNewspaperMTOMEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/news/AbstractNewspaperSWAEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/AbstractNewspaperSWAEndpoint.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,52 @@
+/*
+ * 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.news;
+
+import java.util.Date;
+
+import javax.activation.DataHandler;
+
+import org.jboss.logging.Logger;
+
+
+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;
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/AbstractNewspaperSWAEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/news/AbstractPressReleaseEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/AbstractPressReleaseEndpoint.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,36 @@
+/*
+ * 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.news;
+
+import org.jboss.logging.Logger;
+
+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());
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/AbstractPressReleaseEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: 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/news/Agency.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/Agency.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,77 @@
+/*
+ * 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.news;
+
+import java.net.URL;
+import java.util.GregorianCalendar;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.test.ws.jaxws.samples.news.generated.agency.PressRelease;
+import org.jboss.test.ws.jaxws.samples.news.generated.agency.PressReleaseEndpoint;
+import org.jboss.test.ws.jaxws.samples.news.generated.agency.PressReleaseService;
+
+import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl;
+
+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();
+ }
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/Agency.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/news/EditionMTOM.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/EditionMTOM.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -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.news;
+
+import java.util.Date;
+
+import javax.activation.DataHandler;
+import javax.xml.bind.annotation.XmlMimeType;
+
+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;
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/EditionMTOM.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/news/EditionSWA.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/EditionSWA.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,64 @@
+/*
+ * 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.news;
+
+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;
+
+@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;
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/EditionSWA.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/news/NewspaperMTOM.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/NewspaperMTOM.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,41 @@
+/*
+ * 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.news;
+
+import java.util.Date;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+@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);
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/NewspaperMTOM.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/news/NewspaperMTOMEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/NewspaperMTOMEndpoint.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,46 @@
+/*
+ * 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.news;
+
+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;
+
+
+@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
+{
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/NewspaperMTOMEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/news/NewspaperSWA.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/NewspaperSWA.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,41 @@
+/*
+ * 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.news;
+
+import java.util.Date;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+@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);
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/NewspaperSWA.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/news/NewspaperSWAEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/NewspaperSWAEndpoint.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,45 @@
+/*
+ * 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.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")
+public class NewspaperSWAEndpoint extends AbstractNewspaperSWAEndpoint implements
NewspaperSWA
+{
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/NewspaperSWAEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/news/PressRelease.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/PressRelease.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -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.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;
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/PressRelease.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/news/PressReleaseEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/PressReleaseEndpoint.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,41 @@
+/*
+ * 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.news;
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.jboss.wsf.spi.annotation.WebContext;
+
+@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
+{
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/PressReleaseEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: 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/news/Printer.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/Printer.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,113 @@
+/*
+ * 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.news;
+
+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.news.generated.printer.mtom.EditionMTOM;
+import org.jboss.test.ws.jaxws.samples.news.generated.printer.mtom.NewspaperMTOMService;
+import
org.jboss.test.ws.jaxws.samples.news.generated.printer.mtom.NewspaperMTOMEndpoint;
+import org.jboss.test.ws.jaxws.samples.news.generated.printer.swa.EditionSWA;
+import org.jboss.test.ws.jaxws.samples.news.generated.printer.swa.NewspaperSWAService;
+import org.jboss.test.ws.jaxws.samples.news.generated.printer.swa.NewspaperSWAEndpoint;
+
+import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl;
+
+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: " + 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();
+ }
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/Printer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/news/SecureAgency.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecureAgency.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -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.news;
+
+import java.net.URL;
+
+import org.jboss.ws.core.StubExt;
+
+public class SecureAgency extends Agency
+{
+ public SecureAgency(URL url)
+ {
+ super(url);
+ ((StubExt)endpoint).setConfigName("Standard WSSecurity Client");
+ if (System.getProperty("org.jboss.ws.wsse.keyStore") == null)
+ {
+ System.setProperty("org.jboss.ws.wsse.keyStore",
"alice-sign_enc.jks");
+ System.setProperty("org.jboss.ws.wsse.keyStorePassword",
"password");
+ }
+ if (System.getProperty("org.jboss.ws.wsse.trustStore") == null)
+ {
+ System.setProperty("org.jboss.ws.wsse.trustStore",
"wsse10.truststore");
+ System.setProperty("org.jboss.ws.wsse.trustStorePassword",
"password");
+ }
+ System.out.println("keystore: " +
System.getProperty("org.jboss.ws.wsse.keyStore"));
+ System.out.println("truststore: " +
System.getProperty("org.jboss.ws.wsse.trustStore"));
+ System.out.println("keystore password: " +
System.getProperty("org.jboss.ws.wsse.keyStorePassword"));
+ System.out.println("truststore password: " +
System.getProperty("org.jboss.ws.wsse.trustStorePassword"));
+ }
+
+ 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
-Dorg.jboss.ws.wsse.trustStore=wsse10.truststore
-Dorg.jboss.ws.wsse.keyStore=alice-sign_enc.jks " +
+ "-Dorg.jboss.ws.wsse.keyStorePassword=password
-Dorg.jboss.ws.wsse.trustStorePassword=password
org.jboss.test.ws.jaxws.samples.news.SecureAgency " +
+ "http://localhost.localdomain:8080/news/pressRelease?wsdl title
body");
+ }
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecureAgency.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/news/SecureNewspaperMTOMEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecureNewspaperMTOMEndpoint.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -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.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
+{
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecureNewspaperMTOMEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/news/SecureNewspaperSWAEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecureNewspaperSWAEndpoint.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -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.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
+{
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecureNewspaperSWAEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/news/SecurePressReleaseEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecurePressReleaseEndpoint.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,45 @@
+/*
+ * 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.news;
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.jboss.annotation.security.SecurityDomain;
+import org.jboss.ws.annotation.EndpointConfig;
+import org.jboss.wsf.spi.annotation.WebContext;
+
+@Stateless
+@WebService(name = "PressReleaseEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/news",
+ serviceName = "PressReleaseService")
+@SOAPBinding(style = SOAPBinding.Style.DOCUMENT,
+ use = SOAPBinding.Use.LITERAL)
+@SecurityDomain("JBossWS")
+@WebContext(contextRoot="/news",
+ urlPattern="/pressRelease")
+@EndpointConfig(configName = "Standard WSSecurity Endpoint")
+public class SecurePressReleaseEndpoint extends AbstractPressReleaseEndpoint
+{
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecurePressReleaseEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
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/news/SecurePrinter.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecurePrinter.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,64 @@
+/*
+ * 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.news;
+
+import java.net.URL;
+
+import javax.xml.ws.BindingProvider;
+
+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("javax.net.ssl.trustStore",
"/home/alessio/dati/jboss-4.2.2.GA/server/default/truststore_ale");
+ System.setProperty("javax.net.ssl.trustStorePassword",
"changeit");
+ System.setProperty("javax.net.ssl.trustStoreType", "jks");
+ 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
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
org.jboss.test.ws.jaxws.samples.news.SecurePrinter
http://host:port/news/newspaper/swa?wsdl");
+ }
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecurePrinter.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/ObjectFactory.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/ObjectFactory.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/ObjectFactory.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,79 @@
+
+package org.jboss.test.ws.jaxws.samples.news.generated.agency;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the org.jboss.test.ws.jaxws.samples.news.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 {
+
+ private final static QName _SubmitPressRelease_QNAME = new
QName("http://org.jboss.ws/samples/news", "submitPressRelease");
+ private final static QName _SubmitPressReleaseResponse_QNAME = new
QName("http://org.jboss.ws/samples/news",
"submitPressReleaseResponse");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema
derived classes for package: org.jboss.test.ws.jaxws.samples.news.generated
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link SubmitPressReleaseResponse }
+ *
+ */
+ public SubmitPressReleaseResponse createSubmitPressReleaseResponse() {
+ return new SubmitPressReleaseResponse();
+ }
+
+ /**
+ * Create an instance of {@link PressRelease }
+ *
+ */
+ public PressRelease createPressRelease() {
+ return new PressRelease();
+ }
+
+ /**
+ * Create an instance of {@link SubmitPressRelease }
+ *
+ */
+ public SubmitPressRelease createSubmitPressRelease() {
+ return new SubmitPressRelease();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link SubmitPressRelease
}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://org.jboss.ws/samples/news", name =
"submitPressRelease")
+ public JAXBElement<SubmitPressRelease>
createSubmitPressRelease(SubmitPressRelease value) {
+ return new JAXBElement<SubmitPressRelease>(_SubmitPressRelease_QNAME,
SubmitPressRelease.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link
SubmitPressReleaseResponse }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://org.jboss.ws/samples/news", name =
"submitPressReleaseResponse")
+ public JAXBElement<SubmitPressReleaseResponse>
createSubmitPressReleaseResponse(SubmitPressReleaseResponse value) {
+ return new
JAXBElement<SubmitPressReleaseResponse>(_SubmitPressReleaseResponse_QNAME,
SubmitPressReleaseResponse.class, null, value);
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/ObjectFactory.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressRelease.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressRelease.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressRelease.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,144 @@
+
+package org.jboss.test.ws.jaxws.samples.news.generated.agency;
+
+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 pressRelease complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="pressRelease">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="agencyId"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="body"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="date"
type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
+ * <element name="title"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "pressRelease", propOrder = {
+ "agencyId",
+ "body",
+ "date",
+ "title"
+})
+public class PressRelease {
+
+ protected String agencyId;
+ protected String body;
+ @XmlSchemaType(name = "dateTime")
+ protected XMLGregorianCalendar date;
+ protected String title;
+
+ /**
+ * Gets the value of the agencyId property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getAgencyId() {
+ return agencyId;
+ }
+
+ /**
+ * Sets the value of the agencyId property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setAgencyId(String value) {
+ this.agencyId = value;
+ }
+
+ /**
+ * Gets the value of the body property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getBody() {
+ return body;
+ }
+
+ /**
+ * Sets the value of the body property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setBody(String value) {
+ this.body = value;
+ }
+
+ /**
+ * Gets the value of the date property.
+ *
+ * @return
+ * possible object is
+ * {@link XMLGregorianCalendar }
+ *
+ */
+ public XMLGregorianCalendar getDate() {
+ return date;
+ }
+
+ /**
+ * Sets the value of the date property.
+ *
+ * @param value
+ * allowed object is
+ * {@link XMLGregorianCalendar }
+ *
+ */
+ public void setDate(XMLGregorianCalendar value) {
+ this.date = value;
+ }
+
+ /**
+ * Gets the value of the title property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getTitle() {
+ return title;
+ }
+
+ /**
+ * Sets the value of the title property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setTitle(String value) {
+ this.title = value;
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressRelease.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressReleaseEndpoint.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressReleaseEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressReleaseEndpoint.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,32 @@
+
+package org.jboss.test.ws.jaxws.samples.news.generated.agency;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebService;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.1.1-b03-
+ * Generated source version: 2.0
+ *
+ */
+@WebService(name = "PressReleaseEndpoint", targetNamespace =
"http://org.jboss.ws/samples/news")
+public interface PressReleaseEndpoint {
+
+
+ /**
+ *
+ * @param arg0
+ */
+ @WebMethod
+ @RequestWrapper(localName = "submitPressRelease", targetNamespace =
"http://org.jboss.ws/samples/news", className =
"org.jboss.test.ws.jaxws.samples.news.generated.SubmitPressRelease")
+ @ResponseWrapper(localName = "submitPressReleaseResponse", targetNamespace
= "http://org.jboss.ws/samples/news", className =
"org.jboss.test.ws.jaxws.samples.news.generated.SubmitPressReleaseResponse")
+ public void submitPressRelease(
+ @WebParam(name = "arg0", targetNamespace = "")
+ PressRelease arg0);
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressReleaseEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressReleaseService.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressReleaseService.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressReleaseService.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,53 @@
+
+package org.jboss.test.ws.jaxws.samples.news.generated.agency;
+
+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 = "PressReleaseService", targetNamespace =
"http://org.jboss.ws/samples/news", wsdlLocation =
"http://localhost.localdomain:8080/news/pressRelease?wsdl")
+public class PressReleaseService
+ extends Service
+{
+
+ private final static URL PRESSRELEASESERVICE_WSDL_LOCATION;
+
+ static {
+ URL url = null;
+ try {
+ url = new
URL("http://localhost.localdomain:8080/news/pressRelease?wsdl");
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ PRESSRELEASESERVICE_WSDL_LOCATION = url;
+ }
+
+ public PressReleaseService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public PressReleaseService() {
+ super(PRESSRELEASESERVICE_WSDL_LOCATION, new
QName("http://org.jboss.ws/samples/news", "PressReleaseService"));
+ }
+
+ /**
+ *
+ * @return
+ * returns PressReleaseEndpoint
+ */
+ @WebEndpoint(name = "PressReleaseEndpointPort")
+ public PressReleaseEndpoint getPressReleaseEndpointPort() {
+ return (PressReleaseEndpoint)super.getPort(new
QName("http://org.jboss.ws/samples/news", "PressReleaseEndpointPort"),
PressReleaseEndpoint.class);
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressReleaseService.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/SubmitPressRelease.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/SubmitPressRelease.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/SubmitPressRelease.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,60 @@
+
+package org.jboss.test.ws.jaxws.samples.news.generated.agency;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for submitPressRelease complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="submitPressRelease">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="arg0"
type="{http://org.jboss.ws/samples/news}pressRelease"
minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "submitPressRelease", propOrder = {
+ "arg0"
+})
+public class SubmitPressRelease {
+
+ protected PressRelease arg0;
+
+ /**
+ * Gets the value of the arg0 property.
+ *
+ * @return
+ * possible object is
+ * {@link PressRelease }
+ *
+ */
+ public PressRelease getArg0() {
+ return arg0;
+ }
+
+ /**
+ * Sets the value of the arg0 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link PressRelease }
+ *
+ */
+ public void setArg0(PressRelease value) {
+ this.arg0 = value;
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/SubmitPressRelease.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/SubmitPressReleaseResponse.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/SubmitPressReleaseResponse.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/SubmitPressReleaseResponse.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,32 @@
+
+package org.jboss.test.ws.jaxws.samples.news.generated.agency;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for submitPressReleaseResponse complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="submitPressReleaseResponse">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "submitPressReleaseResponse")
+public class SubmitPressReleaseResponse {
+
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/SubmitPressReleaseResponse.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/package-info.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/package-info.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/package-info.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,2 @@
+(a)javax.xml.bind.annotation.XmlSchema(namespace =
"http://org.jboss.ws/samples/news")
+package org.jboss.test.ws.jaxws.samples.news.generated.agency;
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/package-info.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/EditionMTOM.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/EditionMTOM.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/EditionMTOM.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,120 @@
+
+package org.jboss.test.ws.jaxws.samples.news.generated.printer.mtom;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlMimeType;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.datatype.XMLGregorianCalendar;
+
+
+/**
+ * <p>Java class for editionMTOM complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="editionMTOM">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="content"
type="{http://www.w3.org/2001/XMLSchema}base64Binary"
minOccurs="0"/>
+ * <element name="date"
type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
+ * <element name="id"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "editionMTOM", namespace =
"http://org.jboss.ws/samples/news", propOrder = {
+ "content",
+ "date",
+ "id"
+})
+public class EditionMTOM {
+
+ @XmlMimeType("text/plain")
+ @XmlSchemaType(name = "base64Binary")
+ protected String content;
+ @XmlSchemaType(name = "dateTime")
+ protected XMLGregorianCalendar date;
+ protected String id;
+
+ /**
+ * Gets the value of the content property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getContent() {
+ return content;
+ }
+
+ /**
+ * Sets the value of the content property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setContent(String value) {
+ this.content = value;
+ }
+
+ /**
+ * Gets the value of the date property.
+ *
+ * @return
+ * possible object is
+ * {@link XMLGregorianCalendar }
+ *
+ */
+ public XMLGregorianCalendar getDate() {
+ return date;
+ }
+
+ /**
+ * Sets the value of the date property.
+ *
+ * @param value
+ * allowed object is
+ * {@link XMLGregorianCalendar }
+ *
+ */
+ public void setDate(XMLGregorianCalendar value) {
+ this.date = 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;
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/EditionMTOM.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/NewspaperMTOMEndpoint.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/NewspaperMTOMEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/NewspaperMTOMEndpoint.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,50 @@
+
+package org.jboss.test.ws.jaxws.samples.news.generated.printer.mtom;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.xml.datatype.XMLGregorianCalendar;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.1.1-b03-
+ * Generated source version: 2.0
+ *
+ */
+@WebService(name = "NewspaperMTOMEndpoint", targetNamespace =
"http://org.jboss.ws/samples/news")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface NewspaperMTOMEndpoint {
+
+
+ /**
+ *
+ * @param id
+ * @return
+ * returns
org.jboss.test.ws.jaxws.samples.news.generated.printer.mtom.EditionMTOM
+ */
+ @WebMethod
+ @WebResult(partName = "return")
+ public EditionMTOM getNewspaperEdition(
+ @WebParam(name = "id", partName = "id")
+ String id);
+
+ /**
+ *
+ * @param to
+ * @param from
+ * @return
+ * returns
org.jboss.test.ws.jaxws.samples.news.generated.printer.mtom.StringArray
+ */
+ @WebMethod
+ @WebResult(partName = "return")
+ public StringArray getNewspaperEditionIdList(
+ @WebParam(name = "from", partName = "from")
+ XMLGregorianCalendar from,
+ @WebParam(name = "to", partName = "to")
+ XMLGregorianCalendar to);
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/NewspaperMTOMEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/NewspaperMTOMService.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/NewspaperMTOMService.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/NewspaperMTOMService.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,53 @@
+
+package org.jboss.test.ws.jaxws.samples.news.generated.printer.mtom;
+
+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 = "NewspaperMTOMService", targetNamespace =
"http://org.jboss.ws/samples/news", wsdlLocation =
"http://localhost.localdomain:8080/news/newspaper/mtom?wsdl")
+public class NewspaperMTOMService
+ extends Service
+{
+
+ private final static URL NEWSPAPERMTOMSERVICE_WSDL_LOCATION;
+
+ static {
+ URL url = null;
+ try {
+ url = new
URL("http://localhost.localdomain:8080/news/newspaper/mtom?wsdl");
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ NEWSPAPERMTOMSERVICE_WSDL_LOCATION = url;
+ }
+
+ public NewspaperMTOMService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public NewspaperMTOMService() {
+ super(NEWSPAPERMTOMSERVICE_WSDL_LOCATION, new
QName("http://org.jboss.ws/samples/news", "NewspaperMTOMService"));
+ }
+
+ /**
+ *
+ * @return
+ * returns NewspaperMTOMEndpoint
+ */
+ @WebEndpoint(name = "NewspaperMTOMEndpointPort")
+ public NewspaperMTOMEndpoint getNewspaperMTOMEndpointPort() {
+ return (NewspaperMTOMEndpoint)super.getPort(new
QName("http://org.jboss.ws/samples/news",
"NewspaperMTOMEndpointPort"), NewspaperMTOMEndpoint.class);
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/NewspaperMTOMService.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/ObjectFactory.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/ObjectFactory.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/ObjectFactory.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,48 @@
+
+package org.jboss.test.ws.jaxws.samples.news.generated.printer.mtom;
+
+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.news.generated.printer.mtom 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.news.generated.printer.mtom
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link EditionMTOM }
+ *
+ */
+ public EditionMTOM createEditionMTOM() {
+ return new EditionMTOM();
+ }
+
+ /**
+ * Create an instance of {@link StringArray }
+ *
+ */
+ public StringArray createStringArray() {
+ return new StringArray();
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/ObjectFactory.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/StringArray.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/StringArray.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/StringArray.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,69 @@
+
+package org.jboss.test.ws.jaxws.samples.news.generated.printer.mtom;
+
+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 stringArray complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="stringArray">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="item"
type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"
minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "stringArray", propOrder = {
+ "item"
+})
+public class StringArray {
+
+ @XmlElement(nillable = true)
+ protected List<String> item;
+
+ /**
+ * Gets the value of the item 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 item
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getItem().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getItem() {
+ if (item == null) {
+ item = new ArrayList<String>();
+ }
+ return this.item;
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/StringArray.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/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
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/package-info.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,2 @@
+(a)javax.xml.bind.annotation.XmlSchema(namespace =
"http://jaxb.dev.java.net/array")
+package org.jboss.test.ws.jaxws.samples.news.generated.printer.mtom;
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/package-info.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/EditionSWA.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/EditionSWA.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/EditionSWA.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,122 @@
+
+package org.jboss.test.ws.jaxws.samples.news.generated.printer.swa;
+
+import javax.activation.DataHandler;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttachmentRef;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.datatype.XMLGregorianCalendar;
+
+
+/**
+ * <p>Java class for editionSWA complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="editionSWA">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="content"
type="{http://ws-i.org/profiles/basic/1.1/xsd}swaRef"
minOccurs="0"/>
+ * <element name="date"
type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
+ * <element name="id"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "editionSWA", namespace =
"http://org.jboss.ws/samples/news", propOrder = {
+ "content",
+ "date",
+ "id"
+})
+public class EditionSWA {
+
+ @XmlElement(type = String.class)
+ @XmlAttachmentRef
+ protected DataHandler content;
+ @XmlSchemaType(name = "dateTime")
+ protected XMLGregorianCalendar date;
+ protected String id;
+
+ /**
+ * Gets the value of the content property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public DataHandler getContent() {
+ return content;
+ }
+
+ /**
+ * Sets the value of the content property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setContent(DataHandler value) {
+ this.content = value;
+ }
+
+ /**
+ * Gets the value of the date property.
+ *
+ * @return
+ * possible object is
+ * {@link XMLGregorianCalendar }
+ *
+ */
+ public XMLGregorianCalendar getDate() {
+ return date;
+ }
+
+ /**
+ * Sets the value of the date property.
+ *
+ * @param value
+ * allowed object is
+ * {@link XMLGregorianCalendar }
+ *
+ */
+ public void setDate(XMLGregorianCalendar value) {
+ this.date = 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;
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/EditionSWA.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/NewspaperSWAEndpoint.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/NewspaperSWAEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/NewspaperSWAEndpoint.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,50 @@
+
+package org.jboss.test.ws.jaxws.samples.news.generated.printer.swa;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.xml.datatype.XMLGregorianCalendar;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.1.1-b03-
+ * Generated source version: 2.0
+ *
+ */
+@WebService(name = "NewspaperSWAEndpoint", targetNamespace =
"http://org.jboss.ws/samples/news")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface NewspaperSWAEndpoint {
+
+
+ /**
+ *
+ * @param id
+ * @return
+ * returns org.jboss.test.ws.jaxws.samples.news.generated.printer.swa.EditionSWA
+ */
+ @WebMethod
+ @WebResult(partName = "return")
+ public EditionSWA getNewspaperEdition(
+ @WebParam(name = "id", partName = "id")
+ String id);
+
+ /**
+ *
+ * @param to
+ * @param from
+ * @return
+ * returns
org.jboss.test.ws.jaxws.samples.news.generated.printer.swa.StringArray
+ */
+ @WebMethod
+ @WebResult(partName = "return")
+ public StringArray getNewspaperEditionIdList(
+ @WebParam(name = "from", partName = "from")
+ XMLGregorianCalendar from,
+ @WebParam(name = "to", partName = "to")
+ XMLGregorianCalendar to);
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/NewspaperSWAEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/NewspaperSWAService.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/NewspaperSWAService.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/NewspaperSWAService.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,53 @@
+
+package org.jboss.test.ws.jaxws.samples.news.generated.printer.swa;
+
+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 = "NewspaperSWAService", targetNamespace =
"http://org.jboss.ws/samples/news", wsdlLocation =
"http://localhost.localdomain:8080/news/newspaper/swa?wsdl")
+public class NewspaperSWAService
+ extends Service
+{
+
+ private final static URL NEWSPAPERSWASERVICE_WSDL_LOCATION;
+
+ static {
+ URL url = null;
+ try {
+ url = new
URL("http://localhost.localdomain:8080/news/newspaper/swa?wsdl");
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ NEWSPAPERSWASERVICE_WSDL_LOCATION = url;
+ }
+
+ public NewspaperSWAService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public NewspaperSWAService() {
+ super(NEWSPAPERSWASERVICE_WSDL_LOCATION, new
QName("http://org.jboss.ws/samples/news", "NewspaperSWAService"));
+ }
+
+ /**
+ *
+ * @return
+ * returns NewspaperSWAEndpoint
+ */
+ @WebEndpoint(name = "NewspaperSWAEndpointPort")
+ public NewspaperSWAEndpoint getNewspaperSWAEndpointPort() {
+ return (NewspaperSWAEndpoint)super.getPort(new
QName("http://org.jboss.ws/samples/news", "NewspaperSWAEndpointPort"),
NewspaperSWAEndpoint.class);
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/NewspaperSWAService.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/ObjectFactory.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/ObjectFactory.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/ObjectFactory.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,61 @@
+
+package org.jboss.test.ws.jaxws.samples.news.generated.printer.swa;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the org.jboss.test.ws.jaxws.samples.news.generated.printer.swa 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 {
+
+ private final static QName _EditionSWA_QNAME = new
QName("http://org.jboss.ws/samples/news", "editionSWA");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema
derived classes for package: org.jboss.test.ws.jaxws.samples.news.generated.printer.swa
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link EditionSWA }
+ *
+ */
+ public EditionSWA createEditionSWA() {
+ return new EditionSWA();
+ }
+
+ /**
+ * Create an instance of {@link StringArray }
+ *
+ */
+ public StringArray createStringArray() {
+ return new StringArray();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link EditionSWA }{@code
>}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://org.jboss.ws/samples/news", name =
"editionSWA")
+ public JAXBElement<EditionSWA> createEditionSWA(EditionSWA value) {
+ return new JAXBElement<EditionSWA>(_EditionSWA_QNAME, EditionSWA.class,
null, value);
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/ObjectFactory.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/StringArray.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/StringArray.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/StringArray.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,69 @@
+
+package org.jboss.test.ws.jaxws.samples.news.generated.printer.swa;
+
+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 stringArray complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="stringArray">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="item"
type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"
minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "stringArray", propOrder = {
+ "item"
+})
+public class StringArray {
+
+ @XmlElement(nillable = true)
+ protected List<String> item;
+
+ /**
+ * Gets the value of the item 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 item
property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getItem().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getItem() {
+ if (item == null) {
+ item = new ArrayList<String>();
+ }
+ return this.item;
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/StringArray.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/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
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/package-info.java 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,2 @@
+(a)javax.xml.bind.annotation.XmlSchema(namespace =
"http://jaxb.dev.java.net/array")
+package org.jboss.test.ws.jaxws.samples.news.generated.printer.swa;
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/package-info.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF/jboss-web.xml
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF/jboss-web.xml
(rev 0)
+++
stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF/jboss-web.xml 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN"
"http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
+
+<jboss-web>
+ <context-root>/dar-client</context-root>
+</jboss-web>
\ No newline at end of file
Property changes on:
stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF/jboss-web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF/web.xml
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF/web.xml
(rev 0)
+++ stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF/web.xml 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+
+ <display-name>Dar client app</display-name>
+ <servlet>
+ <servlet-name>ReplyService</servlet-name>
+
<servlet-class>org.jboss.test.ws.jaxws.samples.dar.DarReplyEndpointImpl</servlet-class>
+ </servlet>
+ <servlet>
+ <servlet-name>ReplyToSink</servlet-name>
+
<servlet-class>org.jboss.test.ws.jaxws.samples.dar.ReplyToServlet</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>ReplyService</servlet-name>
+ <url-pattern>/replyService</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>ReplyToSink</servlet-name>
+ <url-pattern>/replyTo</url-pattern>
+ </servlet-mapping>
+</web-app>
\ No newline at end of file
Property changes on:
stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF/wsdl/reply.wsdl
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF/wsdl/reply.wsdl
(rev 0)
+++
stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF/wsdl/reply.wsdl 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,54 @@
+<definitions name="DarReplyService"
targetNamespace="http://org.jboss.ws/samples/dar"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://org.jboss.ws/samples/dar"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <types>
+ <xs:schema targetNamespace="http://org.jboss.ws/samples/dar"
version="1.0" xmlns:tns="http://org.jboss.ws/samples/dar"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ <xs:complexType name="serviceRequest">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="from"
type="tns:stop"/>
+ <xs:element minOccurs="0" name="id"
type="xs:string"/>
+ <xs:element name="people" type="xs:int"/>
+ <xs:element minOccurs="0" name="to"
type="tns:stop"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="stop">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="node"
type="xs:int"/>
+ <xs:element minOccurs="0" name="time"
type="xs:dateTime"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="darResponse">
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" minOccurs="0"
name="routes" nillable="true" type="tns:route"/>
+ <xs:element maxOccurs="unbounded" minOccurs="0"
name="unservedRequests" nillable="true"
type="tns:serviceRequest"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="route">
+ <xs:sequence>
+ <xs:element minOccurs="0" name="busId"
type="xs:string"/>
+ <xs:element maxOccurs="unbounded" minOccurs="0"
name="stops" nillable="true" type="tns:stop"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:schema>
+ </types>
+ <message name="DarReplyEndpoint_receive">
+ <part name="arg0" type="tns:darResponse"/>
+ </message>
+ <portType name="DarReplyEndpoint">
+ <operation name="receive">
+ <input message="tns:DarReplyEndpoint_receive"/>
+ </operation>
+ </portType>
+ <binding name="DarReplyEndpointBinding"
type="tns:DarReplyEndpoint">
+ <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="receive">
+ <soap:operation
soapAction="http://org.jboss.test.ws.jaxws.samples.dar/action/receiveIn"/>
+ <input>
+ <soap:body namespace="http://org.jboss.ws/samples/dar"
use="literal"/>
+ </input>
+ </operation>
+ </binding>
+ <service name="DarReplyService">
+ <port binding="tns:DarReplyEndpointBinding"
name="DarReplyEndpointPort">
+ <soap:address
location="http://localhost.localdomain:8080/dar-client/replyService"/>
+ </port>
+ </service>
+</definitions>
Property changes on:
stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF/wsdl/reply.wsdl
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/Alice.cer
===================================================================
(Binary files differ)
Property changes on:
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/Alice.cer
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/Bob.cer
===================================================================
(Binary files differ)
Property changes on:
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/Bob.cer
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/alice-sign_enc.jks
===================================================================
(Binary files differ)
Property changes on:
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/alice-sign_enc.jks
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/bob-sign_enc.jks
===================================================================
(Binary files differ)
Property changes on:
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/bob-sign_enc.jks
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/jboss-wsse-client.xml
===================================================================
---
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/jboss-wsse-client.xml
(rev 0)
+++
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/jboss-wsse-client.xml 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jboss-ws-security
xmlns="http://www.jboss.com/ws-security/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://www.jboss.com/ws-security/config
http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
+ <config>
+ <timestamp ttl="300"/>
+ <sign type="x509v3" alias="1"
includeTimestamp="true"/>
+ <encrypt type="x509v3" alias="bob"/>
+ <requires>
+ <signature/>
+ <encryption/>
+ </requires>
+ </config>
+</jboss-ws-security>
\ No newline at end of file
Property changes on:
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/jboss-wsse-client.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/jboss-wsse-server.xml
===================================================================
---
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/jboss-wsse-server.xml
(rev 0)
+++
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/jboss-wsse-server.xml 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,21 @@
+<jboss-ws-security
xmlns="http://www.jboss.com/ws-security/config"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://www.jboss.com/ws-security/config
+
http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
+ <key-store-file>META-INF/bob-sign_enc.jks</key-store-file>
+ <key-store-password>password</key-store-password>
+ <key-store-type>jks</key-store-type>
+ <trust-store-file>META-INF/wsse10.truststore</trust-store-file>
+ <trust-store-password>password</trust-store-password>
+
+ <config>
+ <timestamp ttl="300"/>
+ <sign type="x509v3" alias="1"
includeTimestamp="true"/>
+ <encrypt type="x509v3" alias="alice"/>
+ <requires>
+ <signature/>
+ <encryption/>
+ </requires>
+ </config>
+
+</jboss-ws-security>
Property changes on:
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/jboss-wsse-server.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/readme.txt
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/readme.txt
(rev 0)
+++
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/readme.txt 2008-01-31
16:57:35 UTC (rev 5555)
@@ -0,0 +1,85 @@
+ ------------------------------------
+ Certificates & keystores
+ -------------------------------------
+
+
+ Alice - Client Bob - Server
+
+Signature+Encrypt
+-> Keystore alice-sign_enc.jks bob-sign_enc.jks
+-> Truststore wsse10.truststore wsse10.truststore
+
+
+
+> keytool -printcert -file Alice.cer
+
+Proprietario: CN=Alice, OU=OASIS Interop Test Cert, O=OASIS
+Organismo di emissione: CN=OASIS Interop Test CA, O=OASIS
+Numero di serie: 33a6047fb155631fed6721178150a899
+Valido da Sat Mar 19 01:00:00 CET 2005 a Tue Mar 20 00:59:59 CET 2018
+Impronte digitali certificato:
+ MD5: 57:CE:81:F1:03:C4:2C:F7:5B:1A:DE:AC:43:64:0A:84
+ SHA1: 6E:0E:88:F3:6E:BB:87:44:D4:70:F6:2F:60:4D:03:EA:4E:BE:50:94
+
+
+--------------------------------------------------------------------------------------
+> keytool -printcert -file Bob.cer
+Proprietario: CN=Bob, OU=OASIS Interop Test Cert, O=OASIS
+Organismo di emissione: CN=OASIS Interop Test CA, O=OASIS
+Numero di serie: 6038eedbfeac9bbec89d87d3abae71f8
+Valido da Sat Mar 19 01:00:00 CET 2005 a Tue Mar 20 00:59:59 CET 2018
+Impronte digitali certificato:
+ MD5: 89:3E:86:D2:4F:9C:E7:39:B6:71:8A:EF:00:C5:89:DC
+ SHA1: 35:03:34:20:1B:EE:A6:50:2D:11:34:2F:93:EE:A0:9F:C0:B5:DF:01
+
+
+--------------------------------------------------------------------------------------
+> keytool -list -keystore wsse10.truststore
+Immettere la password del keystore: password
+
+Tipo keystore: jks
+Provider keystore: SUN
+
+Il keystore contiene 2 entry
+
+alice, 9-mar-2006, trustedCertEntry,
+Impronta digitale certificato (MD5):
+57:CE:81:F1:03:C4:2C:F7:5B:1A:DE:AC:43:64:0A:84
+bob, 9-mar-2006, trustedCertEntry,
+Impronta digitale certificato (MD5):
+89:3E:86:D2:4F:9C:E7:39:B6:71:8A:EF:00:C5:89:DC
+
+
+--------------------------------------------------------------------------------------
+> keytool -list -keystore alice-sign_enc.jks
+Immettere la password del keystore: password
+
+Tipo keystore: jks
+Provider keystore: SUN
+
+Il keystore contiene 2 entry
+
+1, 27-ott-2007, keyEntry,
+Impronta digitale certificato (MD5):
+57:CE:81:F1:03:C4:2C:F7:5B:1A:DE:AC:43:64:0A:84
+bob, 27-ott-2007, trustedCertEntry,
+Impronta digitale certificato (MD5):
+89:3E:86:D2:4F:9C:E7:39:B6:71:8A:EF:00:C5:89:DC
+
+
+--------------------------------------------------------------------------------------
+> keytool -list -keystore bob-sign_enc.jks
+Immettere la password del keystore: password
+
+Tipo keystore: jks
+Provider keystore: SUN
+
+Il keystore contiene 2 entry
+
+alice, 27-ott-2007, trustedCertEntry,
+Impronta digitale certificato (MD5):
+57:CE:81:F1:03:C4:2C:F7:5B:1A:DE:AC:43:64:0A:84
+1, 27-ott-2007, keyEntry,
+Impronta digitale certificato (MD5):
+89:3E:86:D2:4F:9C:E7:39:B6:71:8A:EF:00:C5:89:DC
+
Property changes on:
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/readme.txt
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/wsse10.truststore
===================================================================
(Binary files differ)
Property changes on:
stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/wsse10.truststore
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream