JBossWS SVN: r5555 - in stack/native/trunk: src/test/java/org/jboss/test/ws/jaxws/samples and 15 other directories.
by jbossws-commits@lists.jboss.org
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
16 years, 11 months
JBossWS SVN: r5554 - stack/native/trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1124.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2008-01-31 08:04:56 -0500 (Thu, 31 Jan 2008)
New Revision: 5554
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1124/JBWS1124TestCase.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1124/TestEndpointImpl.java
Log:
fixing hudson regression - probably checked in by mistake
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1124/JBWS1124TestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1124/JBWS1124TestCase.java 2008-01-31 09:40:57 UTC (rev 5553)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1124/JBWS1124TestCase.java 2008-01-31 13:04:56 UTC (rev 5554)
@@ -52,8 +52,8 @@
{
ServiceFactoryImpl factory = new ServiceFactoryImpl();
URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jbws1124one/TestEndpoint?wsdl");
- URL mappingURL = new File("resources/jaxrpc/jbas5151/WEB-INF/jaxrpc-mapping.xml").toURL();
- QName qname = new QName("http://org.jboss.test.ws/jbas5151", "TestService");
+ URL mappingURL = new File("resources/jaxrpc/jbws1124/WEB-INF/jaxrpc-mapping.xml").toURL();
+ QName qname = new QName("http://org.jboss.test.ws/jbws1124", "TestService");
Service service = factory.createService(wsdlURL, qname, mappingURL);
TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
assertEquals("jbws1124one", port.getResourceString());
@@ -64,8 +64,8 @@
{
ServiceFactoryImpl factory = new ServiceFactoryImpl();
URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jbws1124two/TestEndpoint?wsdl");
- URL mappingURL = new File("resources/jaxrpc/jbas5151/WEB-INF/jaxrpc-mapping.xml").toURL();
- QName qname = new QName("http://org.jboss.test.ws/jbas5151", "TestService");
+ URL mappingURL = new File("resources/jaxrpc/jbws1124/WEB-INF/jaxrpc-mapping.xml").toURL();
+ QName qname = new QName("http://org.jboss.test.ws/jbws1124", "TestService");
Service service = factory.createService(wsdlURL, qname, mappingURL);
TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
assertEquals("jbws1124two", port.getResourceString());
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1124/TestEndpointImpl.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1124/TestEndpointImpl.java 2008-01-31 09:40:57 UTC (rev 5553)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1124/TestEndpointImpl.java 2008-01-31 13:04:56 UTC (rev 5554)
@@ -30,12 +30,9 @@
import org.jboss.logging.Logger;
import org.jboss.ws.WSException;
-import javax.jws.WebService;
-
/**
* @author Heiko.Braun(a)jboss.org
*/
-@WebService
public class TestEndpointImpl implements TestEndpoint
{
private Logger log = Logger.getLogger(TestEndpointImpl.class);
16 years, 11 months
JBossWS SVN: r5553 - in stack/native/trunk/src: test/java/org/jboss/test/ws/jaxws/wsrm/oneway and 1 other directories.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2008-01-31 04:40:57 -0500 (Thu, 31 Jan 2008)
New Revision: 5553
Modified:
stack/native/trunk/src/main/java/org/jboss/ws/core/jaxws/client/ClientProxy.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractOneWayTest.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractSecuredOneWayTest.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractReqResTest.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractSecuredReqResTest.java
Log:
[JBWS-1777] fixed
Modified: stack/native/trunk/src/main/java/org/jboss/ws/core/jaxws/client/ClientProxy.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/core/jaxws/client/ClientProxy.java 2008-01-30 19:03:40 UTC (rev 5552)
+++ stack/native/trunk/src/main/java/org/jboss/ws/core/jaxws/client/ClientProxy.java 2008-01-31 09:40:57 UTC (rev 5553)
@@ -163,6 +163,12 @@
private Object invoke(QName opName, Object[] args, Class retType, Map<String, Object> resContext) throws RemoteException
{
+ boolean rmDetected = this.client.getEndpointMetaData().getConfig().getRMMetaData() != null;
+ boolean rmActivated = client.getWSRMSequence() != null;
+ if (rmDetected && !rmActivated)
+ {
+ client.createSequence();
+ }
Object retObj = client.invoke(opName, args, resContext);
if (retObj != null)
{
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractOneWayTest.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractOneWayTest.java 2008-01-30 19:03:40 UTC (rev 5552)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractOneWayTest.java 2008-01-31 09:40:57 UTC (rev 5553)
@@ -59,14 +59,13 @@
public void testOneWayMethods() throws Exception
{
- ((RMProvider)proxy).createSequence();
setAddrProps(proxy, "http://useless/action1", serviceURL);
proxy.method1();
setAddrProps(proxy, "http://useless/action2", serviceURL);
proxy.method2("Hello World");
setAddrProps(proxy, "http://useless/action3", serviceURL);
proxy.method3(new String[] {"Hello","World"});
- ((RMProvider)proxy).closeSequence();
+ ((RMProvider)proxy).closeSequence(); // this is optional operation
}
public static String getClasspath()
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractSecuredOneWayTest.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractSecuredOneWayTest.java 2008-01-30 19:03:40 UTC (rev 5552)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractSecuredOneWayTest.java 2008-01-31 09:40:57 UTC (rev 5553)
@@ -59,14 +59,13 @@
public void testOneWayMethods() throws Exception
{
- ((RMProvider)proxy).createSequence();
setAddrProps(proxy, "http://useless/action1", serviceURL);
proxy.method1();
setAddrProps(proxy, "http://useless/action2", serviceURL);
proxy.method2("Hello World");
setAddrProps(proxy, "http://useless/action3", serviceURL);
proxy.method3(new String[] {"Hello","World"});
- ((RMProvider)proxy).closeSequence();
+ ((RMProvider)proxy).closeSequence(); // this is optional operation
}
public static String getClasspath()
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractReqResTest.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractReqResTest.java 2008-01-30 19:03:40 UTC (rev 5552)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractReqResTest.java 2008-01-31 09:40:57 UTC (rev 5553)
@@ -151,14 +151,13 @@
private void doReliableMessageExchange(Object proxyObject, InvocationType invocationType) throws Exception
{
- ((RMProvider)proxyObject).createSequence();
setAddrProps(proxy, "http://useless/action", serviceURL);
invokeWebServiceMethod(invocationType);
setAddrProps(proxy, "http://useless/action", serviceURL);
invokeWebServiceMethod(invocationType);
setAddrProps(proxy, "http://useless/action", serviceURL);
invokeWebServiceMethod(invocationType);
- ((RMProvider)proxyObject).closeSequence();
+ ((RMProvider)proxyObject).closeSequence(); // this is optional operation
}
public static String getClasspath()
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractSecuredReqResTest.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractSecuredReqResTest.java 2008-01-30 19:03:40 UTC (rev 5552)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractSecuredReqResTest.java 2008-01-31 09:40:57 UTC (rev 5553)
@@ -150,14 +150,13 @@
private void doReliableMessageExchange(Object proxyObject, InvocationType invocationType) throws Exception
{
- ((RMProvider)proxyObject).createSequence();
setAddrProps(proxy, "http://useless/action", serviceURL);
invokeWebServiceMethod(invocationType);
setAddrProps(proxy, "http://useless/action", serviceURL);
invokeWebServiceMethod(invocationType);
setAddrProps(proxy, "http://useless/action", serviceURL);
invokeWebServiceMethod(invocationType);
- ((RMProvider)proxyObject).closeSequence();
+ ((RMProvider)proxyObject).closeSequence(); // this is optional operation
}
public static String getClasspath()
16 years, 11 months
JBossWS SVN: r5552 - stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1733.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2008-01-30 14:03:40 -0500 (Wed, 30 Jan 2008)
New Revision: 5552
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733Impl.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733TestCase.java
Log:
rollback
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733.java 2008-01-30 19:01:45 UTC (rev 5551)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733.java 2008-01-30 19:03:40 UTC (rev 5552)
@@ -22,12 +22,9 @@
package org.jboss.test.ws.jaxws.jbws1733;
import javax.jws.WebService;
-import javax.jws.Oneway;
@WebService
public interface JBWS1733
{
int getCounter();
- @Oneway
- void pingCounter();
}
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733Impl.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733Impl.java 2008-01-30 19:01:45 UTC (rev 5551)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733Impl.java 2008-01-30 19:03:40 UTC (rev 5552)
@@ -23,7 +23,6 @@
import javax.annotation.Resource;
import javax.jws.WebService;
-import javax.jws.Oneway;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.xml.ws.WebServiceContext;
@@ -56,10 +55,5 @@
session.setAttribute("counter", counter);
return counter;
}
- @Oneway
- public void pingCounter()
- {
- getCounter();
- }
}
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733TestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733TestCase.java 2008-01-30 19:01:45 UTC (rev 5551)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733TestCase.java 2008-01-30 19:03:40 UTC (rev 5552)
@@ -63,7 +63,6 @@
public void testIssue() throws Exception
{
((BindingProvider)proxy).getRequestContext().put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true);
- proxy.pingCounter();
for (int i = 1; i <= 10; i++)
{
assertTrue(proxy.getCounter() == i);
16 years, 11 months
JBossWS SVN: r5551 - in stack/native/trunk/src: main/java/org/jboss/ws/extensions/wsrm and 12 other directories.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2008-01-30 14:01:45 -0500 (Wed, 30 Jan 2008)
New Revision: 5551
Removed:
stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/config/RMProviderConfig.java
Modified:
stack/native/trunk/src/main/java/org/jboss/ws/core/jaxws/client/ClientImpl.java
stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/RMClientSequence.java
stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/api/RMProvider.java
stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/config/RMConfig.java
stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/policy/RM10PolicyAssertionDeployer.java
stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/policy/RM11PolicyAssertionDeployer.java
stack/native/trunk/src/main/java/org/jboss/ws/metadata/config/binding/OMFactoryJAXWS.java
stack/native/trunk/src/main/resources/schema/jaxws-config_2_0.xsd
stack/native/trunk/src/test/java/org/jboss/test/ws/common/config/ConfigFactoryTestCase.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733Impl.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733TestCase.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractOneWayTest.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractSecuredOneWayTest.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAddressableOneWayTestCase.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAnonymousOneWayTestCase.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMSecuredAddressableOneWayTestCase.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMSecuredAnonymousOneWayTestCase.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractReqResTest.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractSecuredReqResTest.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAddressableReqResTestCase.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAnonymousReqResTestCase.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMSecuredAddressableReqResTestCase.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMSecuredAnonymousReqResTestCase.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceIface.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceIface.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceIface.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceIface.java
stack/native/trunk/src/test/resources/common/config/jaxws-endpoint-config.xml
stack/native/trunk/src/test/resources/jaxws/wsrm/META-INF/wsrm-jaxws-client-config.xml
Log:
[JBWS-1977] almost fixed
Modified: stack/native/trunk/src/main/java/org/jboss/ws/core/jaxws/client/ClientImpl.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/core/jaxws/client/ClientImpl.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/main/java/org/jboss/ws/core/jaxws/client/ClientImpl.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -23,6 +23,7 @@
// $Id$
+import java.net.URI;
import java.rmi.RemoteException;
import java.util.HashMap;
import java.util.HashSet;
@@ -506,7 +507,7 @@
// WS-RM support //
///////////////////
@SuppressWarnings("unchecked")
- public void createSequence(boolean addressableClient) throws RMException
+ public void createSequence() throws RMException
{
if (this.wsrmSequence != null)
throw new IllegalStateException("Sequence already registered with proxy instance");
@@ -514,14 +515,15 @@
try
{
// set up addressing data
- RMClientSequence candidateSequence = new RMClientSequence(addressableClient, getEndpointMetaData().getConfig().getRMMetaData());
+ RMClientSequence candidateSequence = new RMClientSequence(getEndpointMetaData().getConfig().getRMMetaData());
String address = getEndpointMetaData().getEndpointAddress();
String action = RMAddressingConstants.CREATE_SEQUENCE_WSA_ACTION;
AddressingProperties addressingProps = null;
- if (addressableClient)
+ URI backPort = candidateSequence.getBackPort();
+ if (backPort != null)
{
addressingProps = AddressingClientUtil.createDefaultProps(action, address);
- addressingProps.setReplyTo(AddressingBuilder.getAddressingBuilder().newEndpointReference(candidateSequence.getBackPort()));
+ addressingProps.setReplyTo(AddressingBuilder.getAddressingBuilder().newEndpointReference(backPort));
}
else
{
Modified: stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/RMClientSequence.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/RMClientSequence.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/RMClientSequence.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -83,38 +83,39 @@
private AtomicInteger countOfUnassignedMessagesAvailable = new AtomicInteger();
private static final String ANONYMOUS_URI = AddressingBuilder.getAddressingBuilder().newAddressingConstants().getAnonymousURI();
- public RMClientSequence(boolean addrType, RMConfig wsrmConfig)
+ public RMClientSequence(RMConfig wsrmConfig)
{
super();
if (wsrmConfig == null)
throw new RMException("WS-RM configuration missing");
- if (wsrmConfig.getBackPortsServer() == null)
- throw new RMException("WS-RM backports server configuration missing");
- this.addressableClient = addrType;
this.wsrmConfig = wsrmConfig;
- try
+ this.addressableClient = wsrmConfig.getBackPortsServer() != null;
+ if (this.addressableClient)
{
- String host = wsrmConfig.getBackPortsServer().getHost();
- if (host == null)
+ try
{
- host = InetAddress.getLocalHost().getCanonicalHostName();
- logger.debug("Backports server configuration omits host configuration - using autodetected " + host);
- }
- String port = wsrmConfig.getBackPortsServer().getPort();
- String path = PATH_PREFIX + UUIDGenerator.generateRandomUUIDString();
- this.backPort = new URI("http://" + host + ":" + port + path);
+ String host = wsrmConfig.getBackPortsServer().getHost();
+ if (host == null)
+ {
+ host = InetAddress.getLocalHost().getCanonicalHostName();
+ logger.debug("Backports server configuration omits host configuration - using autodetected " + host);
+ }
+ String port = wsrmConfig.getBackPortsServer().getPort();
+ String path = PATH_PREFIX + UUIDGenerator.generateRandomUUIDString();
+ this.backPort = new URI("http://" + host + ":" + port + path);
+ }
+ catch (URISyntaxException use)
+ {
+ logger.warn(use);
+ throw new RMException(use.getMessage(), use);
+ }
+ catch (UnknownHostException uhe)
+ {
+ logger.warn(uhe);
+ throw new RMException(uhe.getMessage(), uhe);
+ }
}
- catch (URISyntaxException use)
- {
- logger.warn(use);
- throw new RMException(use.getMessage(), use);
- }
- catch (UnknownHostException uhe)
- {
- logger.warn(uhe);
- throw new RMException(uhe.getMessage(), uhe);
- }
}
public void unassignedMessageReceived()
Modified: stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/api/RMProvider.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/api/RMProvider.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/api/RMProvider.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -27,8 +27,11 @@
* <p><blockquote><pre>
* boolean addressableClient = true;
* SEI sei = (SEI)service.getPort(SEI.class)
- * ((RMProvider)sei).createSequence(addressableClient);
+ * sei.callMethod1();
+ * sei.callMethod2();
* ...
+ * ((RMProvider)sei).closeSequence();
+ * ((RMProvider)sei).createSequence();
* sei.callMethod1();
* sei.callMethod2();
* ...
@@ -43,10 +46,9 @@
{
/**
* Creates new WS-RM sequence and associates it with service proxy
- * @param addressableClient
* @throws RMException if something went wrong
*/
- void createSequence(boolean addressableClient);
+ void createSequence();
/**
* Close the sequence associated with service proxy
Modified: stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/config/RMConfig.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/config/RMConfig.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/config/RMConfig.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -24,8 +24,6 @@
import java.util.List;
import java.util.LinkedList;
-import org.jboss.ws.extensions.wsrm.spi.RMProvider;
-
/**
* Reliable messaging configuration metadata
*
@@ -35,7 +33,6 @@
{
private RMDeliveryAssuranceConfig deliveryAssurance;
- private RMProviderConfig provider;
private RMBackPortsServerConfig backportsServer;
private RMMessageRetransmissionConfig messageRetransmission;
private List<RMPortConfig> ports = new LinkedList<RMPortConfig>();
@@ -70,23 +67,6 @@
return this.backportsServer;
}
- public final void setProvider(RMProviderConfig provider)
- {
- if (provider.getSpecVersion().equals(RMProvider.get().getNamespaceURI()))
- {
- this.provider = provider;
- }
- else
- {
- throw new IllegalArgumentException("RM provider namespace mismatch");
- }
- }
-
- public final RMProviderConfig getProvider()
- {
- return this.provider;
- }
-
public final List<RMPortConfig> getPorts()
{
return this.ports;
Deleted: stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/config/RMProviderConfig.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/config/RMProviderConfig.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/config/RMProviderConfig.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -1,47 +0,0 @@
-/*
- * 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.ws.extensions.wsrm.config;
-
-/**
- * Reliable messaging provider metadata
- *
- * @author richard.opalka(a)jboss.com
- */
-public final class RMProviderConfig
-{
-
- private String specVersion;
-
- public final void setSpecVersion(String specVersion)
- {
- if (specVersion == null)
- throw new IllegalArgumentException();
-
- this.specVersion = specVersion;
- }
-
- public final String getSpecVersion()
- {
- return this.specVersion;
- }
-
-}
Modified: stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/policy/RM10PolicyAssertionDeployer.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/policy/RM10PolicyAssertionDeployer.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/policy/RM10PolicyAssertionDeployer.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -27,16 +27,14 @@
import org.jboss.ws.extensions.wsrm.config.RMConfig;
import org.jboss.ws.extensions.wsrm.config.RMDeliveryAssuranceConfig;
import org.jboss.ws.extensions.wsrm.config.RMPortConfig;
-import org.jboss.ws.extensions.wsrm.config.RMProviderConfig;
+import org.jboss.ws.extensions.wsrm.spi.RMProvider;
import org.jboss.ws.metadata.umdm.EndpointMetaData;
import org.jboss.ws.metadata.umdm.ExtensibleMetaData;
/**
- * TODO: Add comment
+ * Reliable messaging 1.1 policy deployer
*
* @author richard.opalka(a)jboss.com
- *
- * @since Jan 29, 2008
*/
public final class RM10PolicyAssertionDeployer implements AssertionDeployer
{
@@ -91,9 +89,10 @@
// set up port WSRMP metadata
rmMD.getPorts().add(portMD);
- RMProviderConfig providerMD = new RMProviderConfig();
- providerMD.setSpecVersion(WSRM_NS);
- rmMD.setProvider(providerMD);
+ if (!WSRM_NS.equals(RMProvider.get().getNamespaceURI()))
+ {
+ throw new IllegalArgumentException("RM provider namespace mismatch");
+ }
}
}
Modified: stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/policy/RM11PolicyAssertionDeployer.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/policy/RM11PolicyAssertionDeployer.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/policy/RM11PolicyAssertionDeployer.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -35,12 +35,12 @@
import org.jboss.ws.extensions.wsrm.config.RMDeliveryAssuranceConfig;
import org.jboss.ws.extensions.wsrm.config.RMConfig;
import org.jboss.ws.extensions.wsrm.config.RMPortConfig;
-import org.jboss.ws.extensions.wsrm.config.RMProviderConfig;
+import org.jboss.ws.extensions.wsrm.spi.RMProvider;
import org.jboss.ws.metadata.umdm.EndpointMetaData;
import org.jboss.ws.metadata.umdm.ExtensibleMetaData;
/**
- * Reliable messaging policy deployer
+ * Reliable messaging 1.1 policy deployer
*
* @author richard.opalka(a)jboss.com
*/
@@ -103,9 +103,10 @@
// set up port WSRMP metadata
rmMD.getPorts().add(portMD);
- RMProviderConfig providerMD = new RMProviderConfig();
- providerMD.setSpecVersion(WSRM_NS);
- rmMD.setProvider(providerMD);
+ if (!WSRM_NS.equals(RMProvider.get().getNamespaceURI()))
+ {
+ throw new IllegalArgumentException("RM provider namespace mismatch");
+ }
}
}
Modified: stack/native/trunk/src/main/java/org/jboss/ws/metadata/config/binding/OMFactoryJAXWS.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/metadata/config/binding/OMFactoryJAXWS.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/main/java/org/jboss/ws/metadata/config/binding/OMFactoryJAXWS.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -41,7 +41,6 @@
import org.jboss.ws.extensions.wsrm.config.RMMessageRetransmissionConfig;
import org.jboss.ws.extensions.wsrm.config.RMConfig;
import org.jboss.ws.extensions.wsrm.config.RMPortConfig;
-import org.jboss.ws.extensions.wsrm.config.RMProviderConfig;
/**
* ObjectModelFactory for JAXRPC configurations.
@@ -189,22 +188,6 @@
wsrmConfig.setBackPortsServer(backportsServer);
return backportsServer;
}
- if (localName.equals("provider"))
- {
- String specVersion = null;
- for (int i = 0; i < countOfAttributes; i++)
- {
- if (attrs.getLocalName(i).equals("specVersion"))
- {
- specVersion = attrs.getValue(i);
- break;
- }
- }
- RMProviderConfig provider = new RMProviderConfig();
- provider.setSpecVersion(specVersion);
- wsrmConfig.setProvider(provider);
- return provider;
- }
if (localName.equals("port"))
{
String portName = null;
Modified: stack/native/trunk/src/main/resources/schema/jaxws-config_2_0.xsd
===================================================================
--- stack/native/trunk/src/main/resources/schema/jaxws-config_2_0.xsd 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/main/resources/schema/jaxws-config_2_0.xsd 2008-01-30 19:01:45 UTC (rev 5551)
@@ -75,7 +75,7 @@
<xsd:annotation>
<xsd:documentation>
Backports server configuration to be used for addressable clients.
- Users must always configure backports server on client machines.
+ If element is not present in client configuration then client is anonymous.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
@@ -86,13 +86,6 @@
</xsd:documentation>
</xsd:annotation>
</xsd:element>
- <xsd:element name="provider" type="tns:providerType" minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>
- WS-RM specification version to be used for reliable messaging.
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
<xsd:element name="port" type="tns:portType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
@@ -165,21 +158,6 @@
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
- <xsd:complexType name="providerType">
- <xsd:attribute name="specVersion" use="required">
- <xsd:annotation>
- <xsd:documentation>
- WS-RM spec. version to be used for reliable messaging.
- </xsd:documentation>
- </xsd:annotation>
- <xsd:simpleType>
- <xsd:restriction base="xsd:string">
- <xsd:enumeration value="http://docs.oasis-open.org/ws-rx/wsrm/200702"/>
- <xsd:enumeration value="http://schemas.xmlsoap.org/ws/2005/02/rm"/>
- </xsd:restriction>
- </xsd:simpleType>
- </xsd:attribute>
- </xsd:complexType>
<xsd:complexType name="portType">
<xsd:sequence>
<xsd:element name="delivery-assurance" type="tns:deliveryAssuranceType">
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/common/config/ConfigFactoryTestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/common/config/ConfigFactoryTestCase.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/common/config/ConfigFactoryTestCase.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -31,7 +31,6 @@
import org.jboss.ws.extensions.wsrm.config.RMMessageRetransmissionConfig;
import org.jboss.ws.extensions.wsrm.config.RMConfig;
import org.jboss.ws.extensions.wsrm.config.RMPortConfig;
-import org.jboss.ws.extensions.wsrm.config.RMProviderConfig;
import org.jboss.ws.metadata.config.EndpointProperty;
import org.jboss.ws.metadata.config.JBossWSConfigFactory;
import org.jboss.ws.metadata.config.jaxrpc.CommonConfigJAXRPC;
@@ -140,8 +139,6 @@
RMDeliveryAssuranceConfig deliveryAssurance = wsrmConfig.getDeliveryAssurance();
assertEquals(deliveryAssurance.getInOrder(), "true");
assertEquals(deliveryAssurance.getQuality(), "AtLeastOnce");
- RMProviderConfig provider = wsrmConfig.getProvider();
- assertEquals(provider.getSpecVersion(), "http://docs.oasis-open.org/ws-rx/wsrm/200702");
List<RMPortConfig> ports = wsrmConfig.getPorts();
RMPortConfig port1 = ports.get(0);
assertEquals(port1.getPortName(), new QName("http://custom/namespace/", "Port1"));
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -22,9 +22,12 @@
package org.jboss.test.ws.jaxws.jbws1733;
import javax.jws.WebService;
+import javax.jws.Oneway;
@WebService
public interface JBWS1733
{
int getCounter();
+ @Oneway
+ void pingCounter();
}
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733Impl.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733Impl.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733Impl.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -23,6 +23,7 @@
import javax.annotation.Resource;
import javax.jws.WebService;
+import javax.jws.Oneway;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.xml.ws.WebServiceContext;
@@ -55,5 +56,10 @@
session.setAttribute("counter", counter);
return counter;
}
+ @Oneway
+ public void pingCounter()
+ {
+ getCounter();
+ }
}
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733TestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733TestCase.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1733/JBWS1733TestCase.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -63,6 +63,7 @@
public void testIssue() throws Exception
{
((BindingProvider)proxy).getRequestContext().put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true);
+ proxy.pingCounter();
for (int i = 1; i <= 10; i++)
{
assertTrue(proxy.getCounter() == i);
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractOneWayTest.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractOneWayTest.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractOneWayTest.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -28,6 +28,7 @@
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
+import org.jboss.ws.core.StubExt;
import org.jboss.ws.extensions.wsrm.api.RMProvider;
import org.jboss.wsf.test.JBossWSTest;
import org.jboss.test.ws.jaxws.wsrm.services.OneWayServiceIface;
@@ -48,16 +49,17 @@
protected void setUp() throws Exception
{
super.setUp();
-
+
QName serviceName = new QName("http://org.jboss.ws/jaxws/wsrm", "OneWayService");
URL wsdlURL = new URL(serviceURL + "?wsdl");
Service service = Service.create(wsdlURL, serviceName);
proxy = (OneWayServiceIface)service.getPort(OneWayServiceIface.class);
+ ((StubExt)proxy).setConfigName(getConfigName(), "META-INF/wsrm-jaxws-client-config.xml");
}
public void testOneWayMethods() throws Exception
{
- ((RMProvider)proxy).createSequence(isClientAddressable());
+ ((RMProvider)proxy).createSequence();
setAddrProps(proxy, "http://useless/action1", serviceURL);
proxy.method1();
setAddrProps(proxy, "http://useless/action2", serviceURL);
@@ -72,5 +74,6 @@
return "jaxws-wsrm.war, jaxws-wsrm-client.jar";
}
- protected abstract boolean isClientAddressable();
+ protected abstract String getConfigName();
+
}
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractSecuredOneWayTest.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractSecuredOneWayTest.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractSecuredOneWayTest.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -29,6 +29,7 @@
import javax.xml.ws.Service;
import org.jboss.test.ws.jaxws.wsrm.services.SecuredOneWayServiceIface;
+import org.jboss.ws.core.StubExt;
import org.jboss.ws.extensions.wsrm.api.RMProvider;
import org.jboss.wsf.test.JBossWSTest;
@@ -48,16 +49,17 @@
protected void setUp() throws Exception
{
super.setUp();
-
+
QName serviceName = new QName("http://org.jboss.ws/jaxws/wsrm", "SecuredOneWayService");
URL wsdlURL = new URL(serviceURL + "?wsdl");
Service service = Service.create(wsdlURL, serviceName);
proxy = (SecuredOneWayServiceIface)service.getPort(SecuredOneWayServiceIface.class);
+ ((StubExt)proxy).setConfigName(getConfigName(), "META-INF/wsrm-jaxws-client-config.xml");
}
public void testOneWayMethods() throws Exception
{
- ((RMProvider)proxy).createSequence(isClientAddressable());
+ ((RMProvider)proxy).createSequence();
setAddrProps(proxy, "http://useless/action1", serviceURL);
proxy.method1();
setAddrProps(proxy, "http://useless/action2", serviceURL);
@@ -72,5 +74,6 @@
return "jaxws-secured-wsrm.war, jaxws-secured-wsrm-client.jar";
}
- protected abstract boolean isClientAddressable();
+ protected abstract String getConfigName();
+
}
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAddressableOneWayTestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAddressableOneWayTestCase.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAddressableOneWayTestCase.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -39,8 +39,8 @@
return new JBossWSTestSetup(RMAddressableOneWayTestCase.class, getClasspath());
}
- public final boolean isClientAddressable()
+ public final String getConfigName()
{
- return true;
+ return "Standard Addressable WSRM Client";
}
}
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAnonymousOneWayTestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAnonymousOneWayTestCase.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAnonymousOneWayTestCase.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -39,8 +39,8 @@
return new JBossWSTestSetup(RMAnonymousOneWayTestCase.class, getClasspath());
}
- public final boolean isClientAddressable()
+ public final String getConfigName()
{
- return false;
+ return "Standard Anonymous WSRM Client";
}
}
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMSecuredAddressableOneWayTestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMSecuredAddressableOneWayTestCase.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMSecuredAddressableOneWayTestCase.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -39,8 +39,8 @@
return new JBossWSTestSetup(RMSecuredAddressableOneWayTestCase.class, getClasspath());
}
- public final boolean isClientAddressable()
+ public final String getConfigName()
{
- return true;
+ return "Secured Addressable WSRM Client";
}
}
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMSecuredAnonymousOneWayTestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMSecuredAnonymousOneWayTestCase.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMSecuredAnonymousOneWayTestCase.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -39,8 +39,8 @@
return new JBossWSTestSetup(RMSecuredAnonymousOneWayTestCase.class, getClasspath());
}
- public final boolean isClientAddressable()
+ public final String getConfigName()
{
- return false;
+ return "Secured Anonymous WSRM Client";
}
}
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractReqResTest.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractReqResTest.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractReqResTest.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -38,6 +38,7 @@
import org.jboss.wsf.test.JBossWSTest;
import org.jboss.test.ws.jaxws.wsrm.services.ReqResServiceIface;
+import org.jboss.ws.core.StubExt;
import org.jboss.ws.extensions.wsrm.api.RMProvider;
/**
@@ -77,6 +78,7 @@
Service service = Service.create(wsdlURL, serviceName);
service.setExecutor(testExecutor);
proxy = (ReqResServiceIface)service.getPort(ReqResServiceIface.class);
+ ((StubExt)proxy).setConfigName(getConfigName(), "META-INF/wsrm-jaxws-client-config.xml");
}
}
@@ -149,7 +151,7 @@
private void doReliableMessageExchange(Object proxyObject, InvocationType invocationType) throws Exception
{
- ((RMProvider)proxyObject).createSequence(isClientAddressable());
+ ((RMProvider)proxyObject).createSequence();
setAddrProps(proxy, "http://useless/action", serviceURL);
invokeWebServiceMethod(invocationType);
setAddrProps(proxy, "http://useless/action", serviceURL);
@@ -164,5 +166,6 @@
return "jaxws-wsrm.war, jaxws-wsrm-client.jar";
}
- protected abstract boolean isClientAddressable();
+ protected abstract String getConfigName();
+
}
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractSecuredReqResTest.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractSecuredReqResTest.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractSecuredReqResTest.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -36,6 +36,7 @@
import javax.xml.ws.Service;
import org.jboss.test.ws.jaxws.wsrm.services.SecuredReqResServiceIface;
+import org.jboss.ws.core.StubExt;
import org.jboss.ws.extensions.wsrm.api.RMProvider;
import org.jboss.wsf.test.JBossWSTest;
@@ -76,6 +77,7 @@
Service service = Service.create(wsdlURL, serviceName);
service.setExecutor(testExecutor);
proxy = (SecuredReqResServiceIface)service.getPort(SecuredReqResServiceIface.class);
+ ((StubExt)proxy).setConfigName(getConfigName(), "META-INF/wsrm-jaxws-client-config.xml");
}
}
@@ -148,7 +150,7 @@
private void doReliableMessageExchange(Object proxyObject, InvocationType invocationType) throws Exception
{
- ((RMProvider)proxyObject).createSequence(isClientAddressable());
+ ((RMProvider)proxyObject).createSequence();
setAddrProps(proxy, "http://useless/action", serviceURL);
invokeWebServiceMethod(invocationType);
setAddrProps(proxy, "http://useless/action", serviceURL);
@@ -163,5 +165,6 @@
return "jaxws-secured-wsrm.war, jaxws-secured-wsrm-client.jar";
}
- protected abstract boolean isClientAddressable();
+ protected abstract String getConfigName();
+
}
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAddressableReqResTestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAddressableReqResTestCase.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAddressableReqResTestCase.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -39,8 +39,8 @@
return new JBossWSTestSetup(RMAddressableReqResTestCase.class, getClasspath());
}
- public final boolean isClientAddressable()
+ public final String getConfigName()
{
- return true;
+ return "Standard Addressable WSRM Client";
}
}
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAnonymousReqResTestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAnonymousReqResTestCase.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAnonymousReqResTestCase.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -39,8 +39,8 @@
return new JBossWSTestSetup(RMAnonymousReqResTestCase.class, getClasspath());
}
- public final boolean isClientAddressable()
+ public final String getConfigName()
{
- return false;
+ return "Standard Anonymous WSRM Client";
}
}
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMSecuredAddressableReqResTestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMSecuredAddressableReqResTestCase.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMSecuredAddressableReqResTestCase.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -39,8 +39,8 @@
return new JBossWSTestSetup(RMSecuredAddressableReqResTestCase.class, getClasspath());
}
- public final boolean isClientAddressable()
+ public final String getConfigName()
{
- return true;
+ return "Secured Addressable WSRM Client";
}
}
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMSecuredAnonymousReqResTestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMSecuredAnonymousReqResTestCase.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMSecuredAnonymousReqResTestCase.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -39,8 +39,8 @@
return new JBossWSTestSetup(RMSecuredAnonymousReqResTestCase.class, getClasspath());
}
- public final boolean isClientAddressable()
+ public final String getConfigName()
{
- return false;
+ return "Secured Anonymous WSRM Client";
}
}
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceIface.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceIface.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceIface.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -3,14 +3,7 @@
import javax.jws.Oneway;
import javax.jws.WebService;
-import org.jboss.ws.annotation.EndpointConfig;
-
@WebService
-@EndpointConfig
-(
- configName = "Standard WSRM Client",
- configFile = "META-INF/wsrm-jaxws-client-config.xml"
-)
public interface OneWayServiceIface
{
@Oneway
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceIface.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceIface.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceIface.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -8,14 +8,7 @@
import javax.xml.ws.AsyncHandler;
import javax.xml.ws.Response;
-import org.jboss.ws.annotation.EndpointConfig;
-
@WebService
-@EndpointConfig
-(
- configName = "Standard WSRM Client",
- configFile = "META-INF/wsrm-jaxws-client-config.xml"
-)
public interface ReqResServiceIface
{
@WebMethod(operationName = "echo")
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceIface.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceIface.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceIface.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -24,14 +24,7 @@
import javax.jws.Oneway;
import javax.jws.WebService;
-import org.jboss.ws.annotation.EndpointConfig;
-
@WebService
-@EndpointConfig
-(
- configName = "Secured WSRM Client",
- configFile = "META-INF/wsrm-jaxws-client-config.xml"
-)
public interface SecuredOneWayServiceIface
{
@Oneway
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceIface.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceIface.java 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceIface.java 2008-01-30 19:01:45 UTC (rev 5551)
@@ -28,14 +28,7 @@
import javax.xml.ws.AsyncHandler;
import javax.xml.ws.Response;
-import org.jboss.ws.annotation.EndpointConfig;
-
@WebService
-@EndpointConfig
-(
- configName = "Secured WSRM Client",
- configFile = "META-INF/wsrm-jaxws-client-config.xml"
-)
public interface SecuredReqResServiceIface
{
@WebMethod(operationName = "echo")
Modified: stack/native/trunk/src/test/resources/common/config/jaxws-endpoint-config.xml
===================================================================
--- stack/native/trunk/src/test/resources/common/config/jaxws-endpoint-config.xml 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/test/resources/common/config/jaxws-endpoint-config.xml 2008-01-30 19:01:45 UTC (rev 5551)
@@ -48,7 +48,6 @@
<delivery-assurance inOrder="true" quality="AtLeastOnce"/>
<backports-server host="realhostname.realdomain" port="9999"/>
<message-retransmission attempts="50" interval="10" timeout="3"/>
- <provider specVersion="http://docs.oasis-open.org/ws-rx/wsrm/200702"/>
<port name="{http://custom/namespace/}Port1">
<delivery-assurance inOrder="false" quality="AtMostOnce"/>
</port>
Modified: stack/native/trunk/src/test/resources/jaxws/wsrm/META-INF/wsrm-jaxws-client-config.xml
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/wsrm/META-INF/wsrm-jaxws-client-config.xml 2008-01-30 15:19:54 UTC (rev 5550)
+++ stack/native/trunk/src/test/resources/jaxws/wsrm/META-INF/wsrm-jaxws-client-config.xml 2008-01-30 19:01:45 UTC (rev 5551)
@@ -7,8 +7,28 @@
xsi:schemaLocation="urn:jboss:jaxws-config:2.0 jaxws-config_2_0.xsd">
<client-config>
- <config-name>Standard WSRM Client</config-name>
+ <config-name>Standard Anonymous WSRM Client</config-name>
<reliable-messaging>
+ <message-retransmission attempts="50" interval="10" timeout="3"/>
+ </reliable-messaging>
+ <post-handler-chains>
+ <javaee:handler-chain>
+ <javaee:protocol-bindings>##SOAP11_HTTP</javaee:protocol-bindings>
+ <javaee:handler>
+ <javaee:handler-name>WSAddressing Handler</javaee:handler-name>
+ <javaee:handler-class>org.jboss.ws.extensions.addressing.jaxws.WSAddressingClientHandler</javaee:handler-class>
+ </javaee:handler>
+ <javaee:handler>
+ <javaee:handler-name>WSRM Handler</javaee:handler-name>
+ <javaee:handler-class>org.jboss.ws.extensions.wsrm.jaxws.RMClientHandler</javaee:handler-class>
+ </javaee:handler>
+ </javaee:handler-chain>
+ </post-handler-chains>
+ </client-config>
+
+ <client-config>
+ <config-name>Standard Addressable WSRM Client</config-name>
+ <reliable-messaging>
<backports-server port="7777"/>
<message-retransmission attempts="50" interval="10" timeout="3"/>
</reliable-messaging>
@@ -28,8 +48,32 @@
</client-config>
<client-config>
- <config-name>Secured WSRM Client</config-name>
+ <config-name>Secured Anonymous WSRM Client</config-name>
<reliable-messaging>
+ <message-retransmission attempts="50" interval="10" timeout="3"/>
+ </reliable-messaging>
+ <post-handler-chains>
+ <javaee:handler-chain>
+ <javaee:protocol-bindings>##SOAP11_HTTP</javaee:protocol-bindings>
+ <javaee:handler>
+ <javaee:handler-name>WSAddressing Handler</javaee:handler-name>
+ <javaee:handler-class>org.jboss.ws.extensions.addressing.jaxws.WSAddressingClientHandler</javaee:handler-class>
+ </javaee:handler>
+ <javaee:handler>
+ <javaee:handler-name>WSRM Handler</javaee:handler-name>
+ <javaee:handler-class>org.jboss.ws.extensions.wsrm.jaxws.RMClientHandler</javaee:handler-class>
+ </javaee:handler>
+ <javaee:handler>
+ <javaee:handler-name>WSSecurity Handler</javaee:handler-name>
+ <javaee:handler-class>org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient</javaee:handler-class>
+ </javaee:handler>
+ </javaee:handler-chain>
+ </post-handler-chains>
+ </client-config>
+
+ <client-config>
+ <config-name>Secured Addressable WSRM Client</config-name>
+ <reliable-messaging>
<backports-server port="7777"/>
<message-retransmission attempts="50" interval="10" timeout="3"/>
</reliable-messaging>
16 years, 11 months
JBossWS SVN: r5550 - stack/native/branches.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2008-01-30 10:19:54 -0500 (Wed, 30 Jan 2008)
New Revision: 5550
Removed:
stack/native/branches/jbossws-native-2.0.1.GA.CP01/
Log:
Remove redundant branch.
16 years, 11 months
JBossWS SVN: r5549 - stack/native/branches.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2008-01-30 10:19:46 -0500 (Wed, 30 Jan 2008)
New Revision: 5549
Removed:
stack/native/branches/jbossws-native-2.0.1.GA.CP/
Log:
Remove redundant branch.
16 years, 11 months
JBossWS SVN: r5548 - legacy/branches/jbossws-1.2.1.GA_CP/build/etc/component-info.
by jbossws-commits@lists.jboss.org
Author: heiko.braun(a)jboss.com
Date: 2008-01-30 09:35:52 -0500 (Wed, 30 Jan 2008)
New Revision: 5548
Modified:
legacy/branches/jbossws-1.2.1.GA_CP/build/etc/component-info/jbossws.xml
Log:
Remove build dependency on jbpm/bpel from component-info.xml
Modified: legacy/branches/jbossws-1.2.1.GA_CP/build/etc/component-info/jbossws.xml
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP/build/etc/component-info/jbossws.xml 2008-01-29 19:46:13 UTC (rev 5547)
+++ legacy/branches/jbossws-1.2.1.GA_CP/build/etc/component-info/jbossws.xml 2008-01-30 14:35:52 UTC (rev 5548)
@@ -25,9 +25,6 @@
<compatible version="@javassist@"/>
<compatible version="@javassist@-brew"/>
</import>
- <import componentref="jbpm/bpel">
- <compatible version="@jbpm-bpel@"/>
- </import>
<import componentref="jboss/jbossws-wsconsume-impl">
<compatible version="@jbossws-wsconsume-impl@"/>
</import>
16 years, 11 months
JBossWS SVN: r5547 - in stack/native/trunk/src: main/java/org/jboss/ws/extensions/wsrm and 9 other directories.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2008-01-29 14:46:13 -0500 (Tue, 29 Jan 2008)
New Revision: 5547
Added:
stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/policy/RM10PolicyAssertionDeployer.java
stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/policy/RM11PolicyAssertionDeployer.java
Removed:
stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/policy/RMPolicyAssertionDeployer.java
Modified:
stack/native/trunk/src/main/java/org/jboss/ws/extensions/policy/deployer/PolicyDeployer.java
stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/RMClientSequence.java
stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/RMHelper.java
stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/config/RMConfig.java
stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/jaxws/RMHandlerAbstractBase.java
stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/server/RMInvocationHandler.java
stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/server/RMServerSequence.java
stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/RMProviderImpl.java
stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/RMProviderImpl.java
stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/RMProvider.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/deserialization/RMDeSerializationTestCase.java
Log:
[JBWS-1975] added support for wsrm10
Modified: stack/native/trunk/src/main/java/org/jboss/ws/extensions/policy/deployer/PolicyDeployer.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/extensions/policy/deployer/PolicyDeployer.java 2008-01-28 16:30:24 UTC (rev 5546)
+++ stack/native/trunk/src/main/java/org/jboss/ws/extensions/policy/deployer/PolicyDeployer.java 2008-01-29 19:46:13 UTC (rev 5547)
@@ -39,7 +39,8 @@
import org.jboss.ws.extensions.policy.deployer.exceptions.UnsupportedAlternative;
import org.jboss.ws.extensions.policy.deployer.exceptions.UnsupportedAssertion;
import org.jboss.ws.extensions.policy.deployer.exceptions.UnsupportedPolicy;
-import org.jboss.ws.extensions.wsrm.policy.RMPolicyAssertionDeployer;
+import org.jboss.ws.extensions.wsrm.policy.RM10PolicyAssertionDeployer;
+import org.jboss.ws.extensions.wsrm.policy.RM11PolicyAssertionDeployer;
import org.jboss.ws.metadata.umdm.ExtensibleMetaData;
/**
@@ -57,7 +58,8 @@
{
me = new PolicyDeployer();
me.domainDeployerMap.put("http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd", WSSecurityAssertionDeployer.class);
- me.domainDeployerMap.put("http://docs.oasis-open.org/ws-rx/wsrmp/200702", RMPolicyAssertionDeployer.class);
+ me.domainDeployerMap.put("http://docs.oasis-open.org/ws-rx/wsrmp/200702", RM11PolicyAssertionDeployer.class);
+ me.domainDeployerMap.put("http://schemas.xmlsoap.org/ws/2005/02/rm/policy", RM10PolicyAssertionDeployer.class);
}
//hide constructor
@@ -85,6 +87,7 @@
PolicyDeployer instance = new PolicyDeployer();
instance.domainDeployerMap.put("http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd", NopAssertionDeployer.class);
instance.domainDeployerMap.put("http://docs.oasis-open.org/ws-rx/wsrmp/200702", NopAssertionDeployer.class);
+ instance.domainDeployerMap.put("http://schemas.xmlsoap.org/ws/2005/02/rm/policy", NopAssertionDeployer.class);
return instance;
}
Modified: stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/RMClientSequence.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/RMClientSequence.java 2008-01-28 16:30:24 UTC (rev 5546)
+++ stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/RMClientSequence.java 2008-01-29 19:46:13 UTC (rev 5547)
@@ -266,17 +266,20 @@
public final void sendCloseMessage()
{
- while (this.isAckRequested())
+ if (RMProvider.get().getMessageFactory().newCloseSequence() != null) // e.g. WS-RM 1.0 doesn't support this protocol message
{
- logger.debug("Waiting till all inbound sequence acknowledgements will be sent");
- sendSequenceAcknowledgementMessage();
+ while (this.isAckRequested())
+ {
+ logger.debug("Waiting till all inbound sequence acknowledgements will be sent");
+ sendSequenceAcknowledgementMessage();
+ }
+ Map<String, Object> wsrmReqCtx = new HashMap<String, Object>();
+ wsrmReqCtx.put(RMConstant.ONE_WAY_OPERATION, false);
+ this.getBindingProvider().getRequestContext().put(RMConstant.REQUEST_CONTEXT, wsrmReqCtx);
+ List msgs = new LinkedList();
+ msgs.add(wsrmConstants.getCloseSequenceQName());
+ sendMessage(RMAddressingConstants.CLOSE_SEQUENCE_WSA_ACTION, wsrmConstants.getCloseSequenceQName(), msgs);
}
- Map<String, Object> wsrmReqCtx = new HashMap<String, Object>();
- wsrmReqCtx.put(RMConstant.ONE_WAY_OPERATION, false);
- this.getBindingProvider().getRequestContext().put(RMConstant.REQUEST_CONTEXT, wsrmReqCtx);
- List msgs = new LinkedList();
- msgs.add(wsrmConstants.getCloseSequenceQName());
- sendMessage(RMAddressingConstants.CLOSE_SEQUENCE_WSA_ACTION, wsrmConstants.getCloseSequenceQName(), msgs);
}
public final void sendTerminateMessage()
@@ -287,6 +290,10 @@
{
msgs.add(wsrmConstants.getSequenceAcknowledgementQName());
}
+ Map<String, Object> wsrmReqCtx = new HashMap<String, Object>();
+ boolean oneWayOperation = RMProvider.get().getMessageFactory().newTerminateSequenceResponse() == null;
+ wsrmReqCtx.put(RMConstant.ONE_WAY_OPERATION, oneWayOperation);
+ this.getBindingProvider().getRequestContext().put(RMConstant.REQUEST_CONTEXT, wsrmReqCtx);
sendMessage(RMAddressingConstants.TERMINATE_SEQUENCE_WSA_ACTION, wsrmConstants.getTerminateSequenceQName(), msgs);
}
Modified: stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/RMHelper.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/RMHelper.java 2008-01-28 16:30:24 UTC (rev 5546)
+++ stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/RMHelper.java 2008-01-29 19:46:13 UTC (rev 5547)
@@ -239,26 +239,33 @@
// register operation metadata with endpoint metadata
endpointMD.addOperation(sequenceAcknowledgementMD);
- // register closeSequence method
- QName closeSequenceQName = rmProvider.getConstants().getCloseSequenceQName();
- OperationMetaData closeSequenceMD = new OperationMetaData(endpointMD, closeSequenceQName, "closeSequence");
- closeSequenceMD.setOneWay(false);
- // setup addressing related data
- AddressingOpMetaExt closeSequenceAddrExt = new AddressingOpMetaExt(new AddressingPropertiesImpl().getNamespaceURI());
- closeSequenceAddrExt.setInboundAction(RMAddressingConstants.CLOSE_SEQUENCE_WSA_ACTION);
- closeSequenceAddrExt.setOutboundAction(RMAddressingConstants.CLOSE_SEQUENCE_RESPONSE_WSA_ACTION);
- closeSequenceMD.addExtension(closeSequenceAddrExt);
- // register operation metadata with endpoint metadata
- endpointMD.addOperation(closeSequenceMD);
+ if (rmProvider.getMessageFactory().newCloseSequence() != null)
+ {
+ // register closeSequence method
+ QName closeSequenceQName = rmProvider.getConstants().getCloseSequenceQName();
+ OperationMetaData closeSequenceMD = new OperationMetaData(endpointMD, closeSequenceQName, "closeSequence");
+ closeSequenceMD.setOneWay(false);
+ // setup addressing related data
+ AddressingOpMetaExt closeSequenceAddrExt = new AddressingOpMetaExt(new AddressingPropertiesImpl().getNamespaceURI());
+ closeSequenceAddrExt.setInboundAction(RMAddressingConstants.CLOSE_SEQUENCE_WSA_ACTION);
+ closeSequenceAddrExt.setOutboundAction(RMAddressingConstants.CLOSE_SEQUENCE_RESPONSE_WSA_ACTION);
+ closeSequenceMD.addExtension(closeSequenceAddrExt);
+ // register operation metadata with endpoint metadata
+ endpointMD.addOperation(closeSequenceMD);
+ }
// register terminateSequence method
QName terminateSequenceQName = rmProvider.getConstants().getTerminateSequenceQName();
OperationMetaData terminateSequenceMD = new OperationMetaData(endpointMD, terminateSequenceQName, "terminateSequence");
- terminateSequenceMD.setOneWay(false);
+ boolean isOneWay = rmProvider.getMessageFactory().newTerminateSequenceResponse() == null;
+ terminateSequenceMD.setOneWay(isOneWay);
// setup addressing related data
AddressingOpMetaExt terminateSequenceAddrExt = new AddressingOpMetaExt(new AddressingPropertiesImpl().getNamespaceURI());
terminateSequenceAddrExt.setInboundAction(RMAddressingConstants.TERMINATE_SEQUENCE_WSA_ACTION);
- terminateSequenceAddrExt.setOutboundAction(RMAddressingConstants.TERMINATE_SEQUENCE_RESPONSE_WSA_ACTION);
+ if (!isOneWay)
+ {
+ terminateSequenceAddrExt.setOutboundAction(RMAddressingConstants.TERMINATE_SEQUENCE_RESPONSE_WSA_ACTION);
+ }
terminateSequenceMD.addExtension(terminateSequenceAddrExt);
// register operation metadata with endpoint metadata
endpointMD.addOperation(terminateSequenceMD);
Modified: stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/config/RMConfig.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/config/RMConfig.java 2008-01-28 16:30:24 UTC (rev 5546)
+++ stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/config/RMConfig.java 2008-01-29 19:46:13 UTC (rev 5547)
@@ -24,6 +24,8 @@
import java.util.List;
import java.util.LinkedList;
+import org.jboss.ws.extensions.wsrm.spi.RMProvider;
+
/**
* Reliable messaging configuration metadata
*
@@ -70,7 +72,14 @@
public final void setProvider(RMProviderConfig provider)
{
- this.provider = provider;
+ if (provider.getSpecVersion().equals(RMProvider.get().getNamespaceURI()))
+ {
+ this.provider = provider;
+ }
+ else
+ {
+ throw new IllegalArgumentException("RM provider namespace mismatch");
+ }
}
public final RMProviderConfig getProvider()
Modified: stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/jaxws/RMHandlerAbstractBase.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/jaxws/RMHandlerAbstractBase.java 2008-01-28 16:30:24 UTC (rev 5546)
+++ stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/jaxws/RMHandlerAbstractBase.java 2008-01-29 19:46:13 UTC (rev 5547)
@@ -67,10 +67,13 @@
try
{
RMSerializable wsrmMsg = RMHandlerHelper.getMessage(msgQN);
- wsrmMsg.deserializeFrom(soapMessage);
- messages.add(msgQN);
- data.put(msgQN, wsrmMsg);
- log.debug(msgQN.getLocalPart() + " WSRM message was deserialized from payload");
+ if (wsrmMsg != null)
+ {
+ wsrmMsg.deserializeFrom(soapMessage);
+ messages.add(msgQN);
+ data.put(msgQN, wsrmMsg);
+ log.debug(msgQN.getLocalPart() + " WSRM message was deserialized from payload");
+ }
}
catch (RMException ignore) {}
}
Added: stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/policy/RM10PolicyAssertionDeployer.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/policy/RM10PolicyAssertionDeployer.java (rev 0)
+++ stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/policy/RM10PolicyAssertionDeployer.java 2008-01-29 19:46:13 UTC (rev 5547)
@@ -0,0 +1,100 @@
+/*
+ * 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.ws.extensions.wsrm.policy;
+
+import org.apache.ws.policy.PrimitiveAssertion;
+import org.jboss.ws.extensions.policy.deployer.domainAssertion.AssertionDeployer;
+import org.jboss.ws.extensions.policy.deployer.exceptions.UnsupportedAssertion;
+import org.jboss.ws.extensions.wsrm.config.RMConfig;
+import org.jboss.ws.extensions.wsrm.config.RMDeliveryAssuranceConfig;
+import org.jboss.ws.extensions.wsrm.config.RMPortConfig;
+import org.jboss.ws.extensions.wsrm.config.RMProviderConfig;
+import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.metadata.umdm.ExtensibleMetaData;
+
+/**
+ * TODO: Add comment
+ *
+ * @author richard.opalka(a)jboss.com
+ *
+ * @since Jan 29, 2008
+ */
+public final class RM10PolicyAssertionDeployer implements AssertionDeployer
+{
+ private static final String WSRM_NS = "http://schemas.xmlsoap.org/ws/2005/02/rm";
+
+ /*
+ * @see org.jboss.ws.extensions.policy.deployer.domainAssertion.AssertionDeployer#deployClientSide(org.apache.ws.policy.PrimitiveAssertion, org.jboss.ws.metadata.umdm.ExtensibleMetaData)
+ */
+ public void deployClientSide(PrimitiveAssertion assertion, ExtensibleMetaData extMetaData)
+ throws UnsupportedAssertion
+ {
+ deploy(assertion, extMetaData);
+ }
+
+ /*
+ * @see org.jboss.ws.extensions.policy.deployer.domainAssertion.AssertionDeployer#deployServerSide(org.apache.ws.policy.PrimitiveAssertion, org.jboss.ws.metadata.umdm.ExtensibleMetaData)
+ */
+ public void deployServerSide(PrimitiveAssertion assertion, ExtensibleMetaData extMetaData)
+ throws UnsupportedAssertion
+ {
+ deploy(assertion, extMetaData);
+ }
+
+ private static void deploy(PrimitiveAssertion assertion, ExtensibleMetaData extMetaData)
+ throws UnsupportedAssertion
+ {
+ if (extMetaData instanceof EndpointMetaData)
+ {
+ EndpointMetaData endpointMD = (EndpointMetaData) extMetaData;
+
+ // prepare wsrm metadata
+ RMConfig rmMD = endpointMD.getConfig().getRMMetaData();
+ if (rmMD == null)
+ {
+ rmMD = new RMConfig();
+ endpointMD.getConfig().setRMMetaData(rmMD);
+ }
+
+ // construct new port metadata
+ RMPortConfig portMD = new RMPortConfig();
+ portMD.setPortName(endpointMD.getPortName());
+ RMDeliveryAssuranceConfig deliveryMD = new RMDeliveryAssuranceConfig();
+ deliveryMD.setInOrder("false");
+ deliveryMD.setQuality("AtMostOnce");
+ portMD.setDeliveryAssurance(deliveryMD);
+
+ // ensure port does not exists yet
+ for (RMPortConfig pMD : rmMD.getPorts())
+ {
+ assert ! pMD.getPortName().equals(portMD.getPortName());
+ }
+
+ // set up port WSRMP metadata
+ rmMD.getPorts().add(portMD);
+ RMProviderConfig providerMD = new RMProviderConfig();
+ providerMD.setSpecVersion(WSRM_NS);
+ rmMD.setProvider(providerMD);
+ }
+ }
+
+}
Property changes on: stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/policy/RM10PolicyAssertionDeployer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/policy/RM11PolicyAssertionDeployer.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/policy/RM11PolicyAssertionDeployer.java (rev 0)
+++ stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/policy/RM11PolicyAssertionDeployer.java 2008-01-29 19:46:13 UTC (rev 5547)
@@ -0,0 +1,180 @@
+/*
+ * 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.ws.extensions.wsrm.policy;
+
+import java.util.LinkedList;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+import org.apache.ws.policy.AndCompositeAssertion;
+import org.apache.ws.policy.Policy;
+import org.apache.ws.policy.PrimitiveAssertion;
+import org.apache.ws.policy.XorCompositeAssertion;
+import org.jboss.ws.extensions.policy.deployer.domainAssertion.AssertionDeployer;
+import org.jboss.ws.extensions.policy.deployer.exceptions.UnsupportedAssertion;
+import org.jboss.ws.extensions.wsrm.config.RMDeliveryAssuranceConfig;
+import org.jboss.ws.extensions.wsrm.config.RMConfig;
+import org.jboss.ws.extensions.wsrm.config.RMPortConfig;
+import org.jboss.ws.extensions.wsrm.config.RMProviderConfig;
+import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.metadata.umdm.ExtensibleMetaData;
+
+/**
+ * Reliable messaging policy deployer
+ *
+ * @author richard.opalka(a)jboss.com
+ */
+public final class RM11PolicyAssertionDeployer implements AssertionDeployer
+{
+
+ private static final String WSRMP_NS = "http://docs.oasis-open.org/ws-rx/wsrmp/200702";
+ private static final String WSRM_NS = "http://docs.oasis-open.org/ws-rx/wsrm/200702";
+ private static final QName EXACTLY_ONCE = new QName(WSRMP_NS, "ExactlyOnce");
+ private static final QName AT_LEAST_ONCE = new QName(WSRMP_NS, "AtLeastOnce");
+ private static final QName AT_MOST_ONCE = new QName(WSRMP_NS, "AtMostOnce");
+ private static final QName IN_ORDER = new QName(WSRMP_NS, "InOrder");
+ private static final String FALSE = "false";
+ private static final String TRUE = "true";
+
+ /*
+ * @see org.jboss.ws.extensions.policy.deployer.domainAssertion.AssertionDeployer#deployClientSide(org.apache.ws.policy.PrimitiveAssertion, org.jboss.ws.metadata.umdm.ExtensibleMetaData)
+ */
+ public void deployClientSide(PrimitiveAssertion assertion, ExtensibleMetaData extMetaData)
+ throws UnsupportedAssertion
+ {
+ deploy(assertion, extMetaData);
+ }
+
+ /*
+ * @see org.jboss.ws.extensions.policy.deployer.domainAssertion.AssertionDeployer#deployServerSide(org.apache.ws.policy.PrimitiveAssertion, org.jboss.ws.metadata.umdm.ExtensibleMetaData)
+ */
+ public void deployServerSide(PrimitiveAssertion assertion, ExtensibleMetaData extMetaData)
+ throws UnsupportedAssertion
+ {
+ deploy(assertion, extMetaData);
+ }
+
+ private static void deploy(PrimitiveAssertion assertion, ExtensibleMetaData extMetaData)
+ throws UnsupportedAssertion
+ {
+ if (extMetaData instanceof EndpointMetaData)
+ {
+ EndpointMetaData endpointMD = (EndpointMetaData) extMetaData;
+
+ // prepare wsrm metadata
+ RMConfig rmMD = endpointMD.getConfig().getRMMetaData();
+ if (rmMD == null)
+ {
+ rmMD = new RMConfig();
+ endpointMD.getConfig().setRMMetaData(rmMD);
+ }
+
+ // construct new port metadata
+ RMPortConfig portMD = new RMPortConfig();
+ portMD.setPortName(endpointMD.getPortName());
+ List<PrimitiveAssertion> wsrmpAssertions = getWSRMPAssertions(assertion);
+ portMD.setDeliveryAssurance(constructDeliveryAssurance(wsrmpAssertions));
+
+ // ensure port does not exists yet
+ for (RMPortConfig pMD : rmMD.getPorts())
+ {
+ assert ! pMD.getPortName().equals(portMD.getPortName());
+ }
+
+ // set up port WSRMP metadata
+ rmMD.getPorts().add(portMD);
+ RMProviderConfig providerMD = new RMProviderConfig();
+ providerMD.setSpecVersion(WSRM_NS);
+ rmMD.setProvider(providerMD);
+ }
+ }
+
+ private static RMDeliveryAssuranceConfig constructDeliveryAssurance(List<PrimitiveAssertion> assertions)
+ throws UnsupportedAssertion
+ {
+ if (assertions.size() == 1)
+ {
+ QName assertionQN = assertions.get(0).getName();
+ assertIsWSRMPAssertion(assertionQN);
+
+ RMDeliveryAssuranceConfig deliveryMD = new RMDeliveryAssuranceConfig();
+ deliveryMD.setInOrder(FALSE);
+ deliveryMD.setQuality(assertionQN.getLocalPart());
+ return deliveryMD;
+ }
+ if (assertions.size() == 2)
+ {
+ QName firstAssertionQN = assertions.get(0).getName();
+ assertIsWSRMPAssertion(firstAssertionQN);
+ QName secondAssertionQN = assertions.get(1).getName();
+ assertIsWSRMPAssertion(secondAssertionQN);
+
+ boolean firstIsInOrder = firstAssertionQN.equals(IN_ORDER);
+
+ RMDeliveryAssuranceConfig deliveryMD = new RMDeliveryAssuranceConfig();
+ deliveryMD.setInOrder(TRUE);
+ if (firstIsInOrder)
+ {
+ deliveryMD.setQuality(secondAssertionQN.getLocalPart());
+ }
+ else
+ {
+ deliveryMD.setQuality(firstAssertionQN.getLocalPart());
+ }
+
+ return deliveryMD;
+ }
+
+ throw new IllegalArgumentException();
+ }
+
+ private static void assertIsWSRMPAssertion(QName assertionQN) throws UnsupportedAssertion
+ {
+ if (assertionQN.equals(EXACTLY_ONCE)
+ || assertionQN.equals(AT_LEAST_ONCE)
+ || assertionQN.equals(AT_MOST_ONCE)
+ || assertionQN.equals(IN_ORDER))
+ {
+ return; // recognized assertion - silently return
+ }
+
+ throw new UnsupportedAssertion();
+ }
+
+ private static List<PrimitiveAssertion> getWSRMPAssertions(PrimitiveAssertion assertion)
+ {
+ Policy policy = (Policy)assertion.getTerms().get(0);
+ XorCompositeAssertion xor = (XorCompositeAssertion)policy.getTerms().get(0);
+ AndCompositeAssertion and = (AndCompositeAssertion)xor.getTerms().get(0);
+ List<?> primitiveAssertions = and.getTerms();
+
+ List<PrimitiveAssertion> retVal = new LinkedList<PrimitiveAssertion>();
+ for (int i = 0; i < primitiveAssertions.size(); i++)
+ {
+ retVal.add((PrimitiveAssertion)primitiveAssertions.get(i));
+ }
+
+ return retVal;
+ }
+
+}
Property changes on: stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/policy/RM11PolicyAssertionDeployer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Deleted: stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/policy/RMPolicyAssertionDeployer.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/policy/RMPolicyAssertionDeployer.java 2008-01-28 16:30:24 UTC (rev 5546)
+++ stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/policy/RMPolicyAssertionDeployer.java 2008-01-29 19:46:13 UTC (rev 5547)
@@ -1,180 +0,0 @@
-/*
- * 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.ws.extensions.wsrm.policy;
-
-import java.util.LinkedList;
-import java.util.List;
-
-import javax.xml.namespace.QName;
-
-import org.apache.ws.policy.AndCompositeAssertion;
-import org.apache.ws.policy.Policy;
-import org.apache.ws.policy.PrimitiveAssertion;
-import org.apache.ws.policy.XorCompositeAssertion;
-import org.jboss.ws.extensions.policy.deployer.domainAssertion.AssertionDeployer;
-import org.jboss.ws.extensions.policy.deployer.exceptions.UnsupportedAssertion;
-import org.jboss.ws.extensions.wsrm.config.RMDeliveryAssuranceConfig;
-import org.jboss.ws.extensions.wsrm.config.RMConfig;
-import org.jboss.ws.extensions.wsrm.config.RMPortConfig;
-import org.jboss.ws.extensions.wsrm.config.RMProviderConfig;
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
-import org.jboss.ws.metadata.umdm.ExtensibleMetaData;
-
-/**
- * Reliable messaging policy deployer
- *
- * @author richard.opalka(a)jboss.com
- */
-public final class RMPolicyAssertionDeployer implements AssertionDeployer
-{
-
- private static final String WSRMP_NS = "http://docs.oasis-open.org/ws-rx/wsrmp/200702";
- private static final String WSRM_NS = "http://docs.oasis-open.org/ws-rx/wsrm/200702";
- private static final QName EXACTLY_ONCE = new QName(WSRMP_NS, "ExactlyOnce");
- private static final QName AT_LEAST_ONCE = new QName(WSRMP_NS, "AtLeastOnce");
- private static final QName AT_MOST_ONCE = new QName(WSRMP_NS, "AtMostOnce");
- private static final QName IN_ORDER = new QName(WSRMP_NS, "InOrder");
- private static final String FALSE = "false";
- private static final String TRUE = "true";
-
- /*
- * @see org.jboss.ws.extensions.policy.deployer.domainAssertion.AssertionDeployer#deployClientSide(org.apache.ws.policy.PrimitiveAssertion, org.jboss.ws.metadata.umdm.ExtensibleMetaData)
- */
- public void deployClientSide(PrimitiveAssertion assertion, ExtensibleMetaData extMetaData)
- throws UnsupportedAssertion
- {
- deploy(assertion, extMetaData);
- }
-
- /*
- * @see org.jboss.ws.extensions.policy.deployer.domainAssertion.AssertionDeployer#deployServerSide(org.apache.ws.policy.PrimitiveAssertion, org.jboss.ws.metadata.umdm.ExtensibleMetaData)
- */
- public void deployServerSide(PrimitiveAssertion assertion, ExtensibleMetaData extMetaData)
- throws UnsupportedAssertion
- {
- deploy(assertion, extMetaData);
- }
-
- private static void deploy(PrimitiveAssertion assertion, ExtensibleMetaData extMetaData)
- throws UnsupportedAssertion
- {
- if (extMetaData instanceof EndpointMetaData)
- {
- EndpointMetaData endpointMD = (EndpointMetaData) extMetaData;
-
- // prepare wsrm metadata
- RMConfig rmMD = endpointMD.getConfig().getRMMetaData();
- if (rmMD == null)
- {
- rmMD = new RMConfig();
- endpointMD.getConfig().setRMMetaData(rmMD);
- }
-
- // construct new port metadata
- RMPortConfig portMD = new RMPortConfig();
- portMD.setPortName(endpointMD.getPortName());
- List<PrimitiveAssertion> wsrmpAssertions = getWSRMPAssertions(assertion);
- portMD.setDeliveryAssurance(constructDeliveryAssurance(wsrmpAssertions));
-
- // ensure port does not exists yet
- for (RMPortConfig pMD : rmMD.getPorts())
- {
- assert ! pMD.getPortName().equals(portMD.getPortName());
- }
-
- // set up port WSRMP metadata
- rmMD.getPorts().add(portMD);
- RMProviderConfig providerMD = new RMProviderConfig();
- providerMD.setSpecVersion(WSRM_NS);
- rmMD.setProvider(providerMD);
- }
- }
-
- private static RMDeliveryAssuranceConfig constructDeliveryAssurance(List<PrimitiveAssertion> assertions)
- throws UnsupportedAssertion
- {
- if (assertions.size() == 1)
- {
- QName assertionQN = assertions.get(0).getName();
- assertIsWSRMPAssertion(assertionQN);
-
- RMDeliveryAssuranceConfig deliveryMD = new RMDeliveryAssuranceConfig();
- deliveryMD.setInOrder(FALSE);
- deliveryMD.setQuality(assertionQN.getLocalPart());
- return deliveryMD;
- }
- if (assertions.size() == 2)
- {
- QName firstAssertionQN = assertions.get(0).getName();
- assertIsWSRMPAssertion(firstAssertionQN);
- QName secondAssertionQN = assertions.get(1).getName();
- assertIsWSRMPAssertion(secondAssertionQN);
-
- boolean firstIsInOrder = firstAssertionQN.equals(IN_ORDER);
-
- RMDeliveryAssuranceConfig deliveryMD = new RMDeliveryAssuranceConfig();
- deliveryMD.setInOrder(TRUE);
- if (firstIsInOrder)
- {
- deliveryMD.setQuality(secondAssertionQN.getLocalPart());
- }
- else
- {
- deliveryMD.setQuality(firstAssertionQN.getLocalPart());
- }
-
- return deliveryMD;
- }
-
- throw new IllegalArgumentException();
- }
-
- private static void assertIsWSRMPAssertion(QName assertionQN) throws UnsupportedAssertion
- {
- if (assertionQN.equals(EXACTLY_ONCE)
- || assertionQN.equals(AT_LEAST_ONCE)
- || assertionQN.equals(AT_MOST_ONCE)
- || assertionQN.equals(IN_ORDER))
- {
- return; // recognized assertion - silently return
- }
-
- throw new UnsupportedAssertion();
- }
-
- private static List<PrimitiveAssertion> getWSRMPAssertions(PrimitiveAssertion assertion)
- {
- Policy policy = (Policy)assertion.getTerms().get(0);
- XorCompositeAssertion xor = (XorCompositeAssertion)policy.getTerms().get(0);
- AndCompositeAssertion and = (AndCompositeAssertion)xor.getTerms().get(0);
- List<?> primitiveAssertions = and.getTerms();
-
- List<PrimitiveAssertion> retVal = new LinkedList<PrimitiveAssertion>();
- for (int i = 0; i < primitiveAssertions.size(); i++)
- {
- retVal.add((PrimitiveAssertion)primitiveAssertions.get(i));
- }
-
- return retVal;
- }
-
-}
Modified: stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/server/RMInvocationHandler.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/server/RMInvocationHandler.java 2008-01-28 16:30:24 UTC (rev 5546)
+++ stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/server/RMInvocationHandler.java 2008-01-29 19:46:13 UTC (rev 5547)
@@ -114,7 +114,7 @@
rmResponseContext.put(RMConstant.PROTOCOL_MESSAGES, protocolMessages);
msgContext.remove(RMConstant.RESPONSE_CONTEXT);
RMServerSequence sequence = null;
- boolean isSequenceAcknowledgementOnly = true;
+ boolean isOneWayOperation = true;
if (RMHelper.isCreateSequence(rmReqProps))
{
@@ -122,7 +122,7 @@
sequences.add(sequence);
protocolMessages.add(rmConstants.getCreateSequenceResponseQName());
rmResponseContext.put(RMConstant.SEQUENCE_REFERENCE, sequence);
- isSequenceAcknowledgementOnly = false;
+ isOneWayOperation = false;
}
if (RMHelper.isCloseSequence(rmReqProps))
@@ -140,7 +140,7 @@
protocolMessages.add(rmConstants.getCloseSequenceResponseQName());
protocolMessages.add(rmConstants.getSequenceAcknowledgementQName());
rmResponseContext.put(RMConstant.SEQUENCE_REFERENCE, sequence);
- isSequenceAcknowledgementOnly = false;
+ isOneWayOperation = false;
}
if (RMHelper.isSequenceAcknowledgement(rmReqProps))
@@ -175,10 +175,17 @@
}
sequences.remove(sequence);
- protocolMessages.add(rmConstants.getTerminateSequenceResponseQName());
- protocolMessages.add(rmConstants.getSequenceAcknowledgementQName());
- rmResponseContext.put(RMConstant.SEQUENCE_REFERENCE, sequence);
- isSequenceAcknowledgementOnly = false;
+ if (RMProvider.get().getMessageFactory().newTerminateSequenceResponse() != null)
+ {
+ protocolMessages.add(rmConstants.getTerminateSequenceResponseQName());
+ protocolMessages.add(rmConstants.getSequenceAcknowledgementQName());
+ rmResponseContext.put(RMConstant.SEQUENCE_REFERENCE, sequence);
+ isOneWayOperation = false;
+ }
+ else
+ {
+ return null; // no WS-RM context propagated
+ }
}
if (RMHelper.isSequence(rmReqProps))
@@ -217,10 +224,10 @@
}
rmResponseContext.put(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_OUTBOUND, addressingProps);
}
- isSequenceAcknowledgementOnly = false;
+ isOneWayOperation = false;
}
- rmResponseContext.put(RMConstant.ONE_WAY_OPERATION, isSequenceAcknowledgementOnly);
+ rmResponseContext.put(RMConstant.ONE_WAY_OPERATION, isOneWayOperation);
return rmResponseContext;
}
@@ -245,9 +252,12 @@
private void setupResponseContext(Map<String, Object> rmResponseContext)
{
- CommonMessageContext msgCtx = MessageContextAssociation.peekMessageContext();
- msgCtx.put(RMConstant.RESPONSE_CONTEXT, rmResponseContext);
- msgCtx.put(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_OUTBOUND, rmResponseContext.get(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_OUTBOUND));
+ if (rmResponseContext != null)
+ {
+ CommonMessageContext msgCtx = MessageContextAssociation.peekMessageContext();
+ msgCtx.put(RMConstant.RESPONSE_CONTEXT, rmResponseContext);
+ msgCtx.put(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_OUTBOUND, rmResponseContext.get(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_OUTBOUND));
+ }
}
public final InvocationHandler getDelegate()
Modified: stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/server/RMServerSequence.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/server/RMServerSequence.java 2008-01-28 16:30:24 UTC (rev 5546)
+++ stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/server/RMServerSequence.java 2008-01-29 19:46:13 UTC (rev 5547)
@@ -114,5 +114,10 @@
{
this.closed = true;
}
+
+ public String toString()
+ {
+ return this.inboundId + " - " + this.outboundId;
+ }
}
Modified: stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/RMProviderImpl.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/RMProviderImpl.java 2008-01-28 16:30:24 UTC (rev 5546)
+++ stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/RMProviderImpl.java 2008-01-29 19:46:13 UTC (rev 5547)
@@ -33,11 +33,11 @@
public final class RMProviderImpl extends RMProvider
{
- private static final String IMPLEMENTATION_VERSION = "http://schemas.xmlsoap.org/ws/2005/02/rm";
+ public static final String IMPLEMENTATION_VERSION = "http://schemas.xmlsoap.org/ws/2005/02/rm";
private static final RMConstants CONSTANTS = new RMConstantsImpl("wsrm10", IMPLEMENTATION_VERSION);
private static final RMProvider INSTANCE = new RMProviderImpl();
- private RMProviderImpl()
+ public RMProviderImpl()
{
// forbidden inheritance
}
Modified: stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/RMProviderImpl.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/RMProviderImpl.java 2008-01-28 16:30:24 UTC (rev 5546)
+++ stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/RMProviderImpl.java 2008-01-29 19:46:13 UTC (rev 5547)
@@ -33,11 +33,11 @@
public final class RMProviderImpl extends RMProvider
{
- private static final String IMPLEMENTATION_VERSION = "http://docs.oasis-open.org/ws-rx/wsrm/200702";
+ public static final String IMPLEMENTATION_VERSION = "http://docs.oasis-open.org/ws-rx/wsrm/200702";
private static final RMConstants CONSTANTS = new RMConstantsImpl("wsrm11",IMPLEMENTATION_VERSION);
private static final RMProvider INSTANCE = new RMProviderImpl();
- private RMProviderImpl()
+ public RMProviderImpl()
{
// forbidden inheritance
}
Modified: stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/RMProvider.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/RMProvider.java 2008-01-28 16:30:24 UTC (rev 5546)
+++ stack/native/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/RMProvider.java 2008-01-29 19:46:13 UTC (rev 5547)
@@ -21,8 +21,7 @@
*/
package org.jboss.ws.extensions.wsrm.spi;
-import java.util.Map;
-import java.util.HashMap;
+import org.jboss.wsf.spi.util.ServiceLoader;
/**
* WS-RM Provider SPI facade. Each WS-RM provider must override this class.
@@ -32,20 +31,10 @@
public abstract class RMProvider
{
- private static final Map<String, RMProvider> REGISTERED_PROVIDERS = new HashMap<String, RMProvider>();
-
- static
- {
- REGISTERED_PROVIDERS.put(
- org.jboss.ws.extensions.wsrm.spec200702.RMProviderImpl.getInstance().getNamespaceURI(),
- org.jboss.ws.extensions.wsrm.spec200702.RMProviderImpl.getInstance()
- );
- REGISTERED_PROVIDERS.put(
- org.jboss.ws.extensions.wsrm.spec200502.RMProviderImpl.getInstance().getNamespaceURI(),
- org.jboss.ws.extensions.wsrm.spec200502.RMProviderImpl.getInstance()
- );
- }
-
+ private static final RMProvider rmProviderImpl = (RMProvider) ServiceLoader.loadService(
+ RMProvider.class.getName(),
+ org.jboss.ws.extensions.wsrm.spec200702.RMProviderImpl.class.getName());
+
/**
* Must be overriden in subclasses
* @param targetNamespace
@@ -72,23 +61,9 @@
*/
public abstract RMConstants getConstants();
- /**
- * Gets WS-RM provider by <b>wsrmNamespace</b>
- * @param namespace associated with the WS-RM provider
- * @return WS-RM provider instance
- * @throws IllegalArgumentException if specified <b>wsrmNamespace</b> has no associated WS-RM provider
- */
- public static final RMProvider getInstance(String wsrmNamespace)
- {
- if (!REGISTERED_PROVIDERS.keySet().contains(wsrmNamespace))
- throw new IllegalArgumentException("No WS-RM provider registered for namespace " + wsrmNamespace);
-
- return REGISTERED_PROVIDERS.get(wsrmNamespace);
- }
-
public static final RMProvider get()
{
- return org.jboss.ws.extensions.wsrm.spec200702.RMProviderImpl.getInstance();
+ return rmProviderImpl;
}
}
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/deserialization/RMDeSerializationTestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/deserialization/RMDeSerializationTestCase.java 2008-01-28 16:30:24 UTC (rev 5546)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/deserialization/RMDeSerializationTestCase.java 2008-01-29 19:46:13 UTC (rev 5547)
@@ -48,8 +48,7 @@
*/
public final class RMDeSerializationTestCase extends JBossWSTest
{
- private static final String WSRM_200702_NS = "http://docs.oasis-open.org/ws-rx/wsrm/200702";
- private static final RMMessageFactory WSRM_200702_FACTORY = RMProvider.getInstance(WSRM_200702_NS).getMessageFactory();
+ private static final RMMessageFactory WSRM_200702_FACTORY = RMProvider.get().getMessageFactory();
private static final String CREATE_SEQUENCE_MESSAGE
= "<soap:Envelope "
16 years, 11 months
JBossWS SVN: r5546 - in framework/trunk/hudson/hudson-home/jobs: Native-ALL and 1 other directories.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2008-01-28 11:30:24 -0500 (Mon, 28 Jan 2008)
New Revision: 5546
Modified:
framework/trunk/hudson/hudson-home/jobs/AS-Tests-ALL/config.xml
framework/trunk/hudson/hudson-home/jobs/Native-ALL/config.xml
framework/trunk/hudson/hudson-home/jobs/Release-Matrix-Step1/config.xml
Log:
[JBWS-1962] remove unnecessary dependencies
Modified: framework/trunk/hudson/hudson-home/jobs/AS-Tests-ALL/config.xml
===================================================================
--- framework/trunk/hudson/hudson-home/jobs/AS-Tests-ALL/config.xml 2008-01-28 16:15:02 UTC (rev 5545)
+++ framework/trunk/hudson/hudson-home/jobs/AS-Tests-ALL/config.xml 2008-01-28 16:30:24 UTC (rev 5546)
@@ -3,7 +3,7 @@
<builders class="vector"/>
<publishers class="vector">
<hudson.tasks.BuildTrigger>
- <childProjects>AS-Tests-AS-4.2.1, AS-Tests-AS-4.2.2, AS-Tests-AS-4.2.3, AS-Tests-AS-5.0.0, TCK-1.4</childProjects>
+ <childProjects>AS-Tests-AS-4.2.1, AS-Tests-AS-4.2.2, AS-Tests-AS-4.2.3, AS-Tests-AS-5.0.0</childProjects>
</hudson.tasks.BuildTrigger>
</publishers>
<buildWrappers class="vector"/>
Modified: framework/trunk/hudson/hudson-home/jobs/Native-ALL/config.xml
===================================================================
--- framework/trunk/hudson/hudson-home/jobs/Native-ALL/config.xml 2008-01-28 16:15:02 UTC (rev 5545)
+++ framework/trunk/hudson/hudson-home/jobs/Native-ALL/config.xml 2008-01-28 16:30:24 UTC (rev 5546)
@@ -6,8 +6,7 @@
<childProjects>
Native-Core-AS-4.0.5, Native-Core-AS-4.0.5-No-EJB3, Native-Core-AS-4.2.1, Native-Core-AS-4.2.2, Native-Core-AS-4.2.2-JDK6, Native-Core-AS-4.2.3, Native-Core-AS-4.2.3-JDK6, Native-Core-AS-5.0.0,
Native-Distro-AS-4.0.5, Native-Distro-AS-4.0.5-No-EJB3, Native-Distro-AS-4.2.1, Native-Distro-AS-4.2.2, Native-Distro-AS-4.2.2-JDK6, Native-Distro-AS-4.2.3, Native-Distro-AS-4.2.3-JDK6, Native-Distro-AS-5.0.0,
- Native-Integration-AS-4.0.5, Native-Integration-AS-4.0.5-No-EJB3, Native-Integration-AS-4.2.1, Native-Integration-AS-4.2.2, Native-Integration-AS-4.2.3, Native-Integration-AS-5.0.0,
- Native-Tck14-Jaxr-AS-4.2.3, Native-Tck14-Jaxrpc-AS-4.2.3, Native-Tck14-Saaj-AS-4.2.3, Native-Tck14-Webservices-AS-4.2.3
+ Native-Integration-AS-4.0.5, Native-Integration-AS-4.0.5-No-EJB3, Native-Integration-AS-4.2.1, Native-Integration-AS-4.2.2, Native-Integration-AS-4.2.3, Native-Integration-AS-5.0.0
</childProjects>
</hudson.tasks.BuildTrigger>
</publishers>
Modified: framework/trunk/hudson/hudson-home/jobs/Release-Matrix-Step1/config.xml
===================================================================
--- framework/trunk/hudson/hudson-home/jobs/Release-Matrix-Step1/config.xml 2008-01-28 16:15:02 UTC (rev 5545)
+++ framework/trunk/hudson/hudson-home/jobs/Release-Matrix-Step1/config.xml 2008-01-28 16:30:24 UTC (rev 5546)
@@ -3,7 +3,7 @@
<builders class="vector"/>
<publishers class="vector">
<hudson.tasks.BuildTrigger>
- <childProjects>AS-4.0.5, AS-4.2.1, AS-4.2.2, AS-4.2.3, AS-5.0.0, TCK-1.4</childProjects>
+ <childProjects>AS-4.0.5, AS-4.2.1, AS-4.2.2, AS-4.2.3, AS-5.0.0</childProjects>
</hudson.tasks.BuildTrigger>
</publishers>
<buildWrappers class="vector"/>
@@ -24,4 +24,4 @@
<properties/>
<description>Build the relase matrix target containers.</description>
<actions class="vector"/>
-</project>
\ No newline at end of file
+</project>
16 years, 11 months