JBossWS SVN: r5944 - stack/native/trunk/src/main/distro.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2008-03-12 12:03:34 -0400 (Wed, 12 Mar 2008)
New Revision: 5944
Modified:
stack/native/trunk/src/main/distro/Install.txt
Log:
[JBWS-2050] update
Modified: stack/native/trunk/src/main/distro/Install.txt
===================================================================
--- stack/native/trunk/src/main/distro/Install.txt 2008-03-12 15:14:57 UTC (rev 5943)
+++ stack/native/trunk/src/main/distro/Install.txt 2008-03-12 16:03:34 UTC (rev 5944)
@@ -16,7 +16,8 @@
ant deploy-jboss421
ant deploy-jboss422
ant deploy-jboss423
- ant deploy-jboss500
+ ant deploy-jboss500 // for JBoss AS Beta 4
+ ant deploy-jboss501 // for JBoss AS Trunk
Please consult the wiki for detailed up to date install instructions
http://labs.jboss.com/portal/jbossws/
18 years, 1 month
JBossWS SVN: r5943 - in stack/native/branches/tdiesler/trunk: ant-import and 7 other directories.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-03-12 11:14:57 -0400 (Wed, 12 Mar 2008)
New Revision: 5943
Added:
stack/native/branches/tdiesler/trunk/src/main/java/org/jboss/ws/feature/FastInfosetFeature.java
stack/native/branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/fastinfoset/
stack/native/branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/fastinfoset/FastInfoset.java
stack/native/branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/fastinfoset/FastInfosetAPITestCase.java
stack/native/branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/fastinfoset/FastInfosetEndpoint.java
stack/native/branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/fastinfoset/FastInfosetTestCase.java
stack/native/branches/tdiesler/trunk/src/test/resources/jaxws/fastinfoset/
stack/native/branches/tdiesler/trunk/src/test/resources/jaxws/fastinfoset/WEB-INF/
Removed:
stack/native/branches/tdiesler/trunk/src/test/resources/jaxws/fastinfoset/WEB-INF/wsdl/
Modified:
stack/native/branches/tdiesler/trunk/.classpath
stack/native/branches/tdiesler/trunk/ant-import-tests/build-jars-jaxws.xml
stack/native/branches/tdiesler/trunk/ant-import-tests/build-testsuite.xml
stack/native/branches/tdiesler/trunk/ant-import/build-thirdparty.xml
stack/native/branches/tdiesler/trunk/ant-import/jbossws-deploy-macros.xml
stack/native/branches/tdiesler/trunk/src/test/resources/jaxws/fastinfoset/WEB-INF/web.xml
stack/native/branches/tdiesler/trunk/version.properties
Log:
Add fastinfoset testcases
Modified: stack/native/branches/tdiesler/trunk/.classpath
===================================================================
--- stack/native/branches/tdiesler/trunk/.classpath 2008-03-12 13:50:18 UTC (rev 5942)
+++ stack/native/branches/tdiesler/trunk/.classpath 2008-03-12 15:14:57 UTC (rev 5943)
@@ -39,5 +39,6 @@
<classpathentry kind="lib" path="thirdparty/jboss-jaxb-intros.jar"/>
<classpathentry kind="lib" path="thirdparty/jbossws-common.jar" sourcepath="thirdparty/jbossws-common-src.zip"/>
<classpathentry kind="lib" path="thirdparty/jbossws-spi.jar" sourcepath="thirdparty/jbossws-spi-src.zip"/>
+ <classpathentry kind="lib" path="thirdparty/FastInfoset.jar"/>
<classpathentry kind="output" path="output/eclipse"/>
</classpath>
Modified: stack/native/branches/tdiesler/trunk/ant-import/build-thirdparty.xml
===================================================================
--- stack/native/branches/tdiesler/trunk/ant-import/build-thirdparty.xml 2008-03-12 13:50:18 UTC (rev 5942)
+++ stack/native/branches/tdiesler/trunk/ant-import/build-thirdparty.xml 2008-03-12 15:14:57 UTC (rev 5943)
@@ -111,6 +111,7 @@
<get src="${jboss.repository}/oswego-concurrent/${oswego-concurrent}/lib/concurrent.jar" dest="${thirdparty.dir}/concurrent.jar" usetimestamp="true" verbose="true"/>
<get src="${jboss.repository}/qdox/${qdox}/lib/qdox.jar" dest="${thirdparty.dir}/qdox.jar" usetimestamp="true" verbose="true"/>
<get src="${jboss.repository}/stax-api/${stax-api}/lib/stax-api.jar" dest="${thirdparty.dir}/stax-api.jar" usetimestamp="true" verbose="true"/>
+ <get src="${jboss.repository}/sun-fi/${sun-fi}/lib/FastInfoset.jar" dest="${thirdparty.dir}/FastInfoset.jar" usetimestamp="true" verbose="true"/>
<get src="${jboss.repository}/sun-jaf/${sun-jaf}/lib/activation.jar" dest="${thirdparty.dir}/activation.jar" usetimestamp="true" verbose="true"/>
<get src="${jboss.repository}/sun-javamail/${sun-javamail}/lib/mail.jar" dest="${thirdparty.dir}/mail.jar" usetimestamp="true" verbose="true"/>
<get src="${jboss.repository}/sun-jaxb/${sun-jaxb}/lib/jaxb-api.jar" dest="${thirdparty.dir}/jaxb-api.jar" usetimestamp="true" verbose="true"/>
Modified: stack/native/branches/tdiesler/trunk/ant-import/jbossws-deploy-macros.xml
===================================================================
--- stack/native/branches/tdiesler/trunk/ant-import/jbossws-deploy-macros.xml 2008-03-12 13:50:18 UTC (rev 5942)
+++ stack/native/branches/tdiesler/trunk/ant-import/jbossws-deploy-macros.xml 2008-03-12 15:14:57 UTC (rev 5943)
@@ -30,6 +30,7 @@
</patternset>
<patternset id="jbossws.client.patternset">
+ <include name="**/FastInfoset.jar"/>
<include name="**/jbossws-client.jar"/>
<include name="**/jbossws-common.jar"/>
<include name="**/jbossws-framework.jar"/>
@@ -75,6 +76,7 @@
</patternset>
<patternset id="jbossws.service.lib.patternset">
+ <include name="**/FastInfoset.jar"/>
<include name="**/jboss-jaxb-intros.jar"/>
<include name="**/jbossws-core.jar"/>
<include name="**/policy.jar"/>
Modified: stack/native/branches/tdiesler/trunk/ant-import-tests/build-jars-jaxws.xml
===================================================================
--- stack/native/branches/tdiesler/trunk/ant-import-tests/build-jars-jaxws.xml 2008-03-12 13:50:18 UTC (rev 5942)
+++ stack/native/branches/tdiesler/trunk/ant-import-tests/build-jars-jaxws.xml 2008-03-12 15:14:57 UTC (rev 5943)
@@ -106,6 +106,13 @@
</fileset>
</jar>
+ <!-- jaxws-fastinfoset -->
+ <war warfile="${tests.output.dir}/libs/jaxws-fastinfoset.war" webxml="${tests.output.dir}/resources/jaxws/fastinfoset/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/classes">
+ <include name="org/jboss/test/ws/jaxws/fastinfoset/FastInfosetEndpoint.class"/>
+ </classes>
+ </war>
+
<!-- jaxws-handlerlifecycle -->
<war warfile="${tests.output.dir}/libs/jaxws-handlerlifecycle.war" webxml="${tests.output.dir}/resources/jaxws/handlerlifecycle/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/classes">
Modified: stack/native/branches/tdiesler/trunk/ant-import-tests/build-testsuite.xml
===================================================================
--- stack/native/branches/tdiesler/trunk/ant-import-tests/build-testsuite.xml 2008-03-12 13:50:18 UTC (rev 5942)
+++ stack/native/branches/tdiesler/trunk/ant-import-tests/build-testsuite.xml 2008-03-12 15:14:57 UTC (rev 5943)
@@ -39,6 +39,7 @@
</path>
<path id="tests.extra.classpath">
+ <pathelement location="${core.dir}/thirdparty/FastInfoset.jar"/>
<pathelement location="${core.dir}/thirdparty/jbossws-framework.jar"/>
<pathelement location="${core.dir}/thirdparty/jaxws-tools.jar"/>
<pathelement location="${core.dir}/thirdparty/policy.jar"/>
Added: stack/native/branches/tdiesler/trunk/src/main/java/org/jboss/ws/feature/FastInfosetFeature.java
===================================================================
--- stack/native/branches/tdiesler/trunk/src/main/java/org/jboss/ws/feature/FastInfosetFeature.java (rev 0)
+++ stack/native/branches/tdiesler/trunk/src/main/java/org/jboss/ws/feature/FastInfosetFeature.java 2008-03-12 15:14:57 UTC (rev 5943)
@@ -0,0 +1,69 @@
+/*
+ * 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.feature;
+
+// $Id$
+
+import javax.xml.ws.WebServiceFeature;
+
+import org.jboss.ws.Constants;
+
+/**
+ * This feature represents the use of FastInfoset
+ *
+ * @author Thomas.Diesler(a)jboss.com
+ * @since 29-Feb-2008
+ */
+public final class FastInfosetFeature extends WebServiceFeature
+{
+ /**
+ * Constant value identifying the SchemaValidationFeature
+ */
+ public static final String ID = Constants.NS_JBOSSWS_URI + "/features/fastinfoset";
+
+ /**
+ * Create an <code>SchemaValidationFeature</code>.
+ * The instance created will be enabled.
+ */
+ public FastInfosetFeature()
+ {
+ this.enabled = true;
+ }
+
+ /**
+ * Creates an <code>SchemaValidationFeature</code>.
+ *
+ * @param enabled specifies if this feature should be enabled or not
+ */
+ public FastInfosetFeature(boolean enabled)
+ {
+ this.enabled = enabled;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getID()
+ {
+ return ID;
+ }
+}
Property changes on: stack/native/branches/tdiesler/trunk/src/main/java/org/jboss/ws/feature/FastInfosetFeature.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/fastinfoset/FastInfoset.java
===================================================================
--- stack/native/branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/fastinfoset/FastInfoset.java (rev 0)
+++ stack/native/branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/fastinfoset/FastInfoset.java 2008-03-12 15:14:57 UTC (rev 5943)
@@ -0,0 +1,34 @@
+/*
+ * 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.fastinfoset;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+@WebService(targetNamespace = "http://org.jboss.ws/fastinfoset")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface FastInfoset
+{
+ @WebMethod
+ String echo(String code);
+}
Property changes on: stack/native/branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/fastinfoset/FastInfoset.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/fastinfoset/FastInfosetAPITestCase.java
===================================================================
--- stack/native/branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/fastinfoset/FastInfosetAPITestCase.java (rev 0)
+++ stack/native/branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/fastinfoset/FastInfosetAPITestCase.java 2008-03-12 15:14:57 UTC (rev 5943)
@@ -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.test.ws.jaxws.fastinfoset;
+
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+
+import org.jboss.wsf.common.DOMUtils;
+import org.jboss.wsf.common.DOMWriter;
+import org.jboss.wsf.test.JBossWSTest;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+
+import com.sun.xml.fastinfoset.dom.DOMDocumentParser;
+import com.sun.xml.fastinfoset.dom.DOMDocumentSerializer;
+
+/**
+ * Test FastInfoset functionality
+ *
+ * @author Thomas.Diesler(a)jboss.com
+ * @since 12-Mar-2008
+ */
+public class FastInfosetAPITestCase extends JBossWSTest
+{
+ public void testSimple() throws Exception
+ {
+ DOMDocumentSerializer serializer = new DOMDocumentSerializer();
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ serializer.setOutputStream(baos);
+
+ String srcXML = "<root>hello world</root>";
+ Element srcRoot = DOMUtils.parse(srcXML);
+ serializer.serialize(srcRoot);
+
+ ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
+ DOMDocumentParser parser = new DOMDocumentParser();
+ Document resDoc = DOMUtils.getDocumentBuilder().newDocument();
+ parser.parse(resDoc, bais);
+
+ String resXML = DOMWriter.printNode(resDoc, false);
+ assertEquals(srcXML, resXML);
+ }
+
+ public void testSimpleNamespace() throws Exception
+ {
+ DOMDocumentSerializer serializer = new DOMDocumentSerializer();
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ serializer.setOutputStream(baos);
+
+ String srcXML = "<root xmlns='http://somens'>hello world</root>";
+ Element srcRoot = DOMUtils.parse(srcXML);
+ serializer.serialize(srcRoot);
+
+ ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
+ DOMDocumentParser parser = new DOMDocumentParser();
+ Document resDoc = DOMUtils.getDocumentBuilder().newDocument();
+ parser.parse(resDoc, bais);
+
+ String resXML = DOMWriter.printNode(resDoc, false);
+ assertEquals(srcXML, resXML);
+ }
+
+ public void testPrefixedNamespace() throws Exception
+ {
+ DOMDocumentSerializer serializer = new DOMDocumentSerializer();
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ serializer.setOutputStream(baos);
+
+ String srcXML = "<ns1:root xmlns:ns1='http://somens'>hello world</ns1:root>";
+ Element srcRoot = DOMUtils.parse(srcXML);
+ serializer.serialize(srcRoot);
+
+ ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
+ DOMDocumentParser parser = new DOMDocumentParser();
+ Document resDoc = DOMUtils.getDocumentBuilder().newDocument();
+ parser.parse(resDoc, bais);
+
+ String resXML = DOMWriter.printNode(resDoc, false);
+ assertEquals(srcXML, resXML);
+ }
+}
Property changes on: stack/native/branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/fastinfoset/FastInfosetAPITestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/fastinfoset/FastInfosetEndpoint.java
===================================================================
--- stack/native/branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/fastinfoset/FastInfosetEndpoint.java (rev 0)
+++ stack/native/branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/fastinfoset/FastInfosetEndpoint.java 2008-03-12 15:14:57 UTC (rev 5943)
@@ -0,0 +1,43 @@
+/*
+ * 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.fastinfoset;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.jboss.logging.Logger;
+
+@WebService(targetNamespace = "http://org.jboss.ws/fastinfoset")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public class FastInfosetEndpoint
+{
+ // provide logging
+ private static Logger log = Logger.getLogger(FastInfosetEndpoint.class);
+
+ @WebMethod
+ public String echo(String code)
+ {
+ log.info(code);
+ return code;
+ }
+}
Property changes on: stack/native/branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/fastinfoset/FastInfosetEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/fastinfoset/FastInfosetTestCase.java
===================================================================
--- stack/native/branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/fastinfoset/FastInfosetTestCase.java (rev 0)
+++ stack/native/branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/fastinfoset/FastInfosetTestCase.java 2008-03-12 15:14:57 UTC (rev 5943)
@@ -0,0 +1,59 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.fastinfoset;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service21;
+
+import junit.framework.Test;
+
+import org.jboss.ws.feature.FastInfosetFeature;
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * Test FastInfoset functionality
+ *
+ * @author Thomas.Diesler(a)jboss.com
+ * @since 12-Mar-2008
+ */
+public class FastInfosetTestCase extends JBossWSTest
+{
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(FastInfosetTestCase.class, "jaxws-fastinfoset.war");
+ }
+
+ public void testSimple() throws Exception
+ {
+ URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-fastinfoset?wsdl");
+ QName serviceName = new QName("http://org.jboss.ws/fastinfoset", "FastInfosetEndpointService");
+ Service21 service = Service21.create(wsdlURL, serviceName);
+
+ FastInfosetFeature feature = new FastInfosetFeature();
+ FastInfoset port = service.getPort(FastInfoset.class, feature);
+ String retStr = port.echo("hello world");
+ assertEquals("hello world", retStr);
+ }
+}
Property changes on: stack/native/branches/tdiesler/trunk/src/test/java/org/jboss/test/ws/jaxws/fastinfoset/FastInfosetTestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Copied: stack/native/branches/tdiesler/trunk/src/test/resources/jaxws/fastinfoset/WEB-INF (from rev 5942, stack/native/branches/tdiesler/trunk/src/test/resources/jaxws/jbws1172/WEB-INF)
Modified: stack/native/branches/tdiesler/trunk/src/test/resources/jaxws/fastinfoset/WEB-INF/web.xml
===================================================================
--- stack/native/branches/tdiesler/trunk/src/test/resources/jaxws/jbws1172/WEB-INF/web.xml 2008-03-12 13:50:18 UTC (rev 5942)
+++ stack/native/branches/tdiesler/trunk/src/test/resources/jaxws/fastinfoset/WEB-INF/web.xml 2008-03-12 15:14:57 UTC (rev 5943)
@@ -4,22 +4,12 @@
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<servlet>
- <servlet-name>NonValidatingEndpoint</servlet-name>
- <servlet-class>org.jboss.test.ws.jaxws.jbws1172.NonValidatingEndpoint</servlet-class>
+ <servlet-name>FastInfosetEndpoint</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.fastinfoset.FastInfosetEndpoint</servlet-class>
</servlet>
- <servlet>
- <servlet-name>ValidatingEndpoint</servlet-name>
- <servlet-class>org.jboss.test.ws.jaxws.jbws1172.ValidatingEndpoint</servlet-class>
- </servlet>
-
<servlet-mapping>
- <servlet-name>NonValidatingEndpoint</servlet-name>
- <url-pattern>/noval</url-pattern>
+ <servlet-name>FastInfosetEndpoint</servlet-name>
+ <url-pattern>/*</url-pattern>
</servlet-mapping>
-
- <servlet-mapping>
- <servlet-name>ValidatingEndpoint</servlet-name>
- <url-pattern>/doval</url-pattern>
- </servlet-mapping>
</web-app>
\ No newline at end of file
Modified: stack/native/branches/tdiesler/trunk/version.properties
===================================================================
--- stack/native/branches/tdiesler/trunk/version.properties 2008-03-12 13:50:18 UTC (rev 5942)
+++ stack/native/branches/tdiesler/trunk/version.properties 2008-03-12 15:14:57 UTC (rev 5943)
@@ -62,6 +62,7 @@
junit=3.8.1
oswego-concurrent=1.3.4
qdox=1.4
+sun-fi=1.2.2
sun-jaf=1.1
sun-javamail=1.4
sun-servlet=2.4
18 years, 1 month
JBossWS SVN: r5942 - stack/native/branches/tdiesler.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-03-12 09:50:18 -0400 (Wed, 12 Mar 2008)
New Revision: 5942
Added:
stack/native/branches/tdiesler/trunk/
Log:
Recreate userbranch
Copied: stack/native/branches/tdiesler/trunk (from rev 5941, stack/native/trunk)
18 years, 1 month
JBossWS SVN: r5941 - stack/native/branches/tdiesler.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-03-12 09:49:47 -0400 (Wed, 12 Mar 2008)
New Revision: 5941
Removed:
stack/native/branches/tdiesler/trunk/
Log:
Recreate userbranch
18 years, 1 month
JBossWS SVN: r5940 - in stack/native/trunk: src/test/java/org/jboss/test/ws/jaxws/samples and 17 other directories.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-03-12 09:47:41 -0400 (Wed, 12 Mar 2008)
New Revision: 5940
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/AddressingClientTestCase.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/DarJMSEndpoint.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/DarResponseMessageBean.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/JMSClient.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/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/META-INF/
stack/native/trunk/src/test/resources/jaxws/samples/dar/META-INF/jboss-service.xml
stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF-jms/
stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF-jms/jboss-web.xml
stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF-jms/web.xml
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
Removed:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/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/DarJMSEndpoint.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/DarResponseMessageBean.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/JMSClient.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/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/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/advanced/
stack/native/trunk/src/test/resources/jaxws/samples/dar/META-INF/
stack/native/trunk/src/test/resources/jaxws/samples/dar/META-INF/jboss-service.xml
stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF-jms/
stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF-jms/jboss-web.xml
stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF-jms/web.xml
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/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:
Rollback, [JBWS-2031] Put advanced samples together with the retail sample
Modified: stack/native/trunk/ant-import-tests/build-samples-jaxws.xml
===================================================================
--- stack/native/trunk/ant-import-tests/build-samples-jaxws.xml 2008-03-12 11:09:56 UTC (rev 5939)
+++ stack/native/trunk/ant-import-tests/build-samples-jaxws.xml 2008-03-12 13:47:41 UTC (rev 5940)
@@ -21,82 +21,82 @@
<!-- jaxws-samples-dar -->
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-dar.jar">
<fileset dir="${tests.output.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Bus.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarProcessor.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarRequest.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponse.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Route.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/ServiceRequest.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Stop.class"/>
+ <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/advanced/dialaride/generated/*.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/ClientHelper.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Client.class"/>
+ <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/advanced/dialaride/AsyncProcessRequest.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Bus.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarAddressingEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarMessageBean.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarProcessor.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarRequest.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponse.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/ReplyConverter.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Route.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/ServiceRequest.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Stop.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/*.class"/>
+ <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/advanced/dialaride/generated/*.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/ClientHelper.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/AddressingClient.class"/>
+ <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/advanced/dialaride/WEB-INF/web.xml">
+ <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/advanced/dialaride/generated/reply/*.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarReplyEndpointImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/ReplyToServlet.class"/>
+ <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/advanced/dialaride/WEB-INF">
+ <webinf dir="${tests.output.dir}/resources/jaxws/samples/dar/WEB-INF">
<include name="jboss-web.xml"/>
<include name="wsdl/reply.wsdl"/>
</webinf>
</war>
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-dar-jms.jar">
<fileset dir="${tests.output.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Bus.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarJMSEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarProcessor.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarRequest.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponse.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Route.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/ServiceRequest.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Stop.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/dar/Bus.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/dar/DarJMSEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/dar/DarProcessor.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/dar/DarRequest.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/dar/DarResponse.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/dar/Route.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/dar/ServiceRequest.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/dar/Stop.class"/>
</fileset>
</jar>
- <war jarfile="${tests.output.dir}/libs/jaxws-samples-dar-jms-client.war" webxml="${tests.output.dir}/resources/jaxws/samples/advanced/dialaride/WEB-INF-jms/web.xml">
+ <war jarfile="${tests.output.dir}/libs/jaxws-samples-dar-jms-client.war" webxml="${tests.output.dir}/resources/jaxws/samples/dar/WEB-INF-jms/web.xml">
<fileset dir="${tests.output.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/*.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/ClientHelper.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/JMSClient.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/dar/generated/*.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/dar/ClientHelper.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/dar/JMSClient.class"/>
</fileset>
- <webinf dir="${tests.output.dir}/resources/jaxws/samples/advanced/dialaride/WEB-INF-jms">
+ <webinf dir="${tests.output.dir}/resources/jaxws/samples/dar/WEB-INF-jms">
<include name="jboss-web.xml"/>
</webinf>
</war>
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-dar-jms-client.jar">
<fileset dir="${tests.output.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponseMessageBean.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/dar/DarResponseMessageBean.class"/>
</fileset>
</jar>
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-dar-jms-client.sar">
@@ -104,7 +104,7 @@
<include name="jaxws-samples-dar-jms-client.war"/>
<include name="jaxws-samples-dar-jms-client.jar"/>
</fileset>
- <metainf dir="${tests.output.dir}/resources/jaxws/samples/advanced/dialaride/META-INF">
+ <metainf dir="${tests.output.dir}/resources/jaxws/samples/dar/META-INF">
<include name="jboss-service.xml"/>
</metainf>
</jar>
@@ -129,48 +129,48 @@
<!-- jaxws-samples-news -->
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-news-step1-newspaper.jar">
<fileset dir="${tests.output.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/PressRelease.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/AbstractPressReleaseEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/PressReleaseEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperSWA.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperSWAEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperSWAEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperMTOM.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperMTOMEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperMTOMEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/EditionSWA.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/EditionMTOM.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/jaxws-handlers-server.xml"/>
+ <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/advanced/news/generated/agency/*.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/Agency.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/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/advanced/news/generated/printer/**/*.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/Printer.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/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/advanced/news/PressRelease.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/AbstractPressReleaseEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/SecurePressReleaseEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperSWA.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperSWAEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/SecureNewspaperSWAEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperMTOM.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperMTOMEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/SecureNewspaperMTOMEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/EditionSWA.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/EditionMTOM.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/jaxws-handlers-server.xml"/>
+ <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/advanced/news/META-INF">
+ <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"/>
@@ -178,11 +178,11 @@
</jar>
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-news-step2-agency.jar">
<fileset dir="${tests.output.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/*.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/Agency.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/SecureAgency.class"/>
+ <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/advanced/news/META-INF">
+ <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"/>
@@ -190,9 +190,9 @@
</jar>
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-news-step2-printer.jar">
<fileset dir="${tests.output.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/**/*.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/Printer.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/news/SecurePrinter.class"/>
+ <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>
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar (from rev 5936, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar)
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/AddressingClient.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,137 +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.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();
- }
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/AddressingClient.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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();
+ }
+ }
+}
Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/AddressingClientTestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/AddressingClientTestCase.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/AddressingClientTestCase.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -0,0 +1,66 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.dar;
+
+//$Id$
+
+import java.net.URL;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * DAR addressing client; invokes the DAR addressing endpoint (sync, asynch and oneway)
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 24-Nov-2005
+ */
+public class AddressingClientTestCase extends JBossWSTest
+{
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(AddressingClientTestCase.class, "jaxws-samples-dar.jar,jaxws-samples-dar-addressing-client.war");
+ }
+
+ public void testSync() throws Exception
+ {
+ URL wsdlURL = new URL("http://" + getServerHost() + ":8080/dar?wsdl");
+ AddressingClient client = new AddressingClient(wsdlURL);
+ client.run(false);
+ }
+
+ public void testAsync() throws Exception
+ {
+ URL wsdlURL = new URL("http://" + getServerHost() + ":8080/dar?wsdl");
+ AddressingClient client = new AddressingClient(wsdlURL);
+ client.run(true);
+ }
+
+ public void testOneWay() throws Exception
+ {
+ URL wsdlURL = new URL("http://" + getServerHost() + ":8080/dar?wsdl");
+ AddressingClient client = new AddressingClient(wsdlURL);
+ client.runOneway();
+ }
+}
Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/AddressingClientTestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/AsyncProcessRequest.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,57 +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.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;
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/AsyncProcessRequest.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/Bus.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,53 +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.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;
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/Bus.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/Client.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,97 +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.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();
- }
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/Client.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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();
+ }
+ }
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ClientHelper.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,94 +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.test.ws.jaxws.samples.dar;
-
-import java.io.PrintStream;
-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)
- {
- printResponse(response, System.out);
- }
-
- public static void printResponse(DarResponse response, PrintStream output)
- {
- List<Route> routes = response.getRoutes();
- for (Route route : routes)
- {
- output.print(route.getBusId() + ": ");
- for (Stop stop : route.getStops())
- {
- output.print(stop.getNode() + " ");
- }
- output.print("\n");
- }
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ClientHelper.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+
+import java.io.PrintStream;
+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)
+ {
+ printResponse(response, System.out);
+ }
+
+ public static void printResponse(DarResponse response, PrintStream output)
+ {
+ List<Route> routes = response.getRoutes();
+ for (Route route : routes)
+ {
+ output.print(route.getBusId() + ": ");
+ for (Stop stop : route.getStops())
+ {
+ output.print(stop.getNode() + " ");
+ }
+ output.print("\n");
+ }
+ }
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarAddressingEndpoint.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,130 +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.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")
- @Oneway
- public void onewayProcess(DarRequest request)
- {
- QueueSession queueSession =null;
- QueueSender sender = null;
- try {
- InitialContext context = new InitialContext();
- QueueConnectionFactory connectionFactory = (QueueConnectionFactory)context.lookup("ConnectionFactory");
- QueueConnection con = connectionFactory.createQueueConnection();
- queueSession = con.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
- Queue queue = (Queue)context.lookup("queue/DarQueue");
- sender = queueSession.createSender(queue);
- AsyncProcessRequest asyncRequest = new AsyncProcessRequest();
- asyncRequest.setRequest(request);
- AddressingProperties props = (AddressingProperties)ctx.getMessageContext().get(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND);
- asyncRequest.setReplyTo(props.getReplyTo().getAddress().getURI());
- asyncRequest.setMessageId(props.getMessageID().getURI());
- ObjectMessage message = queueSession.createObjectMessage(asyncRequest);
- sender.send(message);
- log.info("AsyncProcessRequest sent...");
- } catch (Exception e) {
- throw new WebServiceException(e);
- } finally {
- try
- {
- sender.close();
- }
- catch(Exception e1) {}
- try
- {
- queueSession.close();
- }
- catch(Exception e1) {}
- }
-
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarAddressingEndpoint.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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")
+ @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) {}
+ }
+
+ }
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarEndpoint.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,60 +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.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);
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarEndpoint.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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);
+ }
+}
Deleted: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarJMSEndpoint.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarJMSEndpoint.java 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarJMSEndpoint.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,73 +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.test.ws.jaxws.samples.dar;
-
-//$Id$
-
-import javax.ejb.ActivationConfigProperty;
-import javax.ejb.MessageDriven;
-import javax.jms.Message;
-import javax.jws.WebMethod;
-import javax.jws.WebService;
-import javax.jws.soap.SOAPBinding;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.transport.jms.JMSTransportSupportEJB3;
-import org.jboss.wsf.spi.annotation.WebContext;
-
-
-/**
- * Performs DAR route optimization
- *
- * @author alessio.soldano(a)jboss.com
- * @since 01-Feb-2008
- */
-@WebService (name = "DarEndpoint",
- targetNamespace = "http://org.jboss.ws/samples/dar",
- serviceName = "DarService")
-@WebContext(contextRoot="/dar")
-@SOAPBinding(style = SOAPBinding.Style.RPC)
-@MessageDriven(activationConfig = {
- @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
- @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/DarRequestQueue")
- },
- messageListenerInterface = javax.jms.MessageListener.class
-)
-public class DarJMSEndpoint extends JMSTransportSupportEJB3
-{
-
- private static final Logger log = Logger.getLogger(DarJMSEndpoint.class);
-
- @WebMethod(operationName = "process", action = "http://org.jboss.test.ws.jaxws.samples.dar/action/processIn")
- public DarResponse process(DarRequest request)
- {
- DarProcessor processor = new DarProcessor();
- return processor.process(request);
- }
-
- @Override
- public void onMessage(Message message)
- {
- log.debug("onMessage: " + message);
- super.onMessage(message);
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarJMSEndpoint.java (from rev 5936, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarJMSEndpoint.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarJMSEndpoint.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarJMSEndpoint.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -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.dar;
+
+//$Id$
+
+import javax.ejb.ActivationConfigProperty;
+import javax.ejb.MessageDriven;
+import javax.jms.Message;
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.core.transport.jms.JMSTransportSupportEJB3;
+import org.jboss.wsf.spi.annotation.WebContext;
+
+
+/**
+ * Performs DAR route optimization
+ *
+ * @author alessio.soldano(a)jboss.com
+ * @since 01-Feb-2008
+ */
+@WebService (name = "DarEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/dar",
+ serviceName = "DarService")
+@WebContext(contextRoot="/dar")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+@MessageDriven(activationConfig = {
+ @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
+ @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/DarRequestQueue")
+ },
+ messageListenerInterface = javax.jms.MessageListener.class
+)
+public class DarJMSEndpoint extends JMSTransportSupportEJB3
+{
+
+ private static final Logger log = Logger.getLogger(DarJMSEndpoint.class);
+
+ @WebMethod(operationName = "process", action = "http://org.jboss.test.ws.jaxws.samples.dar/action/processIn")
+ public DarResponse process(DarRequest request)
+ {
+ DarProcessor processor = new DarProcessor();
+ return processor.process(request);
+ }
+
+ @Override
+ public void onMessage(Message message)
+ {
+ log.debug("onMessage: " + message);
+ super.onMessage(message);
+ }
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarMessageBean.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,94 +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.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();
- }
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarMessageBean.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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();
+ }
+ }
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarProcessor.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,102 +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.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;
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarProcessor.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarReplyEndpointImpl.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,87 +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.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());
- }
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarReplyEndpointImpl.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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());
+ }
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarRequest.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,65 +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.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;
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarRequest.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarResponse.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,54 +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.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;
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarResponse.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+}
Deleted: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarResponseMessageBean.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarResponseMessageBean.java 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarResponseMessageBean.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,63 +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.test.ws.jaxws.samples.dar;
-
-//$Id:$
-
-import javax.ejb.ActivationConfigProperty;
-import javax.ejb.MessageDriven;
-import javax.jms.Message;
-import javax.jms.TextMessage;
-
-import org.jboss.logging.Logger;
-
-/**
- * Receives DAR responses through JMS
- *
- * @author alessio.soldano(a)jboss.org
- * @since 31-Jan-2008
- */
-@MessageDriven(activationConfig = {
- @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
- @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/DarResponseQueue")
- },
- messageListenerInterface = javax.jms.MessageListener.class
-)
-public class DarResponseMessageBean
-{
- private Logger log = Logger.getLogger(DarResponseMessageBean.class);
-
- public void onMessage(Message arg0)
- {
- try
- {
- TextMessage textMessage = (TextMessage)arg0;
- String result = textMessage.getText();
- log.info("DAR response received: " + result);
- }
- catch (Exception e)
- {
- e.printStackTrace();
- }
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarResponseMessageBean.java (from rev 5936, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarResponseMessageBean.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarResponseMessageBean.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarResponseMessageBean.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -0,0 +1,63 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.dar;
+
+//$Id:$
+
+import javax.ejb.ActivationConfigProperty;
+import javax.ejb.MessageDriven;
+import javax.jms.Message;
+import javax.jms.TextMessage;
+
+import org.jboss.logging.Logger;
+
+/**
+ * Receives DAR responses through JMS
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@MessageDriven(activationConfig = {
+ @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
+ @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/DarResponseQueue")
+ },
+ messageListenerInterface = javax.jms.MessageListener.class
+)
+public class DarResponseMessageBean
+{
+ private Logger log = Logger.getLogger(DarResponseMessageBean.class);
+
+ public void onMessage(Message arg0)
+ {
+ try
+ {
+ TextMessage textMessage = (TextMessage)arg0;
+ String result = textMessage.getText();
+ log.info("DAR response received: " + result);
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+
+}
Deleted: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/JMSClient.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/JMSClient.java 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/JMSClient.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,151 +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.test.ws.jaxws.samples.dar;
-
-//$Id$
-
-import java.io.IOException;
-import java.io.PrintStream;
-
-import javax.jms.Queue;
-import javax.jms.QueueConnection;
-import javax.jms.QueueConnectionFactory;
-import javax.jms.QueueSender;
-import javax.jms.QueueSession;
-import javax.jms.Session;
-import javax.jms.TextMessage;
-import javax.naming.InitialContext;
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.jboss.logging.Logger;
-
-/**
- * DAR client; invokes the DAR JMS endpoint
- *
- * @author alessio.soldano(a)jboss.org
- * @since 31-Jan-2008
- */
-public class JMSClient extends HttpServlet
-{
- private Logger log = Logger.getLogger(JMSClient.class);
-
- protected void doGet(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException {
- runMessageClient(new PrintStream(httpServletResponse.getOutputStream()));
- }
-
- private void runMessageClient(PrintStream ps)
- {
- String reqMessage = "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>" +
- "<env:Header></env:Header>" +
- "<env:Body>" +
- "<ns1:process xmlns:ns1='http://org.jboss.ws/samples/dar'>" +
- "<arg0>" +
- "<buses>" +
- "<capacity>10</capacity>" +
- "<id>Bus0</id>" +
- "</buses>" +
- "<buses>" +
- "<capacity>10</capacity>" +
- "<id>Bus1</id>" +
- "</buses>" +
- "<mapId>map1234</mapId>" +
- "<requests>" +
- "<from><node>667</node><time>2008-02-01T14:25:12.114+01:00</time></from>" +
- "<id>Req0</id>" +
- "<people>2</people>" +
- "<to><node>17</node><time>2008-02-01T14:25:12.114+01:00</time></to>" +
- "</requests>" +
- "<requests>" +
- "<from><node>18</node><time>2008-02-01T14:25:12.114+01:00</time></from>" +
- "<id>Req1</id>" +
- "<people>1</people>" +
- "<to><node>575</node><time>2008-02-01T14:25:12.114+01:00</time></to>" +
- "</requests>" +
- "<requests>" +
- "<from><node>713</node><time>2008-02-01T14:25:12.114+01:00</time></from>" +
- "<id>Req2</id>" +
- "<people>2</people>" +
- "<to><node>845</node><time>2008-02-01T14:25:12.114+01:00</time></to>" +
- "</requests>" +
- "<requests>" +
- "<from><node>117</node><time>2008-02-01z...zT14:25:12.114+01:00</time></from>" +
- "<id>Req3</id>" +
- "<people>2</people>" +
- "<to><node>140</node><time>2008-02-01T14:25:12.114+01:00</time></to>" +
- "</requests>" +
- "<requests>" +
- "<from><node>318</node><time>2008-02-01T14:25:12.114+01:00</time></from>" +
- "<id>Req4</id>" +
- "<people>1</people>" +
- "<to><node>57</node><time>2008-02-01T14:25:12.114+01:00</time></to>" +
- "</requests>" +
- "</arg0>" +
- "</ns1:process>" +
- "</env:Body>" +
- "</env:Envelope>";
-
- QueueConnection con = null;
- QueueSession session = null;
- try
- {
- InitialContext context = new InitialContext();
- QueueConnectionFactory connectionFactory = (QueueConnectionFactory)context.lookup("ConnectionFactory");
- Queue reqQueue = (Queue)context.lookup("queue/DarRequestQueue");
- con = connectionFactory.createQueueConnection();
- session = con.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
- Queue resQueue = (Queue)context.lookup("queue/DarResponseQueue");
- con.start();
- TextMessage message = session.createTextMessage(reqMessage);
- message.setJMSReplyTo(resQueue);
- QueueSender sender = session.createSender(reqQueue);
- sender.send(message);
- sender.close();
- ps.println("Request message sent, doing something interesting in the mean time... ;-) ");
- con.stop();
- }
- catch (Exception e)
- {
- e.printStackTrace(ps);
- }
- finally
- {
- try
- {
- session.close();
- }
- catch(Exception e1) {}
- try
- {
- con.close();
- }
- catch(Exception e1) {}
- }
- }
-
-
- protected void doPost(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException {
- doGet(httpServletRequest,httpServletResponse);
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/JMSClient.java (from rev 5936, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/JMSClient.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/JMSClient.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/JMSClient.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -0,0 +1,151 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.dar;
+
+//$Id$
+
+import java.io.IOException;
+import java.io.PrintStream;
+
+import javax.jms.Queue;
+import javax.jms.QueueConnection;
+import javax.jms.QueueConnectionFactory;
+import javax.jms.QueueSender;
+import javax.jms.QueueSession;
+import javax.jms.Session;
+import javax.jms.TextMessage;
+import javax.naming.InitialContext;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.jboss.logging.Logger;
+
+/**
+ * DAR client; invokes the DAR JMS endpoint
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class JMSClient extends HttpServlet
+{
+ private Logger log = Logger.getLogger(JMSClient.class);
+
+ protected void doGet(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException {
+ runMessageClient(new PrintStream(httpServletResponse.getOutputStream()));
+ }
+
+ private void runMessageClient(PrintStream ps)
+ {
+ String reqMessage = "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>" +
+ "<env:Header></env:Header>" +
+ "<env:Body>" +
+ "<ns1:process xmlns:ns1='http://org.jboss.ws/samples/dar'>" +
+ "<arg0>" +
+ "<buses>" +
+ "<capacity>10</capacity>" +
+ "<id>Bus0</id>" +
+ "</buses>" +
+ "<buses>" +
+ "<capacity>10</capacity>" +
+ "<id>Bus1</id>" +
+ "</buses>" +
+ "<mapId>map1234</mapId>" +
+ "<requests>" +
+ "<from><node>667</node><time>2008-02-01T14:25:12.114+01:00</time></from>" +
+ "<id>Req0</id>" +
+ "<people>2</people>" +
+ "<to><node>17</node><time>2008-02-01T14:25:12.114+01:00</time></to>" +
+ "</requests>" +
+ "<requests>" +
+ "<from><node>18</node><time>2008-02-01T14:25:12.114+01:00</time></from>" +
+ "<id>Req1</id>" +
+ "<people>1</people>" +
+ "<to><node>575</node><time>2008-02-01T14:25:12.114+01:00</time></to>" +
+ "</requests>" +
+ "<requests>" +
+ "<from><node>713</node><time>2008-02-01T14:25:12.114+01:00</time></from>" +
+ "<id>Req2</id>" +
+ "<people>2</people>" +
+ "<to><node>845</node><time>2008-02-01T14:25:12.114+01:00</time></to>" +
+ "</requests>" +
+ "<requests>" +
+ "<from><node>117</node><time>2008-02-01z...zT14:25:12.114+01:00</time></from>" +
+ "<id>Req3</id>" +
+ "<people>2</people>" +
+ "<to><node>140</node><time>2008-02-01T14:25:12.114+01:00</time></to>" +
+ "</requests>" +
+ "<requests>" +
+ "<from><node>318</node><time>2008-02-01T14:25:12.114+01:00</time></from>" +
+ "<id>Req4</id>" +
+ "<people>1</people>" +
+ "<to><node>57</node><time>2008-02-01T14:25:12.114+01:00</time></to>" +
+ "</requests>" +
+ "</arg0>" +
+ "</ns1:process>" +
+ "</env:Body>" +
+ "</env:Envelope>";
+
+ QueueConnection con = null;
+ QueueSession session = null;
+ try
+ {
+ InitialContext context = new InitialContext();
+ QueueConnectionFactory connectionFactory = (QueueConnectionFactory)context.lookup("ConnectionFactory");
+ Queue reqQueue = (Queue)context.lookup("queue/DarRequestQueue");
+ con = connectionFactory.createQueueConnection();
+ session = con.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
+ Queue resQueue = (Queue)context.lookup("queue/DarResponseQueue");
+ con.start();
+ TextMessage message = session.createTextMessage(reqMessage);
+ message.setJMSReplyTo(resQueue);
+ QueueSender sender = session.createSender(reqQueue);
+ sender.send(message);
+ sender.close();
+ ps.println("Request message sent, doing something interesting in the mean time... ;-) ");
+ con.stop();
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace(ps);
+ }
+ finally
+ {
+ try
+ {
+ session.close();
+ }
+ catch(Exception e1) {}
+ try
+ {
+ con.close();
+ }
+ catch(Exception e1) {}
+ }
+ }
+
+
+ protected void doPost(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException {
+ doGet(httpServletRequest,httpServletResponse);
+ }
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ReplyConverter.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,82 +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.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;
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ReplyConverter.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ReplyToServlet.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,65 +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.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);
- }
-}
-
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ReplyToServlet.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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);
+ }
+}
+
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/Route.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,53 +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.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;
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/Route.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ServiceRequest.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,65 +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.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;
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ServiceRequest.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/Stop.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,54 +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.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;
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/Stop.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated (from rev 5936, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated)
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/Bus.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,79 +0,0 @@
-
-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;
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/Bus.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/DarEndpoint.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,33 +0,0 @@
-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);
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/DarEndpoint.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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);
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/DarRequest.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,129 +0,0 @@
-
-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;
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/DarRequest.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/DarResponse.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,102 +0,0 @@
-
-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;
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/DarResponse.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/DarService.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,53 +0,0 @@
-
-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);
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/DarService.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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);
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/ObjectFactory.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,80 +0,0 @@
-
-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();
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/ObjectFactory.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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();
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/Route.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,96 +0,0 @@
-
-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;
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/Route.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/ServiceRequest.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,133 +0,0 @@
-
-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;
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/ServiceRequest.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/Stop.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,90 +0,0 @@
-
-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;
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/Stop.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/package-info.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,2 +0,0 @@
-(a)javax.xml.bind.annotation.XmlSchema(namespace = "http://org.jboss.ws/samples/dar")
-package org.jboss.test.ws.jaxws.samples.dar.generated;
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/package-info.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply (from rev 5936, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply)
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarReplyEndpoint.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,32 +0,0 @@
-
-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);
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarReplyEndpoint.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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);
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarReplyService.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,53 +0,0 @@
-
-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);
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarReplyService.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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);
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarResponse.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,102 +0,0 @@
-
-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;
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarResponse.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/ObjectFactory.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,64 +0,0 @@
-
-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();
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/ObjectFactory.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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();
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/Route.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,96 +0,0 @@
-
-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;
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/Route.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/ServiceRequest.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,133 +0,0 @@
-
-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;
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/ServiceRequest.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/Stop.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,90 +0,0 @@
-
-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;
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/Stop.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/package-info.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,2 +0,0 @@
-(a)javax.xml.bind.annotation.XmlSchema(namespace = "http://org.jboss.ws/samples/dar")
-package org.jboss.test.ws.jaxws.samples.dar.generated.reply;
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/package-info.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news (from rev 5936, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news)
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/AbstractNewspaperMTOMEndpoint.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,59 +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.test.ws.jaxws.samples.news;
-
-//$Id$
-
-import java.util.Date;
-
-import javax.activation.DataHandler;
-
-import org.jboss.logging.Logger;
-
-/**
- * The common implementation of the MTOM newspaper endpoint
- *
- * @author alessio.soldano(a)jboss.org
- * @since 31-Jan-2008
- */
-public class AbstractNewspaperMTOMEndpoint
-{
- private Logger log = Logger.getLogger(this.getClass());
-
- public EditionMTOM getNewspaperEdition(String newspaperId)
- {
- log.info("Newspaper edition requested: " + newspaperId);
- EditionMTOM edition = new EditionMTOM();
- edition.setContent(new DataHandler("This is the newspaper document with id " + newspaperId, "text/plain"));
- edition.setDate(new Date());
- edition.setId(newspaperId);
- return edition;
- }
-
- public String[] getNewspaperEditionIdList(Date from, Date to)
- {
- String[] ids = new String[2];
- ids[0] = "doc01";
- ids[1] = "doc02";
- return ids;
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/AbstractNewspaperMTOMEndpoint.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -0,0 +1,59 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.news;
+
+//$Id$
+
+import java.util.Date;
+
+import javax.activation.DataHandler;
+
+import org.jboss.logging.Logger;
+
+/**
+ * The common implementation of the MTOM newspaper endpoint
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class AbstractNewspaperMTOMEndpoint
+{
+ private Logger log = Logger.getLogger(this.getClass());
+
+ public EditionMTOM getNewspaperEdition(String newspaperId)
+ {
+ log.info("Newspaper edition requested: " + newspaperId);
+ EditionMTOM edition = new EditionMTOM();
+ edition.setContent(new DataHandler("This is the newspaper document with id " + newspaperId, "text/plain"));
+ edition.setDate(new Date());
+ edition.setId(newspaperId);
+ return edition;
+ }
+
+ public String[] getNewspaperEditionIdList(Date from, Date to)
+ {
+ String[] ids = new String[2];
+ ids[0] = "doc01";
+ ids[1] = "doc02";
+ return ids;
+ }
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/AbstractNewspaperSWAEndpoint.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,59 +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.test.ws.jaxws.samples.news;
-
-//$Id$
-
-import java.util.Date;
-
-import javax.activation.DataHandler;
-
-import org.jboss.logging.Logger;
-
-/**
- * The common implementation of the SWA newspaper endpoint
- *
- * @author alessio.soldano(a)jboss.org
- * @since 31-Jan-2008
- */
-public class AbstractNewspaperSWAEndpoint
-{
- private Logger log = Logger.getLogger(this.getClass());
-
- public EditionSWA getNewspaperEdition(String newspaperId)
- {
- log.info("Newspaper edition requested: " + newspaperId);
- EditionSWA edition = new EditionSWA();
- edition.setContent(new DataHandler("This is the newspaper document with id " + newspaperId, "text/plain"));
- edition.setDate(new Date());
- edition.setId(newspaperId);
- return edition;
- }
-
- public String[] getNewspaperEditionIdList(Date from, Date to)
- {
- String[] ids = new String[2];
- ids[0] = "doc01";
- ids[1] = "doc02";
- return ids;
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/AbstractNewspaperSWAEndpoint.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -0,0 +1,59 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.news;
+
+//$Id$
+
+import java.util.Date;
+
+import javax.activation.DataHandler;
+
+import org.jboss.logging.Logger;
+
+/**
+ * The common implementation of the SWA newspaper endpoint
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class AbstractNewspaperSWAEndpoint
+{
+ private Logger log = Logger.getLogger(this.getClass());
+
+ public EditionSWA getNewspaperEdition(String newspaperId)
+ {
+ log.info("Newspaper edition requested: " + newspaperId);
+ EditionSWA edition = new EditionSWA();
+ edition.setContent(new DataHandler("This is the newspaper document with id " + newspaperId, "text/plain"));
+ edition.setDate(new Date());
+ edition.setId(newspaperId);
+ return edition;
+ }
+
+ public String[] getNewspaperEditionIdList(Date from, Date to)
+ {
+ String[] ids = new String[2];
+ ids[0] = "doc01";
+ ids[1] = "doc02";
+ return ids;
+ }
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/AbstractPressReleaseEndpoint.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,44 +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.test.ws.jaxws.samples.news;
-
-//$Id$
-
-import org.jboss.logging.Logger;
-
-/**
- * The common implementation of the press release endpoint
- *
- * @author alessio.soldano(a)jboss.org
- * @since 31-Jan-2008
- */
-public abstract class AbstractPressReleaseEndpoint
-{
- private Logger log = Logger.getLogger(this.getClass());
-
- public void submitPressRelease(PressRelease release)
- {
- log.info("Received a press release from agency: " + release.getAgencyId());
- log.info("- Title: " + release.getTitle());
- log.info("- Text: " + release.getBody());
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/AbstractPressReleaseEndpoint.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.news;
+
+//$Id$
+
+import org.jboss.logging.Logger;
+
+/**
+ * The common implementation of the press release endpoint
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public abstract class AbstractPressReleaseEndpoint
+{
+ private Logger log = Logger.getLogger(this.getClass());
+
+ public void submitPressRelease(PressRelease release)
+ {
+ log.info("Received a press release from agency: " + release.getAgencyId());
+ log.info("- Title: " + release.getTitle());
+ log.info("- Text: " + release.getBody());
+ }
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/Agency.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,85 +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.test.ws.jaxws.samples.news;
-
-//$Id$
-
-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;
-
-/**
- * The press agency client
- *
- * @author alessio.soldano(a)jboss.org
- * @since 31-Jan-2008
- */
-public class Agency
-{
-
- protected PressReleaseEndpoint endpoint;
-
- public Agency(URL url)
- {
- PressReleaseService service = new PressReleaseService(url, new QName("http://org.jboss.ws/samples/news", "PressReleaseService"));
- endpoint = service.getPressReleaseEndpointPort();
- }
-
- public void run(String title, String body)
- {
- PressRelease pressRelease = new PressRelease();
- pressRelease.setAgencyId("agency01");
- pressRelease.setTitle(title);
- pressRelease.setBody(body);
- pressRelease.setDate(new XMLGregorianCalendarImpl(new GregorianCalendar()));
- endpoint.submitPressRelease(pressRelease);
- }
-
- public static void main(String[] args)
- {
- try
- {
- if (args.length == 3)
- {
- Agency agency = new Agency(new URL(args[0]));
- agency.run(args[1], args[2]);
- System.out.println("Press release sent.");
- }
- else
- {
- System.out.println("Agency client usage:");
- System.out.println("wsrunclient.sh -classpath agency.jar org.jboss.test.ws.jaxws.samples.news.Agency http://host:port/news/pressRelease?wsdl title body");
- }
- }
- catch (Exception e)
- {
- e.printStackTrace();
- }
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/Agency.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -0,0 +1,85 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.news;
+
+//$Id$
+
+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;
+
+/**
+ * The press agency client
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class Agency
+{
+
+ protected PressReleaseEndpoint endpoint;
+
+ public Agency(URL url)
+ {
+ PressReleaseService service = new PressReleaseService(url, new QName("http://org.jboss.ws/samples/news", "PressReleaseService"));
+ endpoint = service.getPressReleaseEndpointPort();
+ }
+
+ public void run(String title, String body)
+ {
+ PressRelease pressRelease = new PressRelease();
+ pressRelease.setAgencyId("agency01");
+ pressRelease.setTitle(title);
+ pressRelease.setBody(body);
+ pressRelease.setDate(new XMLGregorianCalendarImpl(new GregorianCalendar()));
+ endpoint.submitPressRelease(pressRelease);
+ }
+
+ public static void main(String[] args)
+ {
+ try
+ {
+ if (args.length == 3)
+ {
+ Agency agency = new Agency(new URL(args[0]));
+ agency.run(args[1], args[2]);
+ System.out.println("Press release sent.");
+ }
+ else
+ {
+ System.out.println("Agency client usage:");
+ System.out.println("wsrunclient.sh -classpath agency.jar org.jboss.test.ws.jaxws.samples.news.Agency http://host:port/news/pressRelease?wsdl title body");
+ }
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/EditionMTOM.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,68 +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.test.ws.jaxws.samples.news;
-
-//$Id$
-
-import java.util.Date;
-
-import javax.activation.DataHandler;
-import javax.xml.bind.annotation.XmlMimeType;
-
-/**
- * The MTOM version of the newspaper edition
- *
- * @author alessio.soldano(a)jboss.org
- * @since 31-Jan-2008
- */
-public class EditionMTOM
-{
- private Date date;
- private DataHandler content;
- private String id;
-
- public Date getDate()
- {
- return date;
- }
- public void setDate(Date date)
- {
- this.date = date;
- }
- @XmlMimeType("text/plain")
- public DataHandler getContent()
- {
- return content;
- }
- public void setContent(DataHandler content)
- {
- this.content = content;
- }
- public String getId()
- {
- return id;
- }
- public void setId(String id)
- {
- this.id = id;
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/EditionMTOM.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -0,0 +1,68 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.news;
+
+//$Id$
+
+import java.util.Date;
+
+import javax.activation.DataHandler;
+import javax.xml.bind.annotation.XmlMimeType;
+
+/**
+ * The MTOM version of the newspaper edition
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class EditionMTOM
+{
+ private Date date;
+ private DataHandler content;
+ private String id;
+
+ public Date getDate()
+ {
+ return date;
+ }
+ public void setDate(Date date)
+ {
+ this.date = date;
+ }
+ @XmlMimeType("text/plain")
+ public DataHandler getContent()
+ {
+ return content;
+ }
+ public void setContent(DataHandler content)
+ {
+ this.content = content;
+ }
+ public String getId()
+ {
+ return id;
+ }
+ public void setId(String id)
+ {
+ this.id = id;
+ }
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/EditionSWA.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,72 +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.test.ws.jaxws.samples.news;
-
-//$Id$
-
-import java.util.Date;
-
-import javax.activation.DataHandler;
-import javax.xml.bind.annotation.XmlAttachmentRef;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlRootElement;
-
-/**
- * The SWA version of the newspaper edition
- *
- * @author alessio.soldano(a)jboss.org
- * @since 31-Jan-2008
- */
-@XmlRootElement
-public class EditionSWA
-{
- private Date date;
- private DataHandler content;
- private String id;
-
- public Date getDate()
- {
- return date;
- }
- public void setDate(Date date)
- {
- this.date = date;
- }
- @XmlElement
- @XmlAttachmentRef
- public DataHandler getContent()
- {
- return content;
- }
- public void setContent(DataHandler content)
- {
- this.content = content;
- }
- public String getId()
- {
- return id;
- }
- public void setId(String id)
- {
- this.id = id;
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/EditionSWA.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -0,0 +1,72 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.news;
+
+//$Id$
+
+import java.util.Date;
+
+import javax.activation.DataHandler;
+import javax.xml.bind.annotation.XmlAttachmentRef;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * The SWA version of the newspaper edition
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@XmlRootElement
+public class EditionSWA
+{
+ private Date date;
+ private DataHandler content;
+ private String id;
+
+ public Date getDate()
+ {
+ return date;
+ }
+ public void setDate(Date date)
+ {
+ this.date = date;
+ }
+ @XmlElement
+ @XmlAttachmentRef
+ public DataHandler getContent()
+ {
+ return content;
+ }
+ public void setContent(DataHandler content)
+ {
+ this.content = content;
+ }
+ public String getId()
+ {
+ return id;
+ }
+ public void setId(String id)
+ {
+ this.id = id;
+ }
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/NewspaperMTOM.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,49 +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.test.ws.jaxws.samples.news;
-
-//$Id$
-
-import java.util.Date;
-
-import javax.jws.WebMethod;
-import javax.jws.WebParam;
-import javax.jws.WebService;
-import javax.jws.soap.SOAPBinding;
-
-/**
- * The MTOM newspaper endpoint interface
- *
- * @author alessio.soldano(a)jboss.org
- * @since 31-Jan-2008
- */
-@WebService(targetNamespace = "http://org.jboss.ws/samples/news")
-@SOAPBinding(style = SOAPBinding.Style.RPC,
- use = SOAPBinding.Use.LITERAL)
-public interface NewspaperMTOM
-{
- @WebMethod
- public EditionMTOM getNewspaperEdition(@WebParam(name = "id") String newspaperId);
-
- @WebMethod
- public String[] getNewspaperEditionIdList(@WebParam(name = "from") Date from, @WebParam(name = "to") Date to);
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/NewspaperMTOM.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.news;
+
+//$Id$
+
+import java.util.Date;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * The MTOM newspaper endpoint interface
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@WebService(targetNamespace = "http://org.jboss.ws/samples/news")
+@SOAPBinding(style = SOAPBinding.Style.RPC,
+ use = SOAPBinding.Use.LITERAL)
+public interface NewspaperMTOM
+{
+ @WebMethod
+ public EditionMTOM getNewspaperEdition(@WebParam(name = "id") String newspaperId);
+
+ @WebMethod
+ public String[] getNewspaperEditionIdList(@WebParam(name = "from") Date from, @WebParam(name = "to") Date to);
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/NewspaperMTOMEndpoint.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,53 +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.test.ws.jaxws.samples.news;
-
-//$Id$
-
-import javax.ejb.Stateless;
-import javax.jws.WebService;
-import javax.jws.soap.SOAPBinding;
-import javax.xml.ws.BindingType;
-
-import org.jboss.wsf.spi.annotation.WebContext;
-
-/**
- * The MTOM newspaper endpoint
- *
- * @author alessio.soldano(a)jboss.org
- * @since 31-Jan-2008
- */
-@Stateless
-@WebService(endpointInterface = "org.jboss.test.ws.jaxws.samples.news.NewspaperMTOM",
- name = "NewspaperMTOMEndpoint",
- targetNamespace = "http://org.jboss.ws/samples/news",
- serviceName = "NewspaperMTOMService")
-@SOAPBinding(style = SOAPBinding.Style.RPC,
- use = SOAPBinding.Use.LITERAL)
-@WebContext(contextRoot="/news",
- urlPattern="/newspaper/mtom")
-@BindingType(value = "http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true")
-//@HandlerChain(file = "jaxws-handlers-server.xml")
-public class NewspaperMTOMEndpoint extends AbstractNewspaperMTOMEndpoint implements NewspaperMTOM
-{
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/NewspaperMTOMEndpoint.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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.news;
+
+//$Id$
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.xml.ws.BindingType;
+
+import org.jboss.wsf.spi.annotation.WebContext;
+
+/**
+ * The MTOM newspaper endpoint
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@Stateless
+@WebService(endpointInterface = "org.jboss.test.ws.jaxws.samples.news.NewspaperMTOM",
+ name = "NewspaperMTOMEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/news",
+ serviceName = "NewspaperMTOMService")
+@SOAPBinding(style = SOAPBinding.Style.RPC,
+ use = SOAPBinding.Use.LITERAL)
+@WebContext(contextRoot="/news",
+ urlPattern="/newspaper/mtom")
+@BindingType(value = "http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true")
+//@HandlerChain(file = "jaxws-handlers-server.xml")
+public class NewspaperMTOMEndpoint extends AbstractNewspaperMTOMEndpoint implements NewspaperMTOM
+{
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/NewspaperSWA.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,49 +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.test.ws.jaxws.samples.news;
-
-//$Id$
-
-import java.util.Date;
-
-import javax.jws.WebMethod;
-import javax.jws.WebParam;
-import javax.jws.WebService;
-import javax.jws.soap.SOAPBinding;
-
-/**
- * The SWA newspaper endpoint interface
- *
- * @author alessio.soldano(a)jboss.org
- * @since 31-Jan-2008
- */
-@WebService(targetNamespace = "http://org.jboss.ws/samples/news")
-@SOAPBinding(style = SOAPBinding.Style.RPC,
- use = SOAPBinding.Use.LITERAL)
-public interface NewspaperSWA
-{
- @WebMethod
- public EditionSWA getNewspaperEdition(@WebParam(name = "id") String newspaperId);
-
- @WebMethod
- public String[] getNewspaperEditionIdList(@WebParam(name = "from") Date from, @WebParam(name = "to") Date to);
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/NewspaperSWA.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.news;
+
+//$Id$
+
+import java.util.Date;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * The SWA newspaper endpoint interface
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@WebService(targetNamespace = "http://org.jboss.ws/samples/news")
+@SOAPBinding(style = SOAPBinding.Style.RPC,
+ use = SOAPBinding.Use.LITERAL)
+public interface NewspaperSWA
+{
+ @WebMethod
+ public EditionSWA getNewspaperEdition(@WebParam(name = "id") String newspaperId);
+
+ @WebMethod
+ public String[] getNewspaperEditionIdList(@WebParam(name = "from") Date from, @WebParam(name = "to") Date to);
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/NewspaperSWAEndpoint.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,50 +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.test.ws.jaxws.samples.news;
-
-//$Id$
-
-import javax.ejb.Stateless;
-import javax.jws.WebService;
-import javax.jws.soap.SOAPBinding;
-
-import org.jboss.wsf.spi.annotation.WebContext;
-
-/**
- * The SWA newspaper endpoint
- *
- * @author alessio.soldano(a)jboss.org
- * @since 31-Jan-2008
- */
-@Stateless
-@WebService(endpointInterface = "org.jboss.test.ws.jaxws.samples.news.NewspaperSWA",
- name = "NewspaperSWAEndpoint",
- targetNamespace = "http://org.jboss.ws/samples/news",
- serviceName = "NewspaperSWAService")
-@SOAPBinding(style = SOAPBinding.Style.RPC,
- use = SOAPBinding.Use.LITERAL)
-@WebContext(contextRoot="/news",
- urlPattern="/newspaper/swa")
-public class NewspaperSWAEndpoint extends AbstractNewspaperSWAEndpoint implements NewspaperSWA
-{
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/NewspaperSWAEndpoint.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+
+//$Id$
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.jboss.wsf.spi.annotation.WebContext;
+
+/**
+ * The SWA newspaper endpoint
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@Stateless
+@WebService(endpointInterface = "org.jboss.test.ws.jaxws.samples.news.NewspaperSWA",
+ name = "NewspaperSWAEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/news",
+ serviceName = "NewspaperSWAService")
+@SOAPBinding(style = SOAPBinding.Style.RPC,
+ use = SOAPBinding.Use.LITERAL)
+@WebContext(contextRoot="/news",
+ urlPattern="/newspaper/swa")
+public class NewspaperSWAEndpoint extends AbstractNewspaperSWAEndpoint implements NewspaperSWA
+{
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/PressRelease.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,65 +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.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;
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/PressRelease.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/PressReleaseEndpoint.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,49 +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.test.ws.jaxws.samples.news;
-
-//$Id$
-
-import javax.ejb.Stateless;
-import javax.jws.WebService;
-import javax.jws.soap.SOAPBinding;
-
-import org.jboss.wsf.spi.annotation.WebContext;
-
-/**
- * The press release endpoint
- *
- * @author alessio.soldano(a)jboss.org
- * @since 31-Jan-2008
- */
-@Stateless
-@WebService(name = "PressReleaseEndpoint",
- targetNamespace = "http://org.jboss.ws/samples/news",
- serviceName = "PressReleaseService")
-@SOAPBinding(style = SOAPBinding.Style.DOCUMENT,
- use = SOAPBinding.Use.LITERAL)
-@WebContext(contextRoot="/news",
- urlPattern="/pressRelease")
-public class PressReleaseEndpoint extends AbstractPressReleaseEndpoint
-{
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/PressReleaseEndpoint.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.news;
+
+//$Id$
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.jboss.wsf.spi.annotation.WebContext;
+
+/**
+ * The press release endpoint
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@Stateless
+@WebService(name = "PressReleaseEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/news",
+ serviceName = "PressReleaseService")
+@SOAPBinding(style = SOAPBinding.Style.DOCUMENT,
+ use = SOAPBinding.Use.LITERAL)
+@WebContext(contextRoot="/news",
+ urlPattern="/pressRelease")
+public class PressReleaseEndpoint extends AbstractPressReleaseEndpoint
+{
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/Printer.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,121 +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.test.ws.jaxws.samples.news;
-
-//$Id$
-
-import java.io.IOException;
-import java.net.URL;
-import java.util.GregorianCalendar;
-
-import javax.activation.DataHandler;
-import javax.xml.datatype.XMLGregorianCalendar;
-import javax.xml.namespace.QName;
-import javax.xml.ws.BindingProvider;
-import javax.xml.ws.soap.SOAPBinding;
-
-import org.jboss.test.ws.jaxws.samples.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;
-
-/**
- * The printer client
- *
- * @author alessio.soldano(a)jboss.org
- * @since 31-Jan-2008
- */
-public class Printer
-{
- protected NewspaperMTOMEndpoint mtomEndpoint;
- protected NewspaperSWAEndpoint swaEndpoint;
- protected boolean mtom;
-
- public Printer(URL url, boolean mtom)
- {
- this.mtom = mtom;
- if (mtom)
- {
- NewspaperMTOMService mtomService = new NewspaperMTOMService(url, new QName("http://org.jboss.ws/samples/news", "NewspaperMTOMService"));
- mtomEndpoint = mtomService.getNewspaperMTOMEndpointPort();
- }
- else
- {
- NewspaperSWAService swaService = new NewspaperSWAService(url, new QName("http://org.jboss.ws/samples/news", "NewspaperSWAService"));
- swaEndpoint = swaService.getNewspaperSWAEndpointPort();
- }
- }
-
- public void run() throws IOException
- {
- XMLGregorianCalendar from = new XMLGregorianCalendarImpl(new GregorianCalendar(2008,1,10));
- XMLGregorianCalendar to = new XMLGregorianCalendarImpl(new GregorianCalendar(2008,1,14));
- if (mtom)
- {
- ((SOAPBinding)(((BindingProvider)mtomEndpoint).getBinding())).setMTOMEnabled(true);
- for (String id : mtomEndpoint.getNewspaperEditionIdList(from, to).getItem())
- {
- System.out.println("Downloading newspaper document: " + id);
- EditionMTOM edition = mtomEndpoint.getNewspaperEdition(id);
- System.out.println("Content: " + edition.getContent());
- }
- }
- else
- {
- for (String id : swaEndpoint.getNewspaperEditionIdList(from, to).getItem())
- {
- System.out.println("Downloading newspaper document: " + id);
- EditionSWA edition = swaEndpoint.getNewspaperEdition(id);
- DataHandler dh = edition.getContent();
- System.out.println("Content type: " + dh.getContentType());
- System.out.println("Content: " + dh.getContent());
- }
- }
- }
-
- public static void main(String[] args)
- {
- try
- {
- if (args.length == 1)
- {
- Printer printer = new Printer(new URL(args[0]), args[0].endsWith("mtom?wsdl"));
- printer.run();
- }
- else
- {
- System.out.println("Printer client usage:");
- System.out.println("wsrunclient.sh -classpath agency.jar org.jboss.test.ws.jaxws.samples.news.Printer http://host:port/news/newspaper/mtom?wsdl");
- System.out.println("or");
- System.out.println("wsrunclient.sh -classpath agency.jar org.jboss.test.ws.jaxws.samples.news.Printer http://host:port/news/newspaper/swa?wsdl");
- }
- }
- catch (Exception e)
- {
- e.printStackTrace();
- }
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/Printer.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -0,0 +1,121 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.news;
+
+//$Id$
+
+import java.io.IOException;
+import java.net.URL;
+import java.util.GregorianCalendar;
+
+import javax.activation.DataHandler;
+import javax.xml.datatype.XMLGregorianCalendar;
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.soap.SOAPBinding;
+
+import org.jboss.test.ws.jaxws.samples.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;
+
+/**
+ * The printer client
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class Printer
+{
+ protected NewspaperMTOMEndpoint mtomEndpoint;
+ protected NewspaperSWAEndpoint swaEndpoint;
+ protected boolean mtom;
+
+ public Printer(URL url, boolean mtom)
+ {
+ this.mtom = mtom;
+ if (mtom)
+ {
+ NewspaperMTOMService mtomService = new NewspaperMTOMService(url, new QName("http://org.jboss.ws/samples/news", "NewspaperMTOMService"));
+ mtomEndpoint = mtomService.getNewspaperMTOMEndpointPort();
+ }
+ else
+ {
+ NewspaperSWAService swaService = new NewspaperSWAService(url, new QName("http://org.jboss.ws/samples/news", "NewspaperSWAService"));
+ swaEndpoint = swaService.getNewspaperSWAEndpointPort();
+ }
+ }
+
+ public void run() throws IOException
+ {
+ XMLGregorianCalendar from = new XMLGregorianCalendarImpl(new GregorianCalendar(2008,1,10));
+ XMLGregorianCalendar to = new XMLGregorianCalendarImpl(new GregorianCalendar(2008,1,14));
+ if (mtom)
+ {
+ ((SOAPBinding)(((BindingProvider)mtomEndpoint).getBinding())).setMTOMEnabled(true);
+ for (String id : mtomEndpoint.getNewspaperEditionIdList(from, to).getItem())
+ {
+ System.out.println("Downloading newspaper document: " + id);
+ EditionMTOM edition = mtomEndpoint.getNewspaperEdition(id);
+ System.out.println("Content: " + edition.getContent());
+ }
+ }
+ else
+ {
+ for (String id : swaEndpoint.getNewspaperEditionIdList(from, to).getItem())
+ {
+ System.out.println("Downloading newspaper document: " + id);
+ EditionSWA edition = swaEndpoint.getNewspaperEdition(id);
+ DataHandler dh = edition.getContent();
+ System.out.println("Content type: " + dh.getContentType());
+ System.out.println("Content: " + dh.getContent());
+ }
+ }
+ }
+
+ public static void main(String[] args)
+ {
+ try
+ {
+ if (args.length == 1)
+ {
+ Printer printer = new Printer(new URL(args[0]), args[0].endsWith("mtom?wsdl"));
+ printer.run();
+ }
+ else
+ {
+ System.out.println("Printer client usage:");
+ System.out.println("wsrunclient.sh -classpath agency.jar org.jboss.test.ws.jaxws.samples.news.Printer http://host:port/news/newspaper/mtom?wsdl");
+ System.out.println("or");
+ System.out.println("wsrunclient.sh -classpath agency.jar org.jboss.test.ws.jaxws.samples.news.Printer http://host:port/news/newspaper/swa?wsdl");
+ }
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecureAgency.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,66 +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.test.ws.jaxws.samples.news;
-
-//$Id$
-
-import java.net.URL;
-
-import org.jboss.ws.core.StubExt;
-
-/**
- * The press agency client using WS-Security
- *
- * @author alessio.soldano(a)jboss.org
- * @since 31-Jan-2008
- */
-public class SecureAgency extends Agency
-{
- public SecureAgency(URL url)
- {
- super(url);
- ((StubExt)endpoint).setConfigName("Standard WSSecurity Client");
- }
-
- public static void main(String[] args)
- {
- try
- {
- if (args.length == 3)
- {
- Agency agency = new SecureAgency(new URL(args[0]));
- agency.run(args[1], args[2]);
- System.out.println("Press release sent.");
- }
- else
- {
- System.out.println("SecureAgency client usage:");
- System.out.println("./wsrunclient.sh -classpath agency.jar org.jboss.test.ws.jaxws.samples.news.SecureAgency " +
- "http://localhost.localdomain:8080/news/pressRelease?wsdl title body");
- }
- }
- catch (Exception e)
- {
- e.printStackTrace();
- }
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecureAgency.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -0,0 +1,66 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.news;
+
+//$Id$
+
+import java.net.URL;
+
+import org.jboss.ws.core.StubExt;
+
+/**
+ * The press agency client using WS-Security
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class SecureAgency extends Agency
+{
+ public SecureAgency(URL url)
+ {
+ super(url);
+ ((StubExt)endpoint).setConfigName("Standard WSSecurity Client");
+ }
+
+ public static void main(String[] args)
+ {
+ try
+ {
+ if (args.length == 3)
+ {
+ Agency agency = new SecureAgency(new URL(args[0]));
+ agency.run(args[1], args[2]);
+ System.out.println("Press release sent.");
+ }
+ else
+ {
+ System.out.println("SecureAgency client usage:");
+ System.out.println("./wsrunclient.sh -classpath agency.jar org.jboss.test.ws.jaxws.samples.news.SecureAgency " +
+ "http://localhost.localdomain:8080/news/pressRelease?wsdl title body");
+ }
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecureNewspaperMTOMEndpoint.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,50 +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.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
-{
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecureNewspaperMTOMEndpoint.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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
+{
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecureNewspaperSWAEndpoint.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,48 +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.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
-{
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecureNewspaperSWAEndpoint.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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
+{
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecurePressReleaseEndpoint.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,51 +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.test.ws.jaxws.samples.news;
-
-//$Id$
-
-import javax.ejb.Stateless;
-import javax.jws.WebService;
-import javax.jws.soap.SOAPBinding;
-
-import org.jboss.ws.annotation.EndpointConfig;
-import org.jboss.wsf.spi.annotation.WebContext;
-
-/**
- * The press release endpoint enforcing authentication plus message encryption and signature
- *
- * @author alessio.soldano(a)jboss.org
- * @since 31-Jan-2008
- */
-@Stateless
-@WebService(name = "PressReleaseEndpoint",
- targetNamespace = "http://org.jboss.ws/samples/news",
- serviceName = "PressReleaseService")
-@SOAPBinding(style = SOAPBinding.Style.DOCUMENT,
- use = SOAPBinding.Use.LITERAL)
-@WebContext(contextRoot="/news",
- urlPattern="/pressRelease")
-@EndpointConfig(configName = "Standard WSSecurity Endpoint")
-public class SecurePressReleaseEndpoint extends AbstractPressReleaseEndpoint
-{
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecurePressReleaseEndpoint.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+
+//$Id$
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.jboss.ws.annotation.EndpointConfig;
+import org.jboss.wsf.spi.annotation.WebContext;
+
+/**
+ * The press release endpoint enforcing authentication plus message encryption and signature
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@Stateless
+@WebService(name = "PressReleaseEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/news",
+ serviceName = "PressReleaseService")
+@SOAPBinding(style = SOAPBinding.Style.DOCUMENT,
+ use = SOAPBinding.Use.LITERAL)
+@WebContext(contextRoot="/news",
+ urlPattern="/pressRelease")
+@EndpointConfig(configName = "Standard WSSecurity Endpoint")
+public class SecurePressReleaseEndpoint extends AbstractPressReleaseEndpoint
+{
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecurePrinter.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,71 +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.test.ws.jaxws.samples.news;
-
-//$Id$
-
-import java.net.URL;
-
-import javax.xml.ws.BindingProvider;
-
-/**
- * The printer client using https transport
- *
- * @author alessio.soldano(a)jboss.org
- * @since 31-Jan-2008
- */
-public class SecurePrinter extends Printer
-{
- public SecurePrinter(URL url, boolean mtom)
- {
- super(url,mtom);
- BindingProvider bp = mtom ? (BindingProvider)mtomEndpoint : (BindingProvider)swaEndpoint;
- bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "kermit");
- bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "thefrog");
- System.setProperty("org.jboss.security.ignoreHttpsHost", "true");
- }
-
- public static void main(String[] args)
- {
- try
- {
- if (args.length == 1)
- {
- SecurePrinter printer = new SecurePrinter(new URL(args[0]), args[0].endsWith("mtom?wsdl"));
- printer.run();
- }
- else
- {
- System.out.println("SecurePrinter client usage:");
- System.out.println("wsrunclient.sh -classpath agency.jar -Djavax.net.ssl.trustStore=truststorePath -Djavax.net.ssl.trustStorePassword=truststorePwd " +
- "org.jboss.test.ws.jaxws.samples.news.SecurePrinter http://host:port/news/newspaper/mtom?wsdl");
- System.out.println("or");
- System.out.println("wsrunclient.sh -classpath agency.jar -Djavax.net.ssl.trustStore=truststorePath -Djavax.net.ssl.trustStorePassword=truststorePwd " +
- "org.jboss.test.ws.jaxws.samples.news.SecurePrinter http://host:port/news/newspaper/swa?wsdl");
- }
- }
- catch (Exception e)
- {
- e.printStackTrace();
- }
- }
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecurePrinter.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -0,0 +1,71 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.news;
+
+//$Id$
+
+import java.net.URL;
+
+import javax.xml.ws.BindingProvider;
+
+/**
+ * The printer client using https transport
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class SecurePrinter extends Printer
+{
+ public SecurePrinter(URL url, boolean mtom)
+ {
+ super(url,mtom);
+ BindingProvider bp = mtom ? (BindingProvider)mtomEndpoint : (BindingProvider)swaEndpoint;
+ bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "kermit");
+ bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "thefrog");
+ System.setProperty("org.jboss.security.ignoreHttpsHost", "true");
+ }
+
+ public static void main(String[] args)
+ {
+ try
+ {
+ if (args.length == 1)
+ {
+ SecurePrinter printer = new SecurePrinter(new URL(args[0]), args[0].endsWith("mtom?wsdl"));
+ printer.run();
+ }
+ else
+ {
+ System.out.println("SecurePrinter client usage:");
+ System.out.println("wsrunclient.sh -classpath agency.jar -Djavax.net.ssl.trustStore=truststorePath -Djavax.net.ssl.trustStorePassword=truststorePwd " +
+ "org.jboss.test.ws.jaxws.samples.news.SecurePrinter http://host:port/news/newspaper/mtom?wsdl");
+ System.out.println("or");
+ System.out.println("wsrunclient.sh -classpath agency.jar -Djavax.net.ssl.trustStore=truststorePath -Djavax.net.ssl.trustStorePassword=truststorePwd " +
+ "org.jboss.test.ws.jaxws.samples.news.SecurePrinter http://host:port/news/newspaper/swa?wsdl");
+ }
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated (from rev 5936, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated)
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency (from rev 5936, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency)
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/ObjectFactory.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,79 +0,0 @@
-
-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);
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/ObjectFactory.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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);
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressRelease.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,144 +0,0 @@
-
-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;
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressRelease.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressReleaseEndpoint.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,32 +0,0 @@
-
-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);
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressReleaseEndpoint.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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);
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressReleaseService.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,53 +0,0 @@
-
-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);
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressReleaseService.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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);
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/SubmitPressRelease.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,60 +0,0 @@
-
-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;
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/SubmitPressRelease.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/SubmitPressReleaseResponse.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,32 +0,0 @@
-
-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 {
-
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/SubmitPressReleaseResponse.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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 {
+
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/package-info.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,2 +0,0 @@
-(a)javax.xml.bind.annotation.XmlSchema(namespace = "http://org.jboss.ws/samples/news")
-package org.jboss.test.ws.jaxws.samples.news.generated.agency;
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/package-info.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer (from rev 5936, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer)
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom (from rev 5936, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom)
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/EditionMTOM.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,120 +0,0 @@
-
-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;
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/EditionMTOM.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/NewspaperMTOMEndpoint.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,50 +0,0 @@
-
-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);
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/NewspaperMTOMEndpoint.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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);
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/NewspaperMTOMService.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,53 +0,0 @@
-
-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);
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/NewspaperMTOMService.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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);
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/ObjectFactory.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,48 +0,0 @@
-
-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();
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/ObjectFactory.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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();
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/StringArray.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,69 +0,0 @@
-
-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;
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/StringArray.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/package-info.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,2 +0,0 @@
-(a)javax.xml.bind.annotation.XmlSchema(namespace = "http://jaxb.dev.java.net/array")
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.mtom;
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/package-info.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa (from rev 5936, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa)
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/EditionSWA.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,122 +0,0 @@
-
-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;
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/EditionSWA.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/NewspaperSWAEndpoint.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,50 +0,0 @@
-
-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);
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/NewspaperSWAEndpoint.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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);
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/NewspaperSWAService.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,53 +0,0 @@
-
-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);
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/NewspaperSWAService.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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);
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/ObjectFactory.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,61 +0,0 @@
-
-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);
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/ObjectFactory.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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);
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/StringArray.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,69 +0,0 @@
-
-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;
- }
-
-}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/StringArray.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
+ }
+
+}
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/package-info.java 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,2 +0,0 @@
-(a)javax.xml.bind.annotation.XmlSchema(namespace = "http://jaxb.dev.java.net/array")
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.swa;
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/package-info.java (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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;
Copied: stack/native/trunk/src/test/resources/jaxws/samples/dar (from rev 5936, stack/native/trunk/src/test/resources/jaxws/samples/dar)
Copied: stack/native/trunk/src/test/resources/jaxws/samples/dar/META-INF (from rev 5936, stack/native/trunk/src/test/resources/jaxws/samples/dar/META-INF)
Deleted: stack/native/trunk/src/test/resources/jaxws/samples/dar/META-INF/jboss-service.xml
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/samples/dar/META-INF/jboss-service.xml 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/resources/jaxws/samples/dar/META-INF/jboss-service.xml 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<server>
-</server>
\ No newline at end of file
Copied: stack/native/trunk/src/test/resources/jaxws/samples/dar/META-INF/jboss-service.xml (from rev 5936, stack/native/trunk/src/test/resources/jaxws/samples/dar/META-INF/jboss-service.xml)
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/samples/dar/META-INF/jboss-service.xml (rev 0)
+++ stack/native/trunk/src/test/resources/jaxws/samples/dar/META-INF/jboss-service.xml 2008-03-12 13:47:41 UTC (rev 5940)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+</server>
\ No newline at end of file
Copied: stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF (from rev 5936, stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF)
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF/jboss-web.xml 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,7 +0,0 @@
-<?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
Copied: stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF/jboss-web.xml (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF/web.xml 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,23 +0,0 @@
-<?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
Copied: stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF/web.xml (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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
Copied: stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF/wsdl (from rev 5936, stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF/wsdl)
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF/wsdl/reply.wsdl 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,54 +0,0 @@
-<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>
Copied: stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF/wsdl/reply.wsdl (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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>
Copied: stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF-jms (from rev 5936, stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF-jms)
Deleted: stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF-jms/jboss-web.xml
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF-jms/jboss-web.xml 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF-jms/jboss-web.xml 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,7 +0,0 @@
-<?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-jms-client</context-root>
-</jboss-web>
\ No newline at end of file
Copied: stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF-jms/jboss-web.xml (from rev 5936, stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF-jms/jboss-web.xml)
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF-jms/jboss-web.xml (rev 0)
+++ stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF-jms/jboss-web.xml 2008-03-12 13:47:41 UTC (rev 5940)
@@ -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-jms-client</context-root>
+</jboss-web>
\ No newline at end of file
Deleted: stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF-jms/web.xml
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF-jms/web.xml 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF-jms/web.xml 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,15 +0,0 @@
-<?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 JMS client app</display-name>
- <servlet>
- <servlet-name>JMSClient</servlet-name>
- <servlet-class>org.jboss.test.ws.jaxws.samples.dar.JMSClient</servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>JMSClient</servlet-name>
- <url-pattern>/JMSClient</url-pattern>
- </servlet-mapping>
-</web-app>
\ No newline at end of file
Copied: stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF-jms/web.xml (from rev 5936, stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF-jms/web.xml)
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF-jms/web.xml (rev 0)
+++ stack/native/trunk/src/test/resources/jaxws/samples/dar/WEB-INF-jms/web.xml 2008-03-12 13:47:41 UTC (rev 5940)
@@ -0,0 +1,15 @@
+<?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 JMS client app</display-name>
+ <servlet>
+ <servlet-name>JMSClient</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.samples.dar.JMSClient</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>JMSClient</servlet-name>
+ <url-pattern>/JMSClient</url-pattern>
+ </servlet-mapping>
+</web-app>
\ No newline at end of file
Copied: stack/native/trunk/src/test/resources/jaxws/samples/news (from rev 5936, stack/native/trunk/src/test/resources/jaxws/samples/news)
Copied: stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF (from rev 5936, stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF)
Deleted: stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/Alice.cer
===================================================================
(Binary files differ)
Copied: stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/Alice.cer (from rev 5936, stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/Alice.cer)
===================================================================
(Binary files differ)
Deleted: stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/Bob.cer
===================================================================
(Binary files differ)
Copied: stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/Bob.cer (from rev 5936, stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/Bob.cer)
===================================================================
(Binary files differ)
Deleted: stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/alice-sign_enc.jks
===================================================================
(Binary files differ)
Copied: stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/alice-sign_enc.jks (from rev 5936, stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/alice-sign_enc.jks)
===================================================================
(Binary files differ)
Deleted: stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/bob-sign_enc.jks
===================================================================
(Binary files differ)
Copied: stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/bob-sign_enc.jks (from rev 5936, stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/bob-sign_enc.jks)
===================================================================
(Binary files differ)
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/jboss-wsse-client.xml 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,21 +0,0 @@
-<?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">
-
- <key-store-file>META-INF/alice-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="bob"/>
- <requires>
- <signature/>
- <encryption/>
- </requires>
- </config>
-</jboss-ws-security>
\ No newline at end of file
Copied: stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/jboss-wsse-client.xml (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -0,0 +1,21 @@
+<?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">
+
+ <key-store-file>META-INF/alice-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="bob"/>
+ <requires>
+ <signature/>
+ <encryption/>
+ </requires>
+ </config>
+</jboss-ws-security>
\ No newline at end of file
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/jboss-wsse-server.xml 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,21 +0,0 @@
-<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>
Copied: stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/jboss-wsse-server.xml (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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>
Deleted: 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 2008-03-12 09:57:55 UTC (rev 5936)
+++ stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/readme.txt 2008-03-12 13:47:41 UTC (rev 5940)
@@ -1,85 +0,0 @@
- ------------------------------------
- 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
-
Copied: stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/readme.txt (from rev 5936, 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-03-12 13:47:41 UTC (rev 5940)
@@ -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
+
Deleted: stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/wsse10.truststore
===================================================================
(Binary files differ)
Copied: stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/wsse10.truststore (from rev 5936, stack/native/trunk/src/test/resources/jaxws/samples/news/META-INF/wsse10.truststore)
===================================================================
(Binary files differ)
18 years, 1 month
JBossWS SVN: r5939 - in stack/native/trunk: src/test/java/org/jboss/test/ws/jaxws/samples and 12 other directories.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-03-12 07:09:56 -0400 (Wed, 12 Mar 2008)
New Revision: 5939
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/AddressingClient.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/AsyncProcessRequest.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Bus.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Client.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ClientHelper.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarAddressingEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarJMSEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarMessageBean.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarProcessor.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarReplyEndpointImpl.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarRequest.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponse.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponseMessageBean.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/JMSClient.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ReplyConverter.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ReplyToServlet.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Route.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ServiceRequest.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Stop.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/Bus.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarRequest.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarResponse.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarService.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/ObjectFactory.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/Route.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/ServiceRequest.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/Stop.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/package-info.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperMTOMEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperSWAEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/AbstractPressReleaseEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/Agency.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/EditionMTOM.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/EditionSWA.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperMTOM.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperMTOMEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperSWA.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperSWAEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/PressRelease.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/PressReleaseEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/Printer.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecureAgency.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecureNewspaperMTOMEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecureNewspaperSWAEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecurePressReleaseEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecurePrinter.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/
stack/native/trunk/src/test/resources/jaxws/samples/advanced/
stack/native/trunk/src/test/resources/jaxws/samples/advanced/news/
Removed:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/
stack/native/trunk/src/test/resources/jaxws/samples/dar/
stack/native/trunk/src/test/resources/jaxws/samples/news/
Modified:
stack/native/trunk/ant-import-tests/build-samples-jaxws.xml
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/DarReplyEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/DarReplyService.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/DarResponse.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/ObjectFactory.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/Route.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/ServiceRequest.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/Stop.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/package-info.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/ObjectFactory.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/PressRelease.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/PressReleaseEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/PressReleaseService.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/SubmitPressRelease.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/SubmitPressReleaseResponse.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/package-info.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/EditionMTOM.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/NewspaperMTOMEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/NewspaperMTOMService.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/ObjectFactory.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/StringArray.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/package-info.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/EditionSWA.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/NewspaperSWAEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/NewspaperSWAService.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/ObjectFactory.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/StringArray.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/package-info.java
Log:
[JBWS-2031] Put advanced samples together with the retail sample
Modified: stack/native/trunk/ant-import-tests/build-samples-jaxws.xml
===================================================================
--- stack/native/trunk/ant-import-tests/build-samples-jaxws.xml 2008-03-12 11:02:53 UTC (rev 5938)
+++ stack/native/trunk/ant-import-tests/build-samples-jaxws.xml 2008-03-12 11:09:56 UTC (rev 5939)
@@ -21,82 +21,82 @@
<!-- jaxws-samples-dar -->
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-dar.jar">
<fileset dir="${tests.output.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/samples/dar/Bus.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/DarEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/DarProcessor.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/DarRequest.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/DarResponse.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/Route.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/ServiceRequest.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/Stop.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Bus.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarProcessor.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarRequest.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponse.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Route.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/ServiceRequest.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Stop.class"/>
</fileset>
</jar>
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-dar-client.jar">
<fileset dir="${tests.output.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/samples/dar/generated/*.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/ClientHelper.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/Client.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/*.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/ClientHelper.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Client.class"/>
</fileset>
</jar>
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-dar-addressing.jar">
<fileset dir="${tests.output.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/samples/dar/AsyncProcessRequest.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/Bus.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/DarAddressingEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/DarMessageBean.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/DarProcessor.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/DarRequest.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/DarResponse.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/ReplyConverter.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/Route.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/ServiceRequest.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/Stop.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/generated/reply/*.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/AsyncProcessRequest.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Bus.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarAddressingEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarMessageBean.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarProcessor.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarRequest.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponse.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/ReplyConverter.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Route.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/ServiceRequest.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Stop.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/*.class"/>
</fileset>
</jar>
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-dar-addressing-client.jar">
<fileset dir="${tests.output.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/samples/dar/generated/*.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/ClientHelper.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/AddressingClient.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/*.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/ClientHelper.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/AddressingClient.class"/>
</fileset>
</jar>
- <war warfile="${tests.output.dir}/libs/jaxws-samples-dar-addressing-client.war" webxml="${tests.output.dir}/resources/jaxws/samples/dar/WEB-INF/web.xml">
+ <war warfile="${tests.output.dir}/libs/jaxws-samples-dar-addressing-client.war" webxml="${tests.output.dir}/resources/jaxws/samples/advanced/dialaride/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/samples/dar/generated/reply/*.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/DarReplyEndpointImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/ReplyToServlet.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/*.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarReplyEndpointImpl.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/ReplyToServlet.class"/>
</classes>
- <webinf dir="${tests.output.dir}/resources/jaxws/samples/dar/WEB-INF">
+ <webinf dir="${tests.output.dir}/resources/jaxws/samples/advanced/dialaride/WEB-INF">
<include name="jboss-web.xml"/>
<include name="wsdl/reply.wsdl"/>
</webinf>
</war>
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-dar-jms.jar">
<fileset dir="${tests.output.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/samples/dar/Bus.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/DarJMSEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/DarProcessor.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/DarRequest.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/DarResponse.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/Route.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/ServiceRequest.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/Stop.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Bus.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarJMSEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarProcessor.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarRequest.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponse.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Route.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/ServiceRequest.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/Stop.class"/>
</fileset>
</jar>
- <war jarfile="${tests.output.dir}/libs/jaxws-samples-dar-jms-client.war" webxml="${tests.output.dir}/resources/jaxws/samples/dar/WEB-INF-jms/web.xml">
+ <war jarfile="${tests.output.dir}/libs/jaxws-samples-dar-jms-client.war" webxml="${tests.output.dir}/resources/jaxws/samples/advanced/dialaride/WEB-INF-jms/web.xml">
<fileset dir="${tests.output.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/samples/dar/generated/*.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/ClientHelper.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/dar/JMSClient.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/*.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/ClientHelper.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/JMSClient.class"/>
</fileset>
- <webinf dir="${tests.output.dir}/resources/jaxws/samples/dar/WEB-INF-jms">
+ <webinf dir="${tests.output.dir}/resources/jaxws/samples/advanced/dialaride/WEB-INF-jms">
<include name="jboss-web.xml"/>
</webinf>
</war>
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-dar-jms-client.jar">
<fileset dir="${tests.output.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/samples/dar/DarResponseMessageBean.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponseMessageBean.class"/>
</fileset>
</jar>
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-dar-jms-client.sar">
@@ -104,7 +104,7 @@
<include name="jaxws-samples-dar-jms-client.war"/>
<include name="jaxws-samples-dar-jms-client.jar"/>
</fileset>
- <metainf dir="${tests.output.dir}/resources/jaxws/samples/dar/META-INF">
+ <metainf dir="${tests.output.dir}/resources/jaxws/samples/advanced/dialaride/META-INF">
<include name="jboss-service.xml"/>
</metainf>
</jar>
@@ -129,48 +129,48 @@
<!-- jaxws-samples-news -->
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-news-step1-newspaper.jar">
<fileset dir="${tests.output.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/samples/news/PressRelease.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/AbstractPressReleaseEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/PressReleaseEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/NewspaperSWA.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/AbstractNewspaperSWAEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/NewspaperSWAEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/NewspaperMTOM.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/AbstractNewspaperMTOMEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/NewspaperMTOMEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/EditionSWA.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/EditionMTOM.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/jaxws-handlers-server.xml"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/PressRelease.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/AbstractPressReleaseEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/PressReleaseEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperSWA.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperSWAEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperSWAEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperMTOM.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperMTOMEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperMTOMEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/EditionSWA.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/EditionMTOM.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/jaxws-handlers-server.xml"/>
</fileset>
</jar>
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-news-step1-agency.jar">
<fileset dir="${tests.output.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/samples/news/generated/agency/*.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/Agency.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/*.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/Agency.class"/>
</fileset>
</jar>
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-news-step1-printer.jar">
<fileset dir="${tests.output.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/samples/news/generated/printer/**/*.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/Printer.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/**/*.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/Printer.class"/>
</fileset>
</jar>
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-news-step2-newspaper.jar">
<fileset dir="${tests.output.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/samples/news/PressRelease.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/AbstractPressReleaseEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/SecurePressReleaseEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/NewspaperSWA.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/AbstractNewspaperSWAEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/SecureNewspaperSWAEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/NewspaperMTOM.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/AbstractNewspaperMTOMEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/SecureNewspaperMTOMEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/EditionSWA.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/EditionMTOM.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/jaxws-handlers-server.xml"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/PressRelease.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/AbstractPressReleaseEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/SecurePressReleaseEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperSWA.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperSWAEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/SecureNewspaperSWAEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperMTOM.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperMTOMEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/SecureNewspaperMTOMEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/EditionSWA.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/EditionMTOM.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/jaxws-handlers-server.xml"/>
</fileset>
- <metainf dir="${tests.output.dir}/resources/jaxws/samples/news/META-INF">
+ <metainf dir="${tests.output.dir}/resources/jaxws/samples/advanced/news/META-INF">
<include name="jboss-wsse-server.xml"/>
<include name="bob-sign_enc.jks"/>
<include name="wsse10.truststore"/>
@@ -178,11 +178,11 @@
</jar>
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-news-step2-agency.jar">
<fileset dir="${tests.output.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/samples/news/generated/agency/*.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/Agency.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/SecureAgency.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/*.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/Agency.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/SecureAgency.class"/>
</fileset>
- <metainf dir="${tests.output.dir}/resources/jaxws/samples/news/META-INF">
+ <metainf dir="${tests.output.dir}/resources/jaxws/samples/advanced/news/META-INF">
<include name="jboss-wsse-client.xml"/>
<include name="alice-sign_enc.jks"/>
<include name="wsse10.truststore"/>
@@ -190,9 +190,9 @@
</jar>
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-news-step2-printer.jar">
<fileset dir="${tests.output.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/samples/news/generated/printer/**/*.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/Printer.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/news/SecurePrinter.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/**/*.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/Printer.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/news/SecurePrinter.class"/>
</fileset>
</jar>
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/AddressingClient.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/AddressingClient.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/AddressingClient.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/AddressingClient.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,137 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+//$Id$
+
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.net.URL;
+import java.util.Date;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Response;
+import javax.xml.ws.addressing.AddressingBuilder;
+import javax.xml.ws.addressing.AddressingProperties;
+import javax.xml.ws.addressing.AttributedURI;
+import javax.xml.ws.addressing.JAXWSAConstants;
+
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.DarEndpoint;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.DarRequest;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.DarResponse;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.DarService;
+import org.jboss.ws.core.StubExt;
+import org.jboss.ws.extensions.addressing.AddressingClientUtil;
+
+/**
+ * DAR addressing client; invokes the DAR addressing endpoint (sync, asynch and oneway)
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class AddressingClient
+{
+ protected DarEndpoint endpoint;
+
+ private static AddressingBuilder BUILDER;
+ private static final String WSA_TO = "http://org.jboss.test.ws.jaxws.samples.dar/server";
+ private static final String WSA_ACTION = "http://org.jboss.test.ws.jaxws.samples.dar/action/processIn";
+ private static final String WSA_ACTION_ONEWAY = "http://org.jboss.test.ws.jaxws.samples.dar/action/onewayProcessIn";
+
+ static
+ {
+ BUILDER = AddressingBuilder.getAddressingBuilder();
+ }
+
+ public AddressingClient(URL url)
+ {
+ DarService service = new DarService(url, new QName("http://org.jboss.ws/samples/dar", "DarService"));
+ endpoint = service.getDarEndpointPort();
+ ((StubExt)endpoint).setConfigName("Standard WSAddressing Client");
+ ClientHelper.setUsernamePassword((BindingProvider)endpoint, "kermit", "thefrog");
+ }
+
+ public void run(boolean asynch) throws Exception
+ {
+ configureAddressingProperties((BindingProvider)endpoint, WSA_ACTION, WSA_TO, "http://localhost:8080/dar-client/replyTo");
+ DarRequest request = ClientHelper.getRequest();
+ System.out.println(new Date() + " Sending request...");
+ if (asynch)
+ {
+ Response<DarResponse> resp = endpoint.processAsync(request);
+ System.out.println("Doing something interesting in the mean time... ;-) ");
+ resp.get();
+ }
+ else
+ {
+ endpoint.process(request);
+ }
+ //don't care about the response: it is null since the real one went to the replyTo address
+ System.out.println(new Date() + " Done.");
+ }
+
+ public void runOneway() throws Exception
+ {
+ configureAddressingProperties((BindingProvider)endpoint, WSA_ACTION_ONEWAY, WSA_TO, "http://localhost:8080/dar-client/replyService");
+ DarRequest request = ClientHelper.getRequest();
+ System.out.println(new Date() + " Sending request...");
+ endpoint.onewayProcess(request);
+ System.out.println(new Date() + " Done.");
+ }
+
+ private static void configureAddressingProperties(BindingProvider bp, String wsaAction, String wsaTo, String replyTo) throws URISyntaxException
+ {
+ AddressingProperties requestProps = AddressingClientUtil.createDefaultProps(wsaAction, wsaTo);
+ AttributedURI messageId = AddressingClientUtil.createMessageID();
+ System.out.println("Sent message ID: " + messageId.getURI());
+ requestProps.setMessageID(messageId);
+ requestProps.setReplyTo(BUILDER.newEndpointReference(new URI(replyTo)));
+ bp.getRequestContext().put(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND, requestProps);
+ }
+
+ public static void main(String[] args)
+ {
+ try
+ {
+ if (args.length == 1)
+ {
+ AddressingClient client = new AddressingClient(new URL(args[0]));
+ System.out.println("* Synchronous invocation: ");
+ client.run(false);
+ System.out.println("\n* Asynchronous invocation: ");
+ client.run(true);
+ System.out.println("\n* Oneway invocation: ");
+ client.runOneway();
+ }
+ else
+ {
+ System.out.println("AddressingClient usage:");
+ System.out.println("wsrunclient.sh -classpath AddressingClient.jar org.jboss.test.ws.jaxws.samples.dar.AddressingClient http://host:port/dar?wsdl");
+ }
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/AsyncProcessRequest.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/AsyncProcessRequest.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/AsyncProcessRequest.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/AsyncProcessRequest.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,57 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+import java.io.Serializable;
+import java.net.URI;
+
+public class AsyncProcessRequest implements Serializable
+{
+ private DarRequest request;
+ private URI replyTo;
+ private URI messageId;
+
+ public DarRequest getRequest()
+ {
+ return request;
+ }
+ public void setRequest(DarRequest request)
+ {
+ this.request = request;
+ }
+ public URI getReplyTo()
+ {
+ return replyTo;
+ }
+ public void setReplyTo(URI replyTo)
+ {
+ this.replyTo = replyTo;
+ }
+ public URI getMessageId()
+ {
+ return messageId;
+ }
+ public void setMessageId(URI messageId)
+ {
+ this.messageId = messageId;
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Bus.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/Bus.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Bus.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Bus.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,53 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+import java.io.Serializable;
+
+/**
+ * A bus with its id and max load (number of persons)
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class Bus implements Serializable
+{
+ private String id;
+ private int capacity;
+
+ public String getId()
+ {
+ return id;
+ }
+ public void setId(String id)
+ {
+ this.id = id;
+ }
+ public int getCapacity()
+ {
+ return capacity;
+ }
+ public void setCapacity(int capacity)
+ {
+ this.capacity = capacity;
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Client.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/Client.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Client.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Client.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,97 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+//$Id$
+
+import java.net.URL;
+import java.util.Date;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Response;
+
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.DarEndpoint;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.DarRequest;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.DarResponse;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.DarService;
+
+/**
+ * DAR client; invokes the DAR endpoint (sync, asynch)
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class Client
+{
+ protected DarEndpoint endpoint;
+
+ public Client(URL url)
+ {
+ DarService service = new DarService(url, new QName("http://org.jboss.ws/samples/dar", "DarService"));
+ endpoint = service.getDarEndpointPort();
+ ClientHelper.setUsernamePassword((BindingProvider)endpoint, "kermit", "thefrog");
+ }
+
+ public void run(boolean asynch) throws Exception
+ {
+ DarRequest request = ClientHelper.getRequest();
+ System.out.println(new Date() + " Sending request...");
+ DarResponse darResponse;
+ if (asynch)
+ {
+ Response<DarResponse> response = endpoint.processAsync(request);
+ System.out.println("Doing something interesting in the mean time... ;-) ");
+ darResponse = response.get();
+ }
+ else
+ {
+ darResponse = endpoint.process(request);
+ }
+ System.out.println(new Date() + " Response received: "+darResponse);
+ ClientHelper.printResponse(darResponse);
+ }
+
+ public static void main(String[] args)
+ {
+ try
+ {
+ if (args.length == 1)
+ {
+ Client client = new Client(new URL(args[0]));
+ System.out.println("* Synchronous invocation: ");
+ client.run(false);
+ System.out.println("\n* Asynchronous invocation: ");
+ client.run(true);
+ }
+ else
+ {
+ System.out.println("Client usage:");
+ System.out.println("wsrunclient.sh -classpath client.jar org.jboss.test.ws.jaxws.samples.dar.Client http://host:port/dar?wsdl");
+ }
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ClientHelper.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ClientHelper.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ClientHelper.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ClientHelper.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,94 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+import java.io.PrintStream;
+import java.util.GregorianCalendar;
+import java.util.List;
+
+import javax.xml.ws.BindingProvider;
+
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.Bus;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.DarRequest;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.DarResponse;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.Route;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.ServiceRequest;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.Stop;
+
+import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl;
+
+public class ClientHelper
+{
+ public static void setUsernamePassword(BindingProvider bp, String username, String password)
+ {
+ bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, username);
+ bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, password);
+ }
+
+ public static DarRequest getRequest()
+ {
+ DarRequest request = new DarRequest();
+ request.setMapId("map1234");
+ for (int s=0; s<5; s++)
+ {
+ ServiceRequest serviceRequest = new ServiceRequest();
+ Stop up = new Stop();
+ up.setNode(new Double(Math.random()*1000).intValue());
+ up.setTime(new XMLGregorianCalendarImpl(new GregorianCalendar()));
+ Stop down = new Stop();
+ down.setNode(new Double(Math.random()*1000).intValue());
+ down.setTime(new XMLGregorianCalendarImpl(new GregorianCalendar()));
+ serviceRequest.setFrom(up);
+ serviceRequest.setTo(down);
+ serviceRequest.setPeople(new Double(Math.random()*3).intValue()+1);
+ serviceRequest.setId("Req" + s);
+ request.getRequests().add(serviceRequest);
+ }
+ for (int b=0; b<2; b++)
+ {
+ Bus bus = new Bus();
+ bus.setCapacity(10);
+ bus.setId("Bus" + b);
+ request.getBuses().add(bus);
+ }
+ return request;
+ }
+
+ public static void printResponse(DarResponse response)
+ {
+ printResponse(response, System.out);
+ }
+
+ public static void printResponse(DarResponse response, PrintStream output)
+ {
+ List<Route> routes = response.getRoutes();
+ for (Route route : routes)
+ {
+ output.print(route.getBusId() + ": ");
+ for (Stop stop : route.getStops())
+ {
+ output.print(stop.getNode() + " ");
+ }
+ output.print("\n");
+ }
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarAddressingEndpoint.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarAddressingEndpoint.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarAddressingEndpoint.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarAddressingEndpoint.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,130 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+//$Id$
+
+import javax.annotation.Resource;
+import javax.ejb.Stateless;
+import javax.jms.ObjectMessage;
+import javax.jms.Queue;
+import javax.jms.QueueConnection;
+import javax.jms.QueueConnectionFactory;
+import javax.jms.QueueSender;
+import javax.jms.QueueSession;
+import javax.jms.Session;
+import javax.jws.Oneway;
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.naming.InitialContext;
+import javax.xml.ws.Action;
+import javax.xml.ws.WebServiceContext;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.addressing.AddressingProperties;
+import javax.xml.ws.addressing.JAXWSAConstants;
+
+import org.jboss.annotation.security.SecurityDomain;
+import org.jboss.logging.Logger;
+import org.jboss.ws.annotation.EndpointConfig;
+import org.jboss.wsf.spi.annotation.WebContext;
+
+
+/**
+ * Addressing endpoint; performs sync and async DAR route optimization
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@Stateless
+@WebService(name = "DarEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/dar",
+ serviceName = "DarService")
+@SOAPBinding(style = SOAPBinding.Style.RPC,
+ use = SOAPBinding.Use.LITERAL)
+@SecurityDomain("JBossWS")
+@WebContext(contextRoot="/dar",
+ urlPattern="/*",
+ authMethod="BASIC",
+ transportGuarantee="NONE",
+ secureWSDLAccess=false)
+@EndpointConfig(configName = "Standard WSAddressing Endpoint")
+public class DarAddressingEndpoint
+{
+ @Resource
+ private WebServiceContext ctx;
+ private static Logger log = Logger.getLogger(DarAddressingEndpoint.class);
+
+ @WebMethod(operationName = "process", action = "http://org.jboss.test.ws.jaxws.samples.dar/action/processIn")
+ @Action(input = "http://org.jboss.test.ws.jaxws.samples.dar/action/processIn", output = "http://org.jboss.test.ws.jaxws.samples.dar/action/processOut")
+ public DarResponse process(DarRequest request)
+ {
+ DarProcessor processor = new DarProcessor();
+ AddressingProperties props = (AddressingProperties)ctx.getMessageContext().get(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND);
+ if (props!=null && props.getReplyTo()!=null)
+ {
+ System.out.println(props.getReplyTo().getAddress().getURI());
+ }
+ return processor.process(request);
+ }
+
+
+
+ @WebMethod(operationName = "onewayProcess", action = "http://org.jboss.test.ws.jaxws.samples.dar/action/onewayProcessIn")
+ @Action(input = "http://org.jboss.test.ws.jaxws.samples.dar/action/onewayProcessIn")
+ @Oneway
+ public void onewayProcess(DarRequest request)
+ {
+ QueueSession queueSession =null;
+ QueueSender sender = null;
+ try {
+ InitialContext context = new InitialContext();
+ QueueConnectionFactory connectionFactory = (QueueConnectionFactory)context.lookup("ConnectionFactory");
+ QueueConnection con = connectionFactory.createQueueConnection();
+ queueSession = con.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
+ Queue queue = (Queue)context.lookup("queue/DarQueue");
+ sender = queueSession.createSender(queue);
+ AsyncProcessRequest asyncRequest = new AsyncProcessRequest();
+ asyncRequest.setRequest(request);
+ AddressingProperties props = (AddressingProperties)ctx.getMessageContext().get(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND);
+ asyncRequest.setReplyTo(props.getReplyTo().getAddress().getURI());
+ asyncRequest.setMessageId(props.getMessageID().getURI());
+ ObjectMessage message = queueSession.createObjectMessage(asyncRequest);
+ sender.send(message);
+ log.info("AsyncProcessRequest sent...");
+ } catch (Exception e) {
+ throw new WebServiceException(e);
+ } finally {
+ try
+ {
+ sender.close();
+ }
+ catch(Exception e1) {}
+ try
+ {
+ queueSession.close();
+ }
+ catch(Exception e1) {}
+ }
+
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarEndpoint.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarEndpoint.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarEndpoint.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarEndpoint.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,60 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+//$Id$
+
+import javax.ejb.Stateless;
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.jboss.annotation.security.SecurityDomain;
+import org.jboss.wsf.spi.annotation.WebContext;
+
+/**
+ * Performs DAR route optimization
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@Stateless
+@WebService(name = "DarEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/dar",
+ serviceName = "DarService")
+@SOAPBinding(style = SOAPBinding.Style.RPC,
+ use = SOAPBinding.Use.LITERAL)
+@SecurityDomain("JBossWS")
+@WebContext(contextRoot="/dar",
+ urlPattern="/*",
+ authMethod="BASIC",
+ transportGuarantee="NONE",
+ secureWSDLAccess=false)
+public class DarEndpoint
+{
+ @WebMethod(operationName = "process", action = "http://org.jboss.test.ws.jaxws.samples.dar/action/processIn")
+ public DarResponse process(DarRequest request)
+ {
+ DarProcessor processor = new DarProcessor();
+ return processor.process(request);
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarJMSEndpoint.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarJMSEndpoint.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarJMSEndpoint.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarJMSEndpoint.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,73 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+//$Id$
+
+import javax.ejb.ActivationConfigProperty;
+import javax.ejb.MessageDriven;
+import javax.jms.Message;
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.core.transport.jms.JMSTransportSupportEJB3;
+import org.jboss.wsf.spi.annotation.WebContext;
+
+
+/**
+ * Performs DAR route optimization
+ *
+ * @author alessio.soldano(a)jboss.com
+ * @since 01-Feb-2008
+ */
+@WebService (name = "DarEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/dar",
+ serviceName = "DarService")
+@WebContext(contextRoot="/dar")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+@MessageDriven(activationConfig = {
+ @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
+ @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/DarRequestQueue")
+ },
+ messageListenerInterface = javax.jms.MessageListener.class
+)
+public class DarJMSEndpoint extends JMSTransportSupportEJB3
+{
+
+ private static final Logger log = Logger.getLogger(DarJMSEndpoint.class);
+
+ @WebMethod(operationName = "process", action = "http://org.jboss.test.ws.jaxws.samples.dar/action/processIn")
+ public DarResponse process(DarRequest request)
+ {
+ DarProcessor processor = new DarProcessor();
+ return processor.process(request);
+ }
+
+ @Override
+ public void onMessage(Message message)
+ {
+ log.debug("onMessage: " + message);
+ super.onMessage(message);
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarMessageBean.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarMessageBean.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarMessageBean.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarMessageBean.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,94 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+//$Id$
+
+import java.net.URL;
+
+import javax.ejb.ActivationConfigProperty;
+import javax.ejb.MessageDriven;
+import javax.jms.Message;
+import javax.jms.MessageListener;
+import javax.jms.ObjectMessage;
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Service;
+import javax.xml.ws.addressing.AddressingProperties;
+import javax.xml.ws.addressing.JAXWSAConstants;
+import javax.xml.ws.addressing.Relationship;
+
+import org.jboss.logging.Logger;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.DarReplyEndpoint;
+import org.jboss.ws.core.StubExt;
+import org.jboss.ws.extensions.addressing.AddressingClientUtil;
+import org.jboss.ws.extensions.addressing.RelationshipImpl;
+
+/**
+ * Get DAR requests from the queue, delegate to the DarProcessor and
+ * send responses back to the client endpoints.
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@MessageDriven( name="DarListener", activationConfig= {
+ @ActivationConfigProperty(propertyName="destinationType",propertyValue="javax.jms.Queue"),
+ @ActivationConfigProperty(propertyName="destination",propertyValue="queue/DarQueue")}
+)
+public class DarMessageBean implements MessageListener
+{
+ private static Logger log = Logger.getLogger(DarMessageBean.class);
+ private static final String WSA_ACTION = "http://org.jboss.test.ws.jaxws.samples.dar/action/receiveIn";
+
+ public void onMessage(Message arg0)
+ {
+ try {
+ ObjectMessage message = (ObjectMessage)arg0;
+ AsyncProcessRequest asyncRequest = (AsyncProcessRequest)message.getObject();
+ DarProcessor processor = new DarProcessor();
+ DarResponse response = processor.process(asyncRequest.getRequest());
+
+ //convert the response and send it to the client reply service
+ org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.DarResponse darResponse = ReplyConverter.convertResponse(response);
+ String replyTo = asyncRequest.getReplyTo().toURL().toString();
+ log.info("Response will be sent to: " + replyTo);
+ QName serviceName = new QName("http://org.jboss.ws/samples/dar", "DarReplyService");
+ Service service = Service.create(new URL(replyTo + "?wsdl"), serviceName);
+ DarReplyEndpoint endpoint = (DarReplyEndpoint)service.getPort(DarReplyEndpoint.class);
+
+ //setup addressing configuration and properties
+ ((StubExt)endpoint).setConfigName("Standard WSAddressing Client");
+ ((BindingProvider)endpoint).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, replyTo);
+ AddressingProperties requestProps = AddressingClientUtil.createOneWayProps(WSA_ACTION, replyTo);
+ requestProps.setMessageID(AddressingClientUtil.createMessageID());
+ Relationship[] relationships = new Relationship[1];
+ relationships[0] = new RelationshipImpl(asyncRequest.getMessageId());
+ requestProps.setRelatesTo(relationships);
+ ((BindingProvider)endpoint).getRequestContext().put(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND, requestProps);
+
+ endpoint.receive(darResponse);
+ log.info("Response sent.");
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarProcessor.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarProcessor.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarProcessor.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarProcessor.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,102 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+//$Id$
+
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Map;
+
+import org.jboss.logging.Logger;
+
+/**
+ * Mock implementation of a DAR problem optimizer
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class DarProcessor
+{
+ private Logger log = Logger.getLogger(this.getClass());
+
+ public DarResponse process(DarRequest request)
+ {
+ //FAKE implementation...
+ log.info("Processing DAR request... " + request);
+ DarResponse response = new DarResponse();
+ if (request != null)
+ {
+ List<Stop> stopList = new LinkedList<Stop>();
+ List<ServiceRequest> rejectedRequests = new LinkedList<ServiceRequest>();
+ if (!request.getRequests().isEmpty())
+ {
+ rejectedRequests.add(request.getRequests().remove(0));
+ for (ServiceRequest sRequest : request.getRequests())
+ {
+ Stop from = sRequest.getFrom();
+ Stop to = sRequest.getTo();
+ if (from != null && to != null)
+ {
+ log.info(sRequest.getPeople() + " person(s) from " + from.getNode() + " to " + to.getNode());
+ stopList.add(from);
+ stopList.add(to);
+ }
+ }
+ }
+ //computing... ;-)
+ try
+ {
+ Thread.sleep(5000);
+ }
+ catch (Exception e)
+ {
+ }
+ Map<String,Route> routes = new HashMap<String,Route>();
+ if (!request.getBuses().isEmpty())
+ {
+ for (Bus bus : request.getBuses())
+ {
+ Route route = new Route();
+ route.setBusId(bus.getId());
+ route.setStops(new LinkedList<Stop>());
+ routes.put(bus.getId(), route);
+ }
+ Iterator<Stop> itStop = stopList.iterator();
+ while (itStop.hasNext())
+ {
+ int random = new Double(Math.random()*request.getBuses().size()).intValue();
+ Bus bus = request.getBuses().get(random);
+ Route route = routes.get(bus.getId());
+ route.getStops().add(itStop.next());
+ route.getStops().add(itStop.next());
+ }
+ }
+ response.setUnservedRequests(rejectedRequests);
+ response.setRoutes(new LinkedList<Route>(routes.values()));
+ log.info("Done " + request);
+ }
+ return response;
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarReplyEndpointImpl.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarReplyEndpointImpl.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarReplyEndpointImpl.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarReplyEndpointImpl.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,87 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+//$Id$
+
+import java.util.List;
+
+import javax.annotation.Resource;
+import javax.jws.Oneway;
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.jws.soap.SOAPBinding.Style;
+import javax.jws.soap.SOAPBinding.Use;
+import javax.xml.ws.Action;
+import javax.xml.ws.WebServiceContext;
+import javax.xml.ws.addressing.AddressingProperties;
+import javax.xml.ws.addressing.JAXWSAConstants;
+
+import org.jboss.logging.Logger;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.DarReplyEndpoint;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.DarResponse;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.Route;
+import org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.Stop;
+import org.jboss.ws.annotation.EndpointConfig;
+
+/**
+ * The client endpoint receiving DAR responses
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@WebService(name = "DarReplyEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/dar",
+ endpointInterface = "org.jboss.test.ws.jaxws.samples.dar.generated.reply.DarReplyEndpoint",
+ wsdlLocation = "/WEB-INF/wsdl/reply.wsdl",
+ serviceName = "DarReplyService")
+@SOAPBinding(style = Style.RPC,
+ use = Use.LITERAL)
+@EndpointConfig(configName = "Standard WSAddressing Endpoint")
+public class DarReplyEndpointImpl implements DarReplyEndpoint
+{
+ @Resource
+ private WebServiceContext ctx;
+ private static Logger log = Logger.getLogger(DarReplyEndpointImpl.class);
+
+ @WebMethod(action = "http://org.jboss.test.ws.jaxws.samples.dar/action/receiveIn")
+ @Oneway
+ @Action(input = "http://org.jboss.test.ws.jaxws.samples.dar/action/receiveIn")
+ public void receive(DarResponse arg0)
+ {
+ AddressingProperties props = (AddressingProperties)ctx.getMessageContext().get(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND);
+ log.info("Result received; relationship message id: " + props.getRelatesTo()[0].getID());
+ List<Route> routes = arg0.getRoutes();
+ for (Route route : routes)
+ {
+ log.info(route.getBusId() + ": ");
+ StringBuilder sb = new StringBuilder();
+ for (Stop stop : route.getStops())
+ {
+ sb.append(stop.getNode() + " ");
+ }
+ log.info(sb.toString());
+ }
+ }
+
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarRequest.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarRequest.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarRequest.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarRequest.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * A DAR request contains a list of service requests, the number of
+ * buses available in the current fleet and the mapId of the city
+ * whose roads' graph should be used.
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class DarRequest implements Serializable
+{
+ private List<ServiceRequest> requests;
+ private List<Bus> buses;
+ private String mapId;
+
+ public List<ServiceRequest> getRequests()
+ {
+ return requests;
+ }
+ public void setRequests(List<ServiceRequest> requests)
+ {
+ this.requests = requests;
+ }
+ public String getMapId()
+ {
+ return mapId;
+ }
+ public void setMapId(String mapId)
+ {
+ this.mapId = mapId;
+ }
+ public List<Bus> getBuses()
+ {
+ return buses;
+ }
+ public void setBuses(List<Bus> buses)
+ {
+ this.buses = buses;
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponse.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarResponse.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponse.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponse.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,54 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+import java.util.List;
+
+/**
+ * A DAR response contains the optimized routes and the
+ * requests the processor was not able to serve.
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class DarResponse
+{
+ private List<Route> routes;
+ private List<ServiceRequest> unservedRequests;
+
+ public List<Route> getRoutes()
+ {
+ return routes;
+ }
+ public void setRoutes(List<Route> routes)
+ {
+ this.routes = routes;
+ }
+ public List<ServiceRequest> getUnservedRequests()
+ {
+ return unservedRequests;
+ }
+ public void setUnservedRequests(List<ServiceRequest> unservedRequests)
+ {
+ this.unservedRequests = unservedRequests;
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponseMessageBean.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/DarResponseMessageBean.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponseMessageBean.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/DarResponseMessageBean.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,63 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+//$Id$
+
+import javax.ejb.ActivationConfigProperty;
+import javax.ejb.MessageDriven;
+import javax.jms.Message;
+import javax.jms.TextMessage;
+
+import org.jboss.logging.Logger;
+
+/**
+ * Receives DAR responses through JMS
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@MessageDriven(activationConfig = {
+ @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
+ @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/DarResponseQueue")
+ },
+ messageListenerInterface = javax.jms.MessageListener.class
+)
+public class DarResponseMessageBean
+{
+ private Logger log = Logger.getLogger(DarResponseMessageBean.class);
+
+ public void onMessage(Message arg0)
+ {
+ try
+ {
+ TextMessage textMessage = (TextMessage)arg0;
+ String result = textMessage.getText();
+ log.info("DAR response received: " + result);
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/JMSClient.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/JMSClient.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/JMSClient.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/JMSClient.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,151 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+//$Id$
+
+import java.io.IOException;
+import java.io.PrintStream;
+
+import javax.jms.Queue;
+import javax.jms.QueueConnection;
+import javax.jms.QueueConnectionFactory;
+import javax.jms.QueueSender;
+import javax.jms.QueueSession;
+import javax.jms.Session;
+import javax.jms.TextMessage;
+import javax.naming.InitialContext;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.jboss.logging.Logger;
+
+/**
+ * DAR client; invokes the DAR JMS endpoint
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class JMSClient extends HttpServlet
+{
+ private Logger log = Logger.getLogger(JMSClient.class);
+
+ protected void doGet(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException {
+ runMessageClient(new PrintStream(httpServletResponse.getOutputStream()));
+ }
+
+ private void runMessageClient(PrintStream ps)
+ {
+ String reqMessage = "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>" +
+ "<env:Header></env:Header>" +
+ "<env:Body>" +
+ "<ns1:process xmlns:ns1='http://org.jboss.ws/samples/dar'>" +
+ "<arg0>" +
+ "<buses>" +
+ "<capacity>10</capacity>" +
+ "<id>Bus0</id>" +
+ "</buses>" +
+ "<buses>" +
+ "<capacity>10</capacity>" +
+ "<id>Bus1</id>" +
+ "</buses>" +
+ "<mapId>map1234</mapId>" +
+ "<requests>" +
+ "<from><node>667</node><time>2008-02-01T14:25:12.114+01:00</time></from>" +
+ "<id>Req0</id>" +
+ "<people>2</people>" +
+ "<to><node>17</node><time>2008-02-01T14:25:12.114+01:00</time></to>" +
+ "</requests>" +
+ "<requests>" +
+ "<from><node>18</node><time>2008-02-01T14:25:12.114+01:00</time></from>" +
+ "<id>Req1</id>" +
+ "<people>1</people>" +
+ "<to><node>575</node><time>2008-02-01T14:25:12.114+01:00</time></to>" +
+ "</requests>" +
+ "<requests>" +
+ "<from><node>713</node><time>2008-02-01T14:25:12.114+01:00</time></from>" +
+ "<id>Req2</id>" +
+ "<people>2</people>" +
+ "<to><node>845</node><time>2008-02-01T14:25:12.114+01:00</time></to>" +
+ "</requests>" +
+ "<requests>" +
+ "<from><node>117</node><time>2008-02-01z...zT14:25:12.114+01:00</time></from>" +
+ "<id>Req3</id>" +
+ "<people>2</people>" +
+ "<to><node>140</node><time>2008-02-01T14:25:12.114+01:00</time></to>" +
+ "</requests>" +
+ "<requests>" +
+ "<from><node>318</node><time>2008-02-01T14:25:12.114+01:00</time></from>" +
+ "<id>Req4</id>" +
+ "<people>1</people>" +
+ "<to><node>57</node><time>2008-02-01T14:25:12.114+01:00</time></to>" +
+ "</requests>" +
+ "</arg0>" +
+ "</ns1:process>" +
+ "</env:Body>" +
+ "</env:Envelope>";
+
+ QueueConnection con = null;
+ QueueSession session = null;
+ try
+ {
+ InitialContext context = new InitialContext();
+ QueueConnectionFactory connectionFactory = (QueueConnectionFactory)context.lookup("ConnectionFactory");
+ Queue reqQueue = (Queue)context.lookup("queue/DarRequestQueue");
+ con = connectionFactory.createQueueConnection();
+ session = con.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
+ Queue resQueue = (Queue)context.lookup("queue/DarResponseQueue");
+ con.start();
+ TextMessage message = session.createTextMessage(reqMessage);
+ message.setJMSReplyTo(resQueue);
+ QueueSender sender = session.createSender(reqQueue);
+ sender.send(message);
+ sender.close();
+ ps.println("Request message sent, doing something interesting in the mean time... ;-) ");
+ con.stop();
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace(ps);
+ }
+ finally
+ {
+ try
+ {
+ session.close();
+ }
+ catch(Exception e1) {}
+ try
+ {
+ con.close();
+ }
+ catch(Exception e1) {}
+ }
+ }
+
+
+ protected void doPost(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException {
+ doGet(httpServletRequest,httpServletResponse);
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ReplyConverter.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ReplyConverter.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ReplyConverter.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ReplyConverter.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,82 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+import java.util.GregorianCalendar;
+
+import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl;
+
+public class ReplyConverter
+{
+ public static org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.DarResponse convertResponse(DarResponse response)
+ {
+ if (response == null)
+ return null;
+ org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.DarResponse r = new org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.DarResponse();
+ for (Route route : response.getRoutes())
+ {
+ r.getRoutes().add(convertRoute(route));
+ }
+ for (ServiceRequest request : response.getUnservedRequests())
+ {
+ r.getUnservedRequests().add(convertServiceRequest(request));
+ }
+ return r;
+ }
+
+ public static org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.ServiceRequest convertServiceRequest(ServiceRequest request)
+ {
+ if (request == null)
+ return null;
+ org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.ServiceRequest s = new org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.ServiceRequest();
+ s.setFrom(convertStop(request.getFrom()));
+ s.setTo(convertStop(request.getTo()));
+ s.setId(request.getId());
+ s.setPeople(request.getPeople());
+ return s;
+ }
+
+ public static org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.Route convertRoute(Route route)
+ {
+ if (route == null)
+ return null;
+ org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.Route r = new org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.Route();
+ r.setBusId(route.getBusId());
+ for (Stop stop : route.getStops())
+ {
+ r.getStops().add(convertStop(stop));
+ }
+ return r;
+ }
+
+ public static org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.Stop convertStop(Stop stop)
+ {
+ if (stop == null)
+ return null;
+ org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.Stop s = new org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply.Stop();
+ s.setNode(stop.getNode());
+ GregorianCalendar cal = new GregorianCalendar();
+ cal.setTime(stop.getTime());
+ s.setTime(new XMLGregorianCalendarImpl(cal));
+ return s;
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ReplyToServlet.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ReplyToServlet.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ReplyToServlet.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ReplyToServlet.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.servlet.ServletException;
+import java.io.IOException;
+import java.io.BufferedReader;
+
+/**
+ * A simple servlet sink receiving DAR responses.
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class ReplyToServlet extends HttpServlet {
+
+ protected void doGet(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException {
+ dump(httpServletRequest, httpServletResponse);
+ }
+
+ protected void doPost(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException {
+ dump(httpServletRequest, httpServletResponse);
+ }
+
+ private void dump(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) {
+ System.out.println("ReplyTo sink:");
+
+ try {
+ BufferedReader reader = httpServletRequest.getReader();
+ String inputLine;
+
+ while ((inputLine = reader.readLine()) != null) {
+ System.out.println(inputLine);
+ }
+ reader.close();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+
+ httpServletResponse.setStatus(200);
+ }
+}
+
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Route.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/Route.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Route.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Route.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,53 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+import java.util.List;
+
+/**
+ * A route has the list of stops a given bus has to do.
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class Route
+{
+ private List<Stop> stops;
+ private String busId;
+
+ public List<Stop> getStops()
+ {
+ return stops;
+ }
+ public void setStops(List<Stop> stops)
+ {
+ this.stops = stops;
+ }
+ public String getBusId()
+ {
+ return busId;
+ }
+ public void setBusId(String busId)
+ {
+ this.busId = busId;
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ServiceRequest.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ServiceRequest.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ServiceRequest.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/ServiceRequest.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+import java.io.Serializable;
+
+public class ServiceRequest implements Serializable
+{
+ private String id;
+ private Stop from;
+ private Stop to;
+ private int people;
+
+ public Stop getFrom()
+ {
+ return from;
+ }
+ public void setFrom(Stop from)
+ {
+ this.from = from;
+ }
+ public Stop getTo()
+ {
+ return to;
+ }
+ public void setTo(Stop to)
+ {
+ this.to = to;
+ }
+ public int getPeople()
+ {
+ return people;
+ }
+ public void setPeople(int people)
+ {
+ this.people = people;
+ }
+ public String getId()
+ {
+ return id;
+ }
+ public void setId(String id)
+ {
+ this.id = id;
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Stop.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/Stop.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Stop.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/Stop.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,54 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * A required pick-up or delivery point (where & when)
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class Stop implements Serializable
+{
+ private Date time;
+ private Integer node; //the graph node corresponding to a given place in the city map
+
+ public Date getTime()
+ {
+ return time;
+ }
+ public void setTime(Date time)
+ {
+ this.time = time;
+ }
+ public Integer getNode()
+ {
+ return node;
+ }
+ public void setNode(Integer node)
+ {
+ this.node = node;
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/Bus.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/Bus.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/Bus.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/Bus.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,79 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for bus complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="bus">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="capacity" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="id" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "bus", propOrder = {
+ "capacity",
+ "id"
+})
+public class Bus {
+
+ protected int capacity;
+ protected String id;
+
+ /**
+ * Gets the value of the capacity property.
+ *
+ */
+ public int getCapacity() {
+ return capacity;
+ }
+
+ /**
+ * Sets the value of the capacity property.
+ *
+ */
+ public void setCapacity(int value) {
+ this.capacity = value;
+ }
+
+ /**
+ * Gets the value of the id property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setId(String value) {
+ this.id = value;
+ }
+
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarEndpoint.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/DarEndpoint.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarEndpoint.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarEndpoint.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,33 @@
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated;
+
+import javax.jws.Oneway;
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.xml.ws.Response;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.1.1-b03-
+ * Generated source version: 2.0
+ *
+ */
+@WebService(name = "DarEndpoint", targetNamespace = "http://org.jboss.ws/samples/dar")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface DarEndpoint {
+
+ @WebMethod(operationName = "process")
+ public Response<DarResponse> processAsync(@WebParam(name = "arg0", partName = "arg0") DarRequest arg0);
+
+ @WebMethod(action = "http://org.jboss.test.ws.jaxws.samples.dar/action/processIn")
+ @WebResult(partName = "return")
+ public DarResponse process(@WebParam(name = "arg0", partName = "arg0") DarRequest arg0);
+
+ @WebMethod(action = "http://org.jboss.test.ws.jaxws.samples.dar/action/onewayProcessIn")
+ @Oneway
+ public void onewayProcess(@WebParam(name = "arg0", partName = "arg0") DarRequest arg0);
+
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarRequest.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/DarRequest.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarRequest.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarRequest.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,129 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for darRequest complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="darRequest">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="buses" type="{http://org.jboss.ws/samples/dar}bus" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="mapId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="requests" type="{http://org.jboss.ws/samples/dar}serviceRequest" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "darRequest", propOrder = {
+ "buses",
+ "mapId",
+ "requests"
+})
+public class DarRequest {
+
+ @XmlElement(nillable = true)
+ protected List<Bus> buses;
+ protected String mapId;
+ @XmlElement(nillable = true)
+ protected List<ServiceRequest> requests;
+
+ /**
+ * Gets the value of the buses property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the buses property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getBuses().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Bus }
+ *
+ *
+ */
+ public List<Bus> getBuses() {
+ if (buses == null) {
+ buses = new ArrayList<Bus>();
+ }
+ return this.buses;
+ }
+
+ /**
+ * Gets the value of the mapId property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getMapId() {
+ return mapId;
+ }
+
+ /**
+ * Sets the value of the mapId property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setMapId(String value) {
+ this.mapId = value;
+ }
+
+ /**
+ * Gets the value of the requests property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the requests property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getRequests().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link ServiceRequest }
+ *
+ *
+ */
+ public List<ServiceRequest> getRequests() {
+ if (requests == null) {
+ requests = new ArrayList<ServiceRequest>();
+ }
+ return this.requests;
+ }
+
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarResponse.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/DarResponse.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarResponse.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarResponse.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,102 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for darResponse complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="darResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="routes" type="{http://org.jboss.ws/samples/dar}route" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="unservedRequests" type="{http://org.jboss.ws/samples/dar}serviceRequest" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "darResponse", propOrder = {
+ "routes",
+ "unservedRequests"
+})
+public class DarResponse {
+
+ @XmlElement(nillable = true)
+ protected List<Route> routes;
+ @XmlElement(nillable = true)
+ protected List<ServiceRequest> unservedRequests;
+
+ /**
+ * Gets the value of the routes property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the routes property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getRoutes().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Route }
+ *
+ *
+ */
+ public List<Route> getRoutes() {
+ if (routes == null) {
+ routes = new ArrayList<Route>();
+ }
+ return this.routes;
+ }
+
+ /**
+ * Gets the value of the unservedRequests property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the unservedRequests property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getUnservedRequests().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link ServiceRequest }
+ *
+ *
+ */
+ public List<ServiceRequest> getUnservedRequests() {
+ if (unservedRequests == null) {
+ unservedRequests = new ArrayList<ServiceRequest>();
+ }
+ return this.unservedRequests;
+ }
+
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarService.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/DarService.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarService.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/DarService.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,53 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.1.1-b03-
+ * Generated source version: 2.0
+ *
+ */
+@WebServiceClient(name = "DarService", targetNamespace = "http://org.jboss.ws/samples/dar", wsdlLocation = "http://localhost.localdomain:8080/dar?wsdl")
+public class DarService
+ extends Service
+{
+
+ private final static URL DARSERVICE_WSDL_LOCATION;
+
+ static {
+ URL url = null;
+ try {
+ url = new URL("http://localhost.localdomain:8080/dar?wsdl");
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ DARSERVICE_WSDL_LOCATION = url;
+ }
+
+ public DarService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public DarService() {
+ super(DARSERVICE_WSDL_LOCATION, new QName("http://org.jboss.ws/samples/dar", "DarService"));
+ }
+
+ /**
+ *
+ * @return
+ * returns DarEndpoint
+ */
+ @WebEndpoint(name = "DarEndpointPort")
+ public DarEndpoint getDarEndpointPort() {
+ return (DarEndpoint)super.getPort(new QName("http://org.jboss.ws/samples/dar", "DarEndpointPort"), DarEndpoint.class);
+ }
+
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/ObjectFactory.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/ObjectFactory.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/ObjectFactory.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/ObjectFactory.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,80 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated;
+
+import javax.xml.bind.annotation.XmlRegistry;
+
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the org.jboss.test.ws.jaxws.samples.dar.generated package.
+ * <p>An ObjectFactory allows you to programatically
+ * construct new instances of the Java representation
+ * for XML content. The Java representation of XML
+ * content can consist of schema derived interfaces
+ * and classes representing the binding of schema
+ * type definitions, element declarations and model
+ * groups. Factory methods for each of these are
+ * provided in this class.
+ *
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.test.ws.jaxws.samples.dar.generated
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link DarRequest }
+ *
+ */
+ public DarRequest createDarRequest() {
+ return new DarRequest();
+ }
+
+ /**
+ * Create an instance of {@link Bus }
+ *
+ */
+ public Bus createBus() {
+ return new Bus();
+ }
+
+ /**
+ * Create an instance of {@link ServiceRequest }
+ *
+ */
+ public ServiceRequest createServiceRequest() {
+ return new ServiceRequest();
+ }
+
+ /**
+ * Create an instance of {@link Route }
+ *
+ */
+ public Route createRoute() {
+ return new Route();
+ }
+
+ /**
+ * Create an instance of {@link DarResponse }
+ *
+ */
+ public DarResponse createDarResponse() {
+ return new DarResponse();
+ }
+
+ /**
+ * Create an instance of {@link Stop }
+ *
+ */
+ public Stop createStop() {
+ return new Stop();
+ }
+
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/Route.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/Route.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/Route.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/Route.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,96 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for route complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="route">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="busId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="stops" type="{http://org.jboss.ws/samples/dar}stop" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "route", propOrder = {
+ "busId",
+ "stops"
+})
+public class Route {
+
+ protected String busId;
+ @XmlElement(nillable = true)
+ protected List<Stop> stops;
+
+ /**
+ * Gets the value of the busId property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getBusId() {
+ return busId;
+ }
+
+ /**
+ * Sets the value of the busId property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setBusId(String value) {
+ this.busId = value;
+ }
+
+ /**
+ * Gets the value of the stops property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the stops property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getStops().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Stop }
+ *
+ *
+ */
+ public List<Stop> getStops() {
+ if (stops == null) {
+ stops = new ArrayList<Stop>();
+ }
+ return this.stops;
+ }
+
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/ServiceRequest.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/ServiceRequest.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/ServiceRequest.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/ServiceRequest.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,133 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for serviceRequest complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="serviceRequest">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="from" type="{http://org.jboss.ws/samples/dar}stop" minOccurs="0"/>
+ * <element name="id" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="people" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="to" type="{http://org.jboss.ws/samples/dar}stop" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "serviceRequest", propOrder = {
+ "from",
+ "id",
+ "people",
+ "to"
+})
+public class ServiceRequest {
+
+ protected Stop from;
+ protected String id;
+ protected int people;
+ protected Stop to;
+
+ /**
+ * Gets the value of the from property.
+ *
+ * @return
+ * possible object is
+ * {@link Stop }
+ *
+ */
+ public Stop getFrom() {
+ return from;
+ }
+
+ /**
+ * Sets the value of the from property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Stop }
+ *
+ */
+ public void setFrom(Stop value) {
+ this.from = value;
+ }
+
+ /**
+ * Gets the value of the id property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setId(String value) {
+ this.id = value;
+ }
+
+ /**
+ * Gets the value of the people property.
+ *
+ */
+ public int getPeople() {
+ return people;
+ }
+
+ /**
+ * Sets the value of the people property.
+ *
+ */
+ public void setPeople(int value) {
+ this.people = value;
+ }
+
+ /**
+ * Gets the value of the to property.
+ *
+ * @return
+ * possible object is
+ * {@link Stop }
+ *
+ */
+ public Stop getTo() {
+ return to;
+ }
+
+ /**
+ * Sets the value of the to property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Stop }
+ *
+ */
+ public void setTo(Stop value) {
+ this.to = value;
+ }
+
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/Stop.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/Stop.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/Stop.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/Stop.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,90 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.datatype.XMLGregorianCalendar;
+
+
+/**
+ * <p>Java class for stop complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="stop">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="node" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ * <element name="time" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "stop", propOrder = {
+ "node",
+ "time"
+})
+public class Stop {
+
+ protected Integer node;
+ @XmlSchemaType(name = "dateTime")
+ protected XMLGregorianCalendar time;
+
+ /**
+ * Gets the value of the node property.
+ *
+ * @return
+ * possible object is
+ * {@link Integer }
+ *
+ */
+ public Integer getNode() {
+ return node;
+ }
+
+ /**
+ * Sets the value of the node property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Integer }
+ *
+ */
+ public void setNode(Integer value) {
+ this.node = value;
+ }
+
+ /**
+ * Gets the value of the time property.
+ *
+ * @return
+ * possible object is
+ * {@link XMLGregorianCalendar }
+ *
+ */
+ public XMLGregorianCalendar getTime() {
+ return time;
+ }
+
+ /**
+ * Sets the value of the time property.
+ *
+ * @param value
+ * allowed object is
+ * {@link XMLGregorianCalendar }
+ *
+ */
+ public void setTime(XMLGregorianCalendar value) {
+ this.time = value;
+ }
+
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/package-info.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/package-info.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/package-info.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/package-info.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,2 @@
+(a)javax.xml.bind.annotation.XmlSchema(namespace = "http://org.jboss.ws/samples/dar")
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated;
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply)
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/DarReplyEndpoint.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarReplyEndpoint.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/DarReplyEndpoint.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.dar.generated.reply;
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply;
import javax.jws.Oneway;
import javax.jws.WebMethod;
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/DarReplyService.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarReplyService.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/DarReplyService.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.dar.generated.reply;
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply;
import java.net.MalformedURLException;
import java.net.URL;
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/DarResponse.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/DarResponse.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/DarResponse.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.dar.generated.reply;
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply;
import java.util.ArrayList;
import java.util.List;
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/ObjectFactory.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/ObjectFactory.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/ObjectFactory.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.dar.generated.reply;
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply;
import javax.xml.bind.annotation.XmlRegistry;
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/Route.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/Route.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/Route.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.dar.generated.reply;
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply;
import java.util.ArrayList;
import java.util.List;
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/ServiceRequest.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/ServiceRequest.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/ServiceRequest.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.dar.generated.reply;
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/Stop.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/Stop.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/Stop.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.dar.generated.reply;
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/package-info.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/generated/reply/package-info.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/dialaride/generated/reply/package-info.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,2 +1,2 @@
@javax.xml.bind.annotation.XmlSchema(namespace = "http://org.jboss.ws/samples/dar")
-package org.jboss.test.ws.jaxws.samples.dar.generated.reply;
+package org.jboss.test.ws.jaxws.samples.advanced.dialaride.generated.reply;
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperMTOMEndpoint.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/AbstractNewspaperMTOMEndpoint.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperMTOMEndpoint.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperMTOMEndpoint.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,59 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import java.util.Date;
+
+import javax.activation.DataHandler;
+
+import org.jboss.logging.Logger;
+
+/**
+ * The common implementation of the MTOM newspaper endpoint
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class AbstractNewspaperMTOMEndpoint
+{
+ private Logger log = Logger.getLogger(this.getClass());
+
+ public EditionMTOM getNewspaperEdition(String newspaperId)
+ {
+ log.info("Newspaper edition requested: " + newspaperId);
+ EditionMTOM edition = new EditionMTOM();
+ edition.setContent(new DataHandler("This is the newspaper document with id " + newspaperId, "text/plain"));
+ edition.setDate(new Date());
+ edition.setId(newspaperId);
+ return edition;
+ }
+
+ public String[] getNewspaperEditionIdList(Date from, Date to)
+ {
+ String[] ids = new String[2];
+ ids[0] = "doc01";
+ ids[1] = "doc02";
+ return ids;
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperSWAEndpoint.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/AbstractNewspaperSWAEndpoint.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperSWAEndpoint.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/AbstractNewspaperSWAEndpoint.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,59 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import java.util.Date;
+
+import javax.activation.DataHandler;
+
+import org.jboss.logging.Logger;
+
+/**
+ * The common implementation of the SWA newspaper endpoint
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class AbstractNewspaperSWAEndpoint
+{
+ private Logger log = Logger.getLogger(this.getClass());
+
+ public EditionSWA getNewspaperEdition(String newspaperId)
+ {
+ log.info("Newspaper edition requested: " + newspaperId);
+ EditionSWA edition = new EditionSWA();
+ edition.setContent(new DataHandler("This is the newspaper document with id " + newspaperId, "text/plain"));
+ edition.setDate(new Date());
+ edition.setId(newspaperId);
+ return edition;
+ }
+
+ public String[] getNewspaperEditionIdList(Date from, Date to)
+ {
+ String[] ids = new String[2];
+ ids[0] = "doc01";
+ ids[1] = "doc02";
+ return ids;
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/AbstractPressReleaseEndpoint.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/AbstractPressReleaseEndpoint.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/AbstractPressReleaseEndpoint.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/AbstractPressReleaseEndpoint.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import org.jboss.logging.Logger;
+
+/**
+ * The common implementation of the press release endpoint
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public abstract class AbstractPressReleaseEndpoint
+{
+ private Logger log = Logger.getLogger(this.getClass());
+
+ public void submitPressRelease(PressRelease release)
+ {
+ log.info("Received a press release from agency: " + release.getAgencyId());
+ log.info("- Title: " + release.getTitle());
+ log.info("- Text: " + release.getBody());
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/Agency.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/Agency.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/Agency.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/Agency.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,85 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import java.net.URL;
+import java.util.GregorianCalendar;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.test.ws.jaxws.samples.advanced.news.generated.agency.PressRelease;
+import org.jboss.test.ws.jaxws.samples.advanced.news.generated.agency.PressReleaseEndpoint;
+import org.jboss.test.ws.jaxws.samples.advanced.news.generated.agency.PressReleaseService;
+
+import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl;
+
+/**
+ * The press agency client
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class Agency
+{
+
+ protected PressReleaseEndpoint endpoint;
+
+ public Agency(URL url)
+ {
+ PressReleaseService service = new PressReleaseService(url, new QName("http://org.jboss.ws/samples/news", "PressReleaseService"));
+ endpoint = service.getPressReleaseEndpointPort();
+ }
+
+ public void run(String title, String body)
+ {
+ PressRelease pressRelease = new PressRelease();
+ pressRelease.setAgencyId("agency01");
+ pressRelease.setTitle(title);
+ pressRelease.setBody(body);
+ pressRelease.setDate(new XMLGregorianCalendarImpl(new GregorianCalendar()));
+ endpoint.submitPressRelease(pressRelease);
+ }
+
+ public static void main(String[] args)
+ {
+ try
+ {
+ if (args.length == 3)
+ {
+ Agency agency = new Agency(new URL(args[0]));
+ agency.run(args[1], args[2]);
+ System.out.println("Press release sent.");
+ }
+ else
+ {
+ System.out.println("Agency client usage:");
+ System.out.println("wsrunclient.sh -classpath agency.jar org.jboss.test.ws.jaxws.samples.news.Agency http://host:port/news/pressRelease?wsdl title body");
+ }
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/EditionMTOM.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/EditionMTOM.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/EditionMTOM.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/EditionMTOM.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,68 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import java.util.Date;
+
+import javax.activation.DataHandler;
+import javax.xml.bind.annotation.XmlMimeType;
+
+/**
+ * The MTOM version of the newspaper edition
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class EditionMTOM
+{
+ private Date date;
+ private DataHandler content;
+ private String id;
+
+ public Date getDate()
+ {
+ return date;
+ }
+ public void setDate(Date date)
+ {
+ this.date = date;
+ }
+ @XmlMimeType("text/plain")
+ public DataHandler getContent()
+ {
+ return content;
+ }
+ public void setContent(DataHandler content)
+ {
+ this.content = content;
+ }
+ public String getId()
+ {
+ return id;
+ }
+ public void setId(String id)
+ {
+ this.id = id;
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/EditionSWA.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/EditionSWA.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/EditionSWA.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/EditionSWA.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,72 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import java.util.Date;
+
+import javax.activation.DataHandler;
+import javax.xml.bind.annotation.XmlAttachmentRef;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * The SWA version of the newspaper edition
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@XmlRootElement
+public class EditionSWA
+{
+ private Date date;
+ private DataHandler content;
+ private String id;
+
+ public Date getDate()
+ {
+ return date;
+ }
+ public void setDate(Date date)
+ {
+ this.date = date;
+ }
+ @XmlElement
+ @XmlAttachmentRef
+ public DataHandler getContent()
+ {
+ return content;
+ }
+ public void setContent(DataHandler content)
+ {
+ this.content = content;
+ }
+ public String getId()
+ {
+ return id;
+ }
+ public void setId(String id)
+ {
+ this.id = id;
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperMTOM.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/NewspaperMTOM.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperMTOM.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperMTOM.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import java.util.Date;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * The MTOM newspaper endpoint interface
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@WebService(targetNamespace = "http://org.jboss.ws/samples/news")
+@SOAPBinding(style = SOAPBinding.Style.RPC,
+ use = SOAPBinding.Use.LITERAL)
+public interface NewspaperMTOM
+{
+ @WebMethod
+ public EditionMTOM getNewspaperEdition(@WebParam(name = "id") String newspaperId);
+
+ @WebMethod
+ public String[] getNewspaperEditionIdList(@WebParam(name = "from") Date from, @WebParam(name = "to") Date to);
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperMTOMEndpoint.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/NewspaperMTOMEndpoint.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperMTOMEndpoint.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperMTOMEndpoint.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,53 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.xml.ws.BindingType;
+
+import org.jboss.wsf.spi.annotation.WebContext;
+
+/**
+ * The MTOM newspaper endpoint
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@Stateless
+@WebService(endpointInterface = "org.jboss.test.ws.jaxws.samples.news.NewspaperMTOM",
+ name = "NewspaperMTOMEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/news",
+ serviceName = "NewspaperMTOMService")
+@SOAPBinding(style = SOAPBinding.Style.RPC,
+ use = SOAPBinding.Use.LITERAL)
+@WebContext(contextRoot="/news",
+ urlPattern="/newspaper/mtom")
+@BindingType(value = "http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true")
+//@HandlerChain(file = "jaxws-handlers-server.xml")
+public class NewspaperMTOMEndpoint extends AbstractNewspaperMTOMEndpoint implements NewspaperMTOM
+{
+
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperSWA.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/NewspaperSWA.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperSWA.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperSWA.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import java.util.Date;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * The SWA newspaper endpoint interface
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@WebService(targetNamespace = "http://org.jboss.ws/samples/news")
+@SOAPBinding(style = SOAPBinding.Style.RPC,
+ use = SOAPBinding.Use.LITERAL)
+public interface NewspaperSWA
+{
+ @WebMethod
+ public EditionSWA getNewspaperEdition(@WebParam(name = "id") String newspaperId);
+
+ @WebMethod
+ public String[] getNewspaperEditionIdList(@WebParam(name = "from") Date from, @WebParam(name = "to") Date to);
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperSWAEndpoint.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/NewspaperSWAEndpoint.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperSWAEndpoint.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/NewspaperSWAEndpoint.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,50 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.jboss.wsf.spi.annotation.WebContext;
+
+/**
+ * The SWA newspaper endpoint
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@Stateless
+@WebService(endpointInterface = "org.jboss.test.ws.jaxws.samples.news.NewspaperSWA",
+ name = "NewspaperSWAEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/news",
+ serviceName = "NewspaperSWAService")
+@SOAPBinding(style = SOAPBinding.Style.RPC,
+ use = SOAPBinding.Use.LITERAL)
+@WebContext(contextRoot="/news",
+ urlPattern="/newspaper/swa")
+public class NewspaperSWAEndpoint extends AbstractNewspaperSWAEndpoint implements NewspaperSWA
+{
+
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/PressRelease.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/PressRelease.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/PressRelease.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/PressRelease.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+import java.util.Date;
+
+public class PressRelease
+{
+ private String title;
+ private String body;
+ private Date date;
+ private String agencyId;
+
+ public String getTitle()
+ {
+ return title;
+ }
+ public void setTitle(String title)
+ {
+ this.title = title;
+ }
+ public String getBody()
+ {
+ return body;
+ }
+ public void setBody(String body)
+ {
+ this.body = body;
+ }
+ public Date getDate()
+ {
+ return date;
+ }
+ public void setDate(Date date)
+ {
+ this.date = date;
+ }
+ public String getAgencyId()
+ {
+ return agencyId;
+ }
+ public void setAgencyId(String agencyId)
+ {
+ this.agencyId = agencyId;
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/PressReleaseEndpoint.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/PressReleaseEndpoint.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/PressReleaseEndpoint.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/PressReleaseEndpoint.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.jboss.wsf.spi.annotation.WebContext;
+
+/**
+ * The press release endpoint
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@Stateless
+@WebService(name = "PressReleaseEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/news",
+ serviceName = "PressReleaseService")
+@SOAPBinding(style = SOAPBinding.Style.DOCUMENT,
+ use = SOAPBinding.Use.LITERAL)
+@WebContext(contextRoot="/news",
+ urlPattern="/pressRelease")
+public class PressReleaseEndpoint extends AbstractPressReleaseEndpoint
+{
+
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/Printer.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/Printer.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/Printer.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/Printer.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,121 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import java.io.IOException;
+import java.net.URL;
+import java.util.GregorianCalendar;
+
+import javax.activation.DataHandler;
+import javax.xml.datatype.XMLGregorianCalendar;
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.soap.SOAPBinding;
+
+import org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.mtom.EditionMTOM;
+import org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.mtom.NewspaperMTOMEndpoint;
+import org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.mtom.NewspaperMTOMService;
+import org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.swa.EditionSWA;
+import org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.swa.NewspaperSWAEndpoint;
+import org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.swa.NewspaperSWAService;
+
+import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl;
+
+/**
+ * The printer client
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class Printer
+{
+ protected NewspaperMTOMEndpoint mtomEndpoint;
+ protected NewspaperSWAEndpoint swaEndpoint;
+ protected boolean mtom;
+
+ public Printer(URL url, boolean mtom)
+ {
+ this.mtom = mtom;
+ if (mtom)
+ {
+ NewspaperMTOMService mtomService = new NewspaperMTOMService(url, new QName("http://org.jboss.ws/samples/news", "NewspaperMTOMService"));
+ mtomEndpoint = mtomService.getNewspaperMTOMEndpointPort();
+ }
+ else
+ {
+ NewspaperSWAService swaService = new NewspaperSWAService(url, new QName("http://org.jboss.ws/samples/news", "NewspaperSWAService"));
+ swaEndpoint = swaService.getNewspaperSWAEndpointPort();
+ }
+ }
+
+ public void run() throws IOException
+ {
+ XMLGregorianCalendar from = new XMLGregorianCalendarImpl(new GregorianCalendar(2008,1,10));
+ XMLGregorianCalendar to = new XMLGregorianCalendarImpl(new GregorianCalendar(2008,1,14));
+ if (mtom)
+ {
+ ((SOAPBinding)(((BindingProvider)mtomEndpoint).getBinding())).setMTOMEnabled(true);
+ for (String id : mtomEndpoint.getNewspaperEditionIdList(from, to).getItem())
+ {
+ System.out.println("Downloading newspaper document: " + id);
+ EditionMTOM edition = mtomEndpoint.getNewspaperEdition(id);
+ System.out.println("Content: " + edition.getContent());
+ }
+ }
+ else
+ {
+ for (String id : swaEndpoint.getNewspaperEditionIdList(from, to).getItem())
+ {
+ System.out.println("Downloading newspaper document: " + id);
+ EditionSWA edition = swaEndpoint.getNewspaperEdition(id);
+ DataHandler dh = edition.getContent();
+ System.out.println("Content type: " + dh.getContentType());
+ System.out.println("Content: " + dh.getContent());
+ }
+ }
+ }
+
+ public static void main(String[] args)
+ {
+ try
+ {
+ if (args.length == 1)
+ {
+ Printer printer = new Printer(new URL(args[0]), args[0].endsWith("mtom?wsdl"));
+ printer.run();
+ }
+ else
+ {
+ System.out.println("Printer client usage:");
+ System.out.println("wsrunclient.sh -classpath agency.jar org.jboss.test.ws.jaxws.samples.news.Printer http://host:port/news/newspaper/mtom?wsdl");
+ System.out.println("or");
+ System.out.println("wsrunclient.sh -classpath agency.jar org.jboss.test.ws.jaxws.samples.news.Printer http://host:port/news/newspaper/swa?wsdl");
+ }
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecureAgency.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecureAgency.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecureAgency.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecureAgency.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,66 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import java.net.URL;
+
+import org.jboss.ws.core.StubExt;
+
+/**
+ * The press agency client using WS-Security
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class SecureAgency extends Agency
+{
+ public SecureAgency(URL url)
+ {
+ super(url);
+ ((StubExt)endpoint).setConfigName("Standard WSSecurity Client");
+ }
+
+ public static void main(String[] args)
+ {
+ try
+ {
+ if (args.length == 3)
+ {
+ Agency agency = new SecureAgency(new URL(args[0]));
+ agency.run(args[1], args[2]);
+ System.out.println("Press release sent.");
+ }
+ else
+ {
+ System.out.println("SecureAgency client usage:");
+ System.out.println("./wsrunclient.sh -classpath agency.jar org.jboss.test.ws.jaxws.samples.news.SecureAgency " +
+ "http://localhost.localdomain:8080/news/pressRelease?wsdl title body");
+ }
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecureNewspaperMTOMEndpoint.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecureNewspaperMTOMEndpoint.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecureNewspaperMTOMEndpoint.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecureNewspaperMTOMEndpoint.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,50 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.xml.ws.BindingType;
+
+import org.jboss.annotation.security.SecurityDomain;
+import org.jboss.wsf.spi.annotation.WebContext;
+
+
+@Stateless
+@WebService(endpointInterface = "org.jboss.test.ws.jaxws.samples.news.NewspaperMTOM",
+ name = "NewspaperMTOMEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/news",
+ serviceName = "NewspaperMTOMService")
+@SOAPBinding(style = SOAPBinding.Style.RPC,
+ use = SOAPBinding.Use.LITERAL)
+@SecurityDomain("JBossWS")
+@WebContext(contextRoot="/news",
+ urlPattern="/newspaper/mtom",
+ authMethod="BASIC",
+ transportGuarantee="CONFIDENTIAL",
+ secureWSDLAccess=false)
+@BindingType(value = "http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true")
+public class SecureNewspaperMTOMEndpoint extends AbstractNewspaperMTOMEndpoint implements NewspaperMTOM
+{
+
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecureNewspaperSWAEndpoint.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecureNewspaperSWAEndpoint.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecureNewspaperSWAEndpoint.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecureNewspaperSWAEndpoint.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,48 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.jboss.annotation.security.SecurityDomain;
+import org.jboss.wsf.spi.annotation.WebContext;
+
+
+@Stateless
+@WebService(endpointInterface = "org.jboss.test.ws.jaxws.samples.news.NewspaperSWA",
+ name = "NewspaperSWAEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/news",
+ serviceName = "NewspaperSWAService")
+@SOAPBinding(style = SOAPBinding.Style.RPC,
+ use = SOAPBinding.Use.LITERAL)
+@SecurityDomain("JBossWS")
+@WebContext(contextRoot="/news",
+ urlPattern="/newspaper/swa",
+ authMethod="BASIC",
+ transportGuarantee="CONFIDENTIAL",
+ secureWSDLAccess=false)
+public class SecureNewspaperSWAEndpoint extends AbstractNewspaperSWAEndpoint implements NewspaperSWA
+{
+
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecurePressReleaseEndpoint.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecurePressReleaseEndpoint.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecurePressReleaseEndpoint.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecurePressReleaseEndpoint.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.jboss.ws.annotation.EndpointConfig;
+import org.jboss.wsf.spi.annotation.WebContext;
+
+/**
+ * The press release endpoint enforcing authentication plus message encryption and signature
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+@Stateless
+@WebService(name = "PressReleaseEndpoint",
+ targetNamespace = "http://org.jboss.ws/samples/news",
+ serviceName = "PressReleaseService")
+@SOAPBinding(style = SOAPBinding.Style.DOCUMENT,
+ use = SOAPBinding.Use.LITERAL)
+@WebContext(contextRoot="/news",
+ urlPattern="/pressRelease")
+@EndpointConfig(configName = "Standard WSSecurity Endpoint")
+public class SecurePressReleaseEndpoint extends AbstractPressReleaseEndpoint
+{
+
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecurePrinter.java (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/SecurePrinter.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecurePrinter.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/SecurePrinter.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -0,0 +1,71 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.news;
+
+//$Id$
+
+import java.net.URL;
+
+import javax.xml.ws.BindingProvider;
+
+/**
+ * The printer client using https transport
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 31-Jan-2008
+ */
+public class SecurePrinter extends Printer
+{
+ public SecurePrinter(URL url, boolean mtom)
+ {
+ super(url,mtom);
+ BindingProvider bp = mtom ? (BindingProvider)mtomEndpoint : (BindingProvider)swaEndpoint;
+ bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "kermit");
+ bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "thefrog");
+ System.setProperty("org.jboss.security.ignoreHttpsHost", "true");
+ }
+
+ public static void main(String[] args)
+ {
+ try
+ {
+ if (args.length == 1)
+ {
+ SecurePrinter printer = new SecurePrinter(new URL(args[0]), args[0].endsWith("mtom?wsdl"));
+ printer.run();
+ }
+ else
+ {
+ System.out.println("SecurePrinter client usage:");
+ System.out.println("wsrunclient.sh -classpath agency.jar -Djavax.net.ssl.trustStore=truststorePath -Djavax.net.ssl.trustStorePassword=truststorePwd " +
+ "org.jboss.test.ws.jaxws.samples.news.SecurePrinter http://host:port/news/newspaper/mtom?wsdl");
+ System.out.println("or");
+ System.out.println("wsrunclient.sh -classpath agency.jar -Djavax.net.ssl.trustStore=truststorePath -Djavax.net.ssl.trustStorePassword=truststorePwd " +
+ "org.jboss.test.ws.jaxws.samples.news.SecurePrinter http://host:port/news/newspaper/swa?wsdl");
+ }
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+}
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency)
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/ObjectFactory.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/ObjectFactory.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/ObjectFactory.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.agency;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.agency;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/PressRelease.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressRelease.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/PressRelease.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.agency;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.agency;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/PressReleaseEndpoint.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressReleaseEndpoint.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/PressReleaseEndpoint.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.agency;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.agency;
import javax.jws.WebMethod;
import javax.jws.WebParam;
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/PressReleaseService.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/PressReleaseService.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/PressReleaseService.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.agency;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.agency;
import java.net.MalformedURLException;
import java.net.URL;
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/SubmitPressRelease.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/SubmitPressRelease.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/SubmitPressRelease.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.agency;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.agency;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/SubmitPressReleaseResponse.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/SubmitPressReleaseResponse.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/SubmitPressReleaseResponse.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.agency;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.agency;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/package-info.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/agency/package-info.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/agency/package-info.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,2 +1,2 @@
@javax.xml.bind.annotation.XmlSchema(namespace = "http://org.jboss.ws/samples/news")
-package org.jboss.test.ws.jaxws.samples.news.generated.agency;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.agency;
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom)
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/EditionMTOM.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/EditionMTOM.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/EditionMTOM.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.mtom;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.mtom;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/NewspaperMTOMEndpoint.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/NewspaperMTOMEndpoint.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/NewspaperMTOMEndpoint.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.mtom;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.mtom;
import javax.jws.WebMethod;
import javax.jws.WebParam;
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/NewspaperMTOMService.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/NewspaperMTOMService.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/NewspaperMTOMService.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.mtom;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.mtom;
import java.net.MalformedURLException;
import java.net.URL;
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/ObjectFactory.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/ObjectFactory.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/ObjectFactory.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.mtom;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.mtom;
import javax.xml.bind.annotation.XmlRegistry;
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/StringArray.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/StringArray.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/StringArray.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.mtom;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.mtom;
import java.util.ArrayList;
import java.util.List;
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/package-info.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/mtom/package-info.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/mtom/package-info.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,2 +1,2 @@
@javax.xml.bind.annotation.XmlSchema(namespace = "http://jaxb.dev.java.net/array")
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.mtom;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.mtom;
Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa (from rev 5937, stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa)
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/EditionSWA.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/EditionSWA.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/EditionSWA.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.swa;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.swa;
import javax.activation.DataHandler;
import javax.xml.bind.annotation.XmlAccessType;
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/NewspaperSWAEndpoint.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/NewspaperSWAEndpoint.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/NewspaperSWAEndpoint.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.swa;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.swa;
import javax.jws.WebMethod;
import javax.jws.WebParam;
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/NewspaperSWAService.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/NewspaperSWAService.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/NewspaperSWAService.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.swa;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.swa;
import java.net.MalformedURLException;
import java.net.URL;
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/ObjectFactory.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/ObjectFactory.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/ObjectFactory.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.swa;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.swa;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/StringArray.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/StringArray.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/StringArray.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,5 +1,5 @@
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.swa;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.swa;
import java.util.ArrayList;
import java.util.List;
Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/package-info.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/news/generated/printer/swa/package-info.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/news/generated/printer/swa/package-info.java 2008-03-12 11:09:56 UTC (rev 5939)
@@ -1,2 +1,2 @@
@javax.xml.bind.annotation.XmlSchema(namespace = "http://jaxb.dev.java.net/array")
-package org.jboss.test.ws.jaxws.samples.news.generated.printer.swa;
+package org.jboss.test.ws.jaxws.samples.advanced.news.generated.printer.swa;
Copied: stack/native/trunk/src/test/resources/jaxws/samples/advanced/news (from rev 5937, stack/native/trunk/src/test/resources/jaxws/samples/news)
18 years, 1 month
JBossWS SVN: r5938 - in framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail: cc and 1 other directories.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-03-12 07:02:53 -0400 (Wed, 12 Mar 2008)
New Revision: 5938
Modified:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderMgmtBean.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/RetailSampleTestCase.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerification.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationBean.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/ObjectFactory.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ObjectFactory.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtBean.java
Log:
[JBWS-2031] Put advanced samples together with the retail sample
Modified: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderMgmtBean.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderMgmtBean.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderMgmtBean.java 2008-03-12 11:02:53 UTC (rev 5938)
@@ -41,7 +41,7 @@
* that offers access though RMI and SOAP
*/
@Stateless
-@WebService(endpointInterface = "org.jboss.test.ws.jaxws.samples.retail.OrderMgmt", name = "OrderMgmt", serviceName = "OrderMgmtService")
+@WebService(endpointInterface = "org.jboss.test.ws.jaxws.samples.advanced.retail.OrderMgmt", name = "OrderMgmt", serviceName = "OrderMgmtService")
@WebContext(contextRoot = "/jaxws-samples-retail")
@HandlerChain(file = "jaxws-handler.xml")
public class OrderMgmtBean implements OrderMgmt
Modified: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/RetailSampleTestCase.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/RetailSampleTestCase.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/RetailSampleTestCase.java 2008-03-12 11:02:53 UTC (rev 5938)
@@ -50,7 +50,7 @@
protected void setUp() throws Exception
{
- QName serviceName = new QName("http://retail.samples.jaxws.ws.test.jboss.org/", "OrderMgmtService");
+ QName serviceName = new QName("http://retail.advanced.samples.jaxws.ws.test.jboss.org/", "OrderMgmtService");
URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS+"?wsdl");
Service service = Service.create(wsdlURL, serviceName);
Modified: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerification.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerification.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerification.java 2008-03-12 11:02:53 UTC (rev 5938)
@@ -28,8 +28,8 @@
*/
@WebMethod
@WebResult(name = "verified", targetNamespace = "")
- @RequestWrapper(localName = "verify", targetNamespace = "http://org.jboss.ws/samples/retail/cc", className = "org.jboss.test.ws.jaxws.samples.retail.cc.VerificationRequest")
- @ResponseWrapper(localName = "verifyResponse", targetNamespace = "http://org.jboss.ws/samples/retail/cc", className = "org.jboss.test.ws.jaxws.samples.retail.cc.VerificationResponse")
+ @RequestWrapper(localName = "verify", targetNamespace = "http://org.jboss.ws/samples/retail/cc", className = "org.jboss.test.ws.jaxws.samples.advanced.retail.cc.VerificationRequest")
+ @ResponseWrapper(localName = "verifyResponse", targetNamespace = "http://org.jboss.ws/samples/retail/cc", className = "org.jboss.test.ws.jaxws.samples.advanced.retail.cc.VerificationResponse")
public Boolean verify(
@WebParam(name = "creditCardNumber", targetNamespace = "")
String creditCardNumber);
Modified: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationBean.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationBean.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationBean.java 2008-03-12 11:02:53 UTC (rev 5938)
@@ -29,7 +29,7 @@
import org.jboss.wsf.spi.annotation.WebContext;
@Stateless
-@WebService(endpointInterface = "org.jboss.test.ws.jaxws.samples.retail.cc.CCVerification", name = "CCVerification")
+@WebService(endpointInterface = "org.jboss.test.ws.jaxws.samples.advanced.retail.cc.CCVerification", name = "CCVerification")
@WebContext(contextRoot = "/jaxws-samples-retail")
//@HandlerChain(file = "../jaxws-handler.xml")
public class CCVerificationBean implements CCVerification
Modified: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/ObjectFactory.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/ObjectFactory.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/ObjectFactory.java 2008-03-12 11:02:53 UTC (rev 5938)
@@ -10,7 +10,7 @@
/**
* This object contains factory methods for each
* Java content interface and Java element interface
- * generated in the org.jboss.test.ws.jaxws.samples.retail.cc package.
+ * generated in the org.jboss.test.ws.jaxws.samples.advanced.retail.cc package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
@@ -28,7 +28,7 @@
private final static QName _Verify_QNAME = new QName("http://org.jboss.ws/samples/retail/cc", "verify");
/**
- * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.test.ws.jaxws.samples.retail.cc
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.test.ws.jaxws.samples.advanced.retail.cc
*
*/
public ObjectFactory() {
Modified: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ObjectFactory.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ObjectFactory.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ObjectFactory.java 2008-03-12 11:02:53 UTC (rev 5938)
@@ -12,7 +12,7 @@
/**
* This object contains factory methods for each
* Java content interface and Java element interface
- * generated in the org.jboss.test.ws.jaxws.samples.retail.profile package.
+ * generated in the org.jboss.test.ws.jaxws.samples.advanced.retail.profile package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
@@ -30,7 +30,7 @@
private final static QName _GetCustomerDiscountResponse_QNAME = new QName("http://org.jboss.ws/samples/retail/profile", "getCustomerDiscountResponse");
/**
- * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.test.ws.jaxws.samples.retail.profile
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.test.ws.jaxws.samples.advanced.retail.profile
*
*/
public ObjectFactory() {
Modified: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtBean.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtBean.java 2008-03-12 10:23:49 UTC (rev 5937)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtBean.java 2008-03-12 11:02:53 UTC (rev 5938)
@@ -27,7 +27,7 @@
import org.jboss.wsf.spi.annotation.WebContext;
@Stateless
-@WebService(endpointInterface = "org.jboss.test.ws.jaxws.samples.retail.profile.ProfileMgmt", name = "ProfileMgmt", serviceName = "ProfileMgmtService")
+@WebService(endpointInterface = "org.jboss.test.ws.jaxws.samples.advanced.retail.profile.ProfileMgmt", name = "ProfileMgmt", serviceName = "ProfileMgmtService")
@WebContext(contextRoot = "/jaxws-samples-retail")
//@HandlerChain(file = "../jaxws-handler.xml")
public class ProfileMgmtBean implements ProfileMgmt
18 years, 1 month
JBossWS SVN: r5937 - in framework/trunk/src/test: java/org/jboss/test/ws/jaxws/samples and 7 other directories.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-03-12 06:23:49 -0400 (Wed, 12 Mar 2008)
New Revision: 5937
Added:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/Customer.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/Order.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderAdmin.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderItem.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderLineRequest.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderLineResponse.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderMgmt.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderMgmtBean.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderStatus.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/RetailSampleTestCase.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerification.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationBean.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationService.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CreditcardProcessor.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/ObjectFactory.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationRequest.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationResponse.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/package-info.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/SOAPMessageTrace.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/Timer.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/jaxws-handler.xml
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountRequest.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountResponse.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ObjectFactory.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmt.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtBean.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtService.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/package-info.java
framework/trunk/src/test/resources/jaxws/samples/advanced/
framework/trunk/src/test/resources/jaxws/samples/advanced/retail/
Removed:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerification.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationBean.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationService.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CreditcardProcessor.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/ObjectFactory.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationRequest.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationResponse.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/package-info.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/SOAPMessageTrace.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/Timer.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountRequest.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountResponse.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ObjectFactory.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmt.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtBean.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtService.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/package-info.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/
framework/trunk/src/test/resources/jaxws/samples/retail/
Modified:
framework/trunk/src/test/ant-import/build-jars-jaxws.xml
Log:
[JBWS-2031] Put advanced samples together with the retail sample
Modified: framework/trunk/src/test/ant-import/build-jars-jaxws.xml
===================================================================
--- framework/trunk/src/test/ant-import/build-jars-jaxws.xml 2008-03-12 09:57:55 UTC (rev 5936)
+++ framework/trunk/src/test/ant-import/build-jars-jaxws.xml 2008-03-12 10:23:49 UTC (rev 5937)
@@ -196,10 +196,10 @@
<!-- jaxws-samples-retail -->
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-retail.jar">
<fileset dir="${tests.output.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/samples/retail/**/*.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/retail/jaxws-handler.xml"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/retail/**/*.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/advanced/retail/jaxws-handler.xml"/>
</fileset>
- <metainf dir="${tests.output.dir}/resources/jaxws/samples/retail/META-INF">
+ <metainf dir="${tests.output.dir}/resources/jaxws/samples/advanced/retail/META-INF">
<include name="wsdl/*"/>
</metainf>
</jar>
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/Customer.java (from rev 5915, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/Customer.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/Customer.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/Customer.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -0,0 +1,62 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.ws.jaxws.samples.advanced.retail;
+
+import java.io.Serializable;
+
+import javax.xml.bind.annotation.XmlType;
+
+@XmlType(name="customer", namespace = "http://org.jboss.ws/samples/retail", propOrder = {
+ "creditCardDetails",
+ "firstName",
+ "lastName"
+})
+public class Customer implements Serializable {
+ private String firstName;
+ private String lastName;
+ private String creditCardDetails;
+
+ public String getFirstName() {
+ return firstName;
+ }
+
+ public void setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+ public String getLastName() {
+ return lastName;
+ }
+
+ public void setLastName(String lastName) {
+ this.lastName = lastName;
+ }
+
+ public String getCreditCardDetails() {
+ return creditCardDetails;
+ }
+
+ public void setCreditCardDetails(String creditCardDetails) {
+ this.creditCardDetails = creditCardDetails;
+ }
+}
+
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/Order.java (from rev 5915, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/Order.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/Order.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/Order.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -0,0 +1,91 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.ws.jaxws.samples.advanced.retail;
+
+import javax.xml.bind.annotation.*;
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * @author Heiko Braun <heiko.braun(a)jboss.com>
+ * @version $Id$
+ * @since Nov 7, 2006
+ */
+
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(
+ name = "orderType",
+ namespace="http://org.jboss.ws/samples/retail",
+ propOrder = { "orderNum", "state", "customer", "items" }
+)
+public class Order implements Serializable {
+
+ public enum OrderState {TRANSIENT, PREPARED, VERIFIED, PROCESSED}
+
+ private OrderState state;
+ private long orderNum;
+ private Customer customer;
+ private List<OrderItem> items;
+
+ public Order(Customer customer) {
+ this.customer = customer;
+ }
+
+ public Order() {
+ this.state = OrderState.TRANSIENT;
+ }
+
+ public long getOrderNum() {
+ return orderNum;
+ }
+
+ public void setOrderNum(long orderNum) {
+ this.orderNum = orderNum;
+ }
+
+ public Customer getCustomer() {
+ return customer;
+ }
+
+ public void setCustomer(Customer customer) {
+ this.customer = customer;
+ }
+
+ public List<OrderItem> getItems() {
+ if(null==items)
+ items = new ArrayList<OrderItem>();
+ return items;
+ }
+
+ public OrderState getState() {
+ return state;
+ }
+
+ public void setState(OrderState state) {
+ this.state = state;
+ }
+
+ public String toString() {
+ return "Order {num="+orderNum+"}";
+ }
+}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderAdmin.java (from rev 5915, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderAdmin.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderAdmin.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderAdmin.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -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.advanced.retail;
+
+import javax.ejb.Remote;
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+@Remote
+@WebService(name = "OrderAdmin", targetNamespace = "http://org.jboss.ws/samples/retail")
+@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
+public interface OrderAdmin {
+
+ @WebMethod
+ public OrderLineResponse checkOrderLines(OrderLineRequest request);
+}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderItem.java (from rev 5915, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderItem.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderItem.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderItem.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -0,0 +1,58 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.ws.jaxws.samples.advanced.retail;
+
+import java.io.Serializable;
+
+/**
+ * @author Heiko Braun <heiko.braun(a)jboss.com>
+ * @version $Id$
+ * @since Nov 7, 2006
+ */
+public class OrderItem implements Serializable {
+ private String name;
+ private double price;
+
+ public OrderItem() {
+ }
+
+ public OrderItem(String name, double price) {
+ this.name = name;
+ this.price = price;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public double getPrice() {
+ return price;
+ }
+
+ public void setPrice(double price) {
+ this.price = price;
+ }
+}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderLineRequest.java (from rev 5915, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderLineRequest.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderLineRequest.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderLineRequest.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -0,0 +1,20 @@
+package org.jboss.test.ws.jaxws.samples.advanced.retail;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: hbraun
+ * Date: 13.12.2006
+ * Time: 14:18:27
+ * To change this template use File | Settings | File Templates.
+ */
+public class OrderLineRequest {
+ private String reqKey;
+
+ public String getReqKey() {
+ return reqKey;
+ }
+
+ public void setReqKey(String reqKey) {
+ this.reqKey = reqKey;
+ }
+}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderLineResponse.java (from rev 5915, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderLineResponse.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderLineResponse.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderLineResponse.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -0,0 +1,20 @@
+package org.jboss.test.ws.jaxws.samples.advanced.retail;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: hbraun
+ * Date: 13.12.2006
+ * Time: 14:19:03
+ * To change this template use File | Settings | File Templates.
+ */
+public class OrderLineResponse {
+ private int ordersInLine;
+
+ public int getOrdersInLine() {
+ return ordersInLine;
+ }
+
+ public void setOrdersInLine(int ordersInLine) {
+ this.ordersInLine = ordersInLine;
+ }
+}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderMgmt.java (from rev 5915, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderMgmt.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderMgmt.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderMgmt.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -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.advanced.retail;
+
+import javax.ejb.Remote;
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+@Remote
+@WebService(name = "OrderMgmt", targetNamespace = "http://org.jboss.ws/samples/retail")
+@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
+public interface OrderMgmt {
+
+ @WebMethod
+ public OrderStatus prepareOrder(Order order);
+}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderMgmtBean.java (from rev 5915, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderMgmtBean.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderMgmtBean.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderMgmtBean.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -0,0 +1,122 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.retail;
+
+import javax.annotation.PostConstruct;
+import javax.ejb.Stateless;
+import javax.jws.HandlerChain;
+import javax.jws.WebService;
+import javax.xml.ws.WebServiceRef;
+
+import org.jboss.logging.Logger;
+import org.jboss.test.ws.jaxws.samples.advanced.retail.cc.CCVerification;
+import org.jboss.test.ws.jaxws.samples.advanced.retail.cc.CCVerificationService;
+import org.jboss.test.ws.jaxws.samples.advanced.retail.profile.DiscountRequest;
+import org.jboss.test.ws.jaxws.samples.advanced.retail.profile.DiscountResponse;
+import org.jboss.test.ws.jaxws.samples.advanced.retail.profile.ProfileMgmt;
+import org.jboss.test.ws.jaxws.samples.advanced.retail.profile.ProfileMgmtService;
+import org.jboss.wsf.spi.annotation.WebContext;
+
+/**
+ * An example order management component
+ * that offers access though RMI and SOAP
+ */
+@Stateless
+@WebService(endpointInterface = "org.jboss.test.ws.jaxws.samples.retail.OrderMgmt", name = "OrderMgmt", serviceName = "OrderMgmtService")
+@WebContext(contextRoot = "/jaxws-samples-retail")
+@HandlerChain(file = "jaxws-handler.xml")
+public class OrderMgmtBean implements OrderMgmt
+{
+
+ private static final Logger log = Logger.getLogger(OrderMgmtBean.class);
+
+ @WebServiceRef(wsdlLocation = "META-INF/wsdl/CCVerificationService.wsdl")
+ private CCVerificationService verificationService;
+ private CCVerification verificationPort;
+
+ @WebServiceRef(wsdlLocation = "META-INF/wsdl/ProfileMgmtService.wsdl")
+ private ProfileMgmtService profileService;
+ private ProfileMgmt profilePort;
+
+ @PostConstruct
+ public void initialize()
+ {
+ // Throws NPE with SUN-RI, use lazy initialize instead
+ //verificationPort = verificationService.getCCVerificationPort();
+ //profilePort = profileService.getProfileMgmtPort();
+ }
+
+ public CCVerification getVerificationPort()
+ {
+ return verificationService.getCCVerificationPort();
+ }
+
+ public ProfileMgmt getProfilePort()
+ {
+ return profileService.getProfileMgmtPort();
+ }
+
+ /**
+ * Prepare a customer order.
+ * This will verify the billing details (i.e. creditcard)
+ * and check if the customer qualifies for a discount
+ * (applies to high value customers only)
+ *
+ * @param order
+ * @return OrderStaus
+ */
+ public OrderStatus prepareOrder(Order order)
+ {
+
+ log.info("Preparing order " + order);
+
+ // verify billing details
+ String creditCard = order.getCustomer().getCreditCardDetails();
+ //Response<Boolean> response = getVerificationPort().verifyAsync(creditCard);
+
+ boolean validCard = getVerificationPort().verify(creditCard);
+
+ // high value customer discount
+ DiscountRequest discountRequest = new DiscountRequest(order.getCustomer());
+ DiscountResponse discount = getProfilePort().getCustomerDiscount(discountRequest);
+ boolean hasDiscount = discount.getDiscount() > 0.00;
+ log.info("High value customer ? " + hasDiscount);
+
+ try
+ {
+ //log.info(creditCard + " valid? " + response.get());
+ log.info(creditCard + " valid? " + validCard);
+ }
+ catch (Exception e)
+ {
+ log.error("Failed to access async results", e);
+ }
+
+ // transition to prepared state
+ order.setState(Order.OrderState.PREPARED);
+
+ // done
+ //return new OrderStatus("Prepared", order.getOrderNum(), discount.getDiscount());
+ return new OrderStatus("Prepared", order.getOrderNum(), 0);
+ }
+
+}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderStatus.java (from rev 5915, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderStatus.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderStatus.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderStatus.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -0,0 +1,75 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.ws.jaxws.samples.advanced.retail;
+
+import java.io.Serializable;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * @author Heiko Braun <heiko.braun(a)jboss.com>
+ * @version $Id$
+ * @since Nov 8, 2006
+ */
+
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "orderStatus", namespace = "http://org.jboss.ws/samples/retail")
+public class OrderStatus implements Serializable {
+ private String status;
+ private long orderNum;
+ private double discount;
+
+ public OrderStatus() {
+ }
+
+ public OrderStatus(String status, long orderNum, double discount) {
+ this.status = status;
+ this.orderNum = orderNum;
+ this.discount = discount;
+ }
+
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ public long getOrderNum() {
+ return orderNum;
+ }
+
+ public void setOrderNum(long orderNum) {
+ this.orderNum = orderNum;
+ }
+
+ public double getDiscount() {
+ return discount;
+ }
+
+ public void setDiscount(double discount) {
+ this.discount = discount;
+ }
+}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/RetailSampleTestCase.java (from rev 5915, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/RetailSampleTestCase.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/RetailSampleTestCase.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/RetailSampleTestCase.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -0,0 +1,75 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.ws.jaxws.samples.advanced.retail;
+
+// $Id$
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * @author Heiko Braun <heiko.braun(a)jboss.com>
+ * @since 08-Nov-2006
+ */
+public class RetailSampleTestCase extends JBossWSTest {
+
+ public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-samples-retail/OrderMgmtBean";
+
+ private OrderMgmt orderMgmtWS;
+
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(RetailSampleTestCase.class, "jaxws-samples-retail.jar");
+ }
+
+ protected void setUp() throws Exception
+ {
+ QName serviceName = new QName("http://retail.samples.jaxws.ws.test.jboss.org/", "OrderMgmtService");
+ URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS+"?wsdl");
+
+ Service service = Service.create(wsdlURL, serviceName);
+ orderMgmtWS = (OrderMgmt)service.getPort(OrderMgmt.class);
+ }
+
+ public void testWebService() throws Exception
+ {
+ Customer customer = new Customer();
+ customer.setFirstName("Chuck");
+ customer.setLastName("Norris");
+ customer.setCreditCardDetails("1000-4567-3456-XXXX");
+
+ Order order = new Order(customer);
+ order.setOrderNum(12345);
+ order.getItems().add( new OrderItem("Introduction to Web Services", 39.99) );
+
+ OrderStatus result = orderMgmtWS.prepareOrder(order);
+ assertNotNull("Result was null", result);
+ assertEquals("Prepared", result.getStatus());
+ }
+}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc (from rev 5915, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc)
Deleted: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerification.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/CCVerification.java 2008-03-11 14:02:15 UTC (rev 5915)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerification.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -1,39 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.retail.cc;
-
-import javax.jws.WebMethod;
-import javax.jws.WebParam;
-import javax.jws.WebResult;
-import javax.jws.WebService;
-import javax.xml.ws.RequestWrapper;
-import javax.xml.ws.Response;
-import javax.xml.ws.ResponseWrapper;
-
-
-/**
- * This class was generated by the JAXWS SI.
- * JAX-WS RI 2.1-10/21/2006 12:56 AM(vivek)-EA2
- * Generated source version: 2.0
- *
- */
-@WebService(name = "CCVerification", targetNamespace = "http://org.jboss.ws/samples/retail/cc")
-public interface CCVerification {
-
-
- /**
- *
- * @param creditCardNumber
- * @return
- * returns boolean
- */
- @WebMethod
- @WebResult(name = "verified", targetNamespace = "")
- @RequestWrapper(localName = "verify", targetNamespace = "http://org.jboss.ws/samples/retail/cc", className = "org.jboss.test.ws.jaxws.samples.retail.cc.VerificationRequest")
- @ResponseWrapper(localName = "verifyResponse", targetNamespace = "http://org.jboss.ws/samples/retail/cc", className = "org.jboss.test.ws.jaxws.samples.retail.cc.VerificationResponse")
- public Boolean verify(
- @WebParam(name = "creditCardNumber", targetNamespace = "")
- String creditCardNumber);
-
- //Response<Boolean> verifyAsync(String creditCardNumber);
-
-}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerification.java (from rev 5936, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/CCVerification.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerification.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerification.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -0,0 +1,39 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.retail.cc;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.Response;
+import javax.xml.ws.ResponseWrapper;
+
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.1-10/21/2006 12:56 AM(vivek)-EA2
+ * Generated source version: 2.0
+ *
+ */
+@WebService(name = "CCVerification", targetNamespace = "http://org.jboss.ws/samples/retail/cc")
+public interface CCVerification {
+
+
+ /**
+ *
+ * @param creditCardNumber
+ * @return
+ * returns boolean
+ */
+ @WebMethod
+ @WebResult(name = "verified", targetNamespace = "")
+ @RequestWrapper(localName = "verify", targetNamespace = "http://org.jboss.ws/samples/retail/cc", className = "org.jboss.test.ws.jaxws.samples.retail.cc.VerificationRequest")
+ @ResponseWrapper(localName = "verifyResponse", targetNamespace = "http://org.jboss.ws/samples/retail/cc", className = "org.jboss.test.ws.jaxws.samples.retail.cc.VerificationResponse")
+ public Boolean verify(
+ @WebParam(name = "creditCardNumber", targetNamespace = "")
+ String creditCardNumber);
+
+ //Response<Boolean> verifyAsync(String creditCardNumber);
+
+}
Deleted: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationBean.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/CCVerificationBean.java 2008-03-11 14:02:15 UTC (rev 5915)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationBean.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -1,51 +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.test.ws.jaxws.samples.retail.cc;
-
-import javax.ejb.Stateless;
-import javax.jws.WebService;
-import javax.xml.ws.Response;
-
-import org.jboss.logging.Logger;
-import org.jboss.wsf.spi.annotation.WebContext;
-
-@Stateless
-@WebService(endpointInterface = "org.jboss.test.ws.jaxws.samples.retail.cc.CCVerification", name = "CCVerification")
-@WebContext(contextRoot = "/jaxws-samples-retail")
-//@HandlerChain(file = "../jaxws-handler.xml")
-public class CCVerificationBean implements CCVerification
-{
-
- private static final Logger log = Logger.getLogger(CCVerificationBean.class);
-
- public Boolean verify(String creditcard)
- {
- log.info("Verifying credit card: " + creditcard);
- CreditcardProcessor.process(creditcard);
- return true;
- }
-
- public Response<Boolean> verifyAsync(String creditCardNumber)
- {
- return null;
- }
-}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationBean.java (from rev 5936, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/CCVerificationBean.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationBean.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationBean.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.retail.cc;
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+import javax.xml.ws.Response;
+
+import org.jboss.logging.Logger;
+import org.jboss.wsf.spi.annotation.WebContext;
+
+@Stateless
+@WebService(endpointInterface = "org.jboss.test.ws.jaxws.samples.retail.cc.CCVerification", name = "CCVerification")
+@WebContext(contextRoot = "/jaxws-samples-retail")
+//@HandlerChain(file = "../jaxws-handler.xml")
+public class CCVerificationBean implements CCVerification
+{
+
+ private static final Logger log = Logger.getLogger(CCVerificationBean.class);
+
+ public Boolean verify(String creditcard)
+ {
+ log.info("Verifying credit card: " + creditcard);
+ CreditcardProcessor.process(creditcard);
+ return true;
+ }
+
+ public Response<Boolean> verifyAsync(String creditCardNumber)
+ {
+ return null;
+ }
+}
Deleted: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationService.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/CCVerificationService.java 2008-03-11 14:02:15 UTC (rev 5915)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationService.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -1,52 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.retail.cc;
-
-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 JAXWS SI.
- * JAX-WS RI 2.1-10/21/2006 12:56 AM(vivek)-EA2
- * Generated source version: 2.0
- *
- */
-@WebServiceClient(name = "CCVerificationService", targetNamespace = "http://org.jboss.ws/samples/retail/cc", wsdlLocation = "resources/jaxws/samples/retail/META-INF/wsdl/CCVerificationService.wsdl")
-public class CCVerificationService
- extends Service
-{
-
- private final static URL CCVERIFICATIONSERVICE_WSDL_LOCATION;
-
- static {
- URL url = null;
- try {
- url = new URL("http://somehost:8080/jaxws-samples-retail/CCVerificationBean?wsdl");
- } catch (MalformedURLException e) {
- e.printStackTrace();
- }
- CCVERIFICATIONSERVICE_WSDL_LOCATION = url;
- }
-
- public CCVerificationService(URL wsdlLocation, QName serviceName) {
- super(wsdlLocation, serviceName);
- }
-
- public CCVerificationService() {
- super(CCVERIFICATIONSERVICE_WSDL_LOCATION, new QName("http://org.jboss.ws/samples/retail/cc", "CCVerificationService"));
- }
-
- /**
- *
- * @return
- * returns CCVerification
- */
- @WebEndpoint(name = "CCVerificationPort")
- public CCVerification getCCVerificationPort() {
- return (CCVerification)super.getPort(new QName("http://org.jboss.ws/samples/retail/cc", "CCVerificationPort"), CCVerification.class);
- }
-}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationService.java (from rev 5936, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/CCVerificationService.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationService.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationService.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -0,0 +1,52 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.retail.cc;
+
+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 JAXWS SI.
+ * JAX-WS RI 2.1-10/21/2006 12:56 AM(vivek)-EA2
+ * Generated source version: 2.0
+ *
+ */
+@WebServiceClient(name = "CCVerificationService", targetNamespace = "http://org.jboss.ws/samples/retail/cc", wsdlLocation = "resources/jaxws/samples/retail/META-INF/wsdl/CCVerificationService.wsdl")
+public class CCVerificationService
+ extends Service
+{
+
+ private final static URL CCVERIFICATIONSERVICE_WSDL_LOCATION;
+
+ static {
+ URL url = null;
+ try {
+ url = new URL("http://somehost:8080/jaxws-samples-retail/CCVerificationBean?wsdl");
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ CCVERIFICATIONSERVICE_WSDL_LOCATION = url;
+ }
+
+ public CCVerificationService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public CCVerificationService() {
+ super(CCVERIFICATIONSERVICE_WSDL_LOCATION, new QName("http://org.jboss.ws/samples/retail/cc", "CCVerificationService"));
+ }
+
+ /**
+ *
+ * @return
+ * returns CCVerification
+ */
+ @WebEndpoint(name = "CCVerificationPort")
+ public CCVerification getCCVerificationPort() {
+ return (CCVerification)super.getPort(new QName("http://org.jboss.ws/samples/retail/cc", "CCVerificationPort"), CCVerification.class);
+ }
+}
Deleted: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CreditcardProcessor.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/CreditcardProcessor.java 2008-03-11 14:02:15 UTC (rev 5915)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CreditcardProcessor.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -1,43 +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.test.ws.jaxws.samples.retail.cc;
-
-/**
- * @author Heiko Braun <heiko.braun(a)jboss.com>
- * @version $Id$
- * @since Nov 9, 2006
- */
-public class CreditcardProcessor {
-
- public static void process(String creditcatrd)
- {
- // this will take some time
- try
- {
- Thread.currentThread().join(1500);
- }
- catch (InterruptedException e)
- {
- e.printStackTrace();
- }
- }
-}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CreditcardProcessor.java (from rev 5936, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/CreditcardProcessor.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CreditcardProcessor.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CreditcardProcessor.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.ws.jaxws.samples.advanced.retail.cc;
+
+/**
+ * @author Heiko Braun <heiko.braun(a)jboss.com>
+ * @version $Id$
+ * @since Nov 9, 2006
+ */
+public class CreditcardProcessor {
+
+ public static void process(String creditcatrd)
+ {
+ // this will take some time
+ try
+ {
+ Thread.currentThread().join(1500);
+ }
+ catch (InterruptedException e)
+ {
+ e.printStackTrace();
+ }
+ }
+}
Deleted: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/ObjectFactory.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/ObjectFactory.java 2008-03-11 14:02:15 UTC (rev 5915)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/ObjectFactory.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -1,71 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.retail.cc;
-
-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.retail.cc 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 _VerifyResponse_QNAME = new QName("http://org.jboss.ws/samples/retail/cc", "verifyResponse");
- private final static QName _Verify_QNAME = new QName("http://org.jboss.ws/samples/retail/cc", "verify");
-
- /**
- * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.test.ws.jaxws.samples.retail.cc
- *
- */
- public ObjectFactory() {
- }
-
- /**
- * Create an instance of {@link VerificationRequest }
- *
- */
- public VerificationRequest createVerificationRequest() {
- return new VerificationRequest();
- }
-
- /**
- * Create an instance of {@link VerificationResponse }
- *
- */
- public VerificationResponse createVerificationResponse() {
- return new VerificationResponse();
- }
-
- /**
- * Create an instance of {@link JAXBElement }{@code <}{@link VerificationResponse }{@code >}}
- *
- */
- @XmlElementDecl(namespace = "http://org.jboss.ws/samples/retail/cc", name = "verifyResponse")
- public JAXBElement<VerificationResponse> createVerifyResponse(VerificationResponse value) {
- return new JAXBElement<VerificationResponse>(_VerifyResponse_QNAME, VerificationResponse.class, null, value);
- }
-
- /**
- * Create an instance of {@link JAXBElement }{@code <}{@link VerificationRequest }{@code >}}
- *
- */
- @XmlElementDecl(namespace = "http://org.jboss.ws/samples/retail/cc", name = "verify")
- public JAXBElement<VerificationRequest> createVerify(VerificationRequest value) {
- return new JAXBElement<VerificationRequest>(_Verify_QNAME, VerificationRequest.class, null, value);
- }
-
-}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/ObjectFactory.java (from rev 5936, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/ObjectFactory.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/ObjectFactory.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/ObjectFactory.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -0,0 +1,71 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.retail.cc;
+
+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.retail.cc 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 _VerifyResponse_QNAME = new QName("http://org.jboss.ws/samples/retail/cc", "verifyResponse");
+ private final static QName _Verify_QNAME = new QName("http://org.jboss.ws/samples/retail/cc", "verify");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.test.ws.jaxws.samples.retail.cc
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link VerificationRequest }
+ *
+ */
+ public VerificationRequest createVerificationRequest() {
+ return new VerificationRequest();
+ }
+
+ /**
+ * Create an instance of {@link VerificationResponse }
+ *
+ */
+ public VerificationResponse createVerificationResponse() {
+ return new VerificationResponse();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link VerificationResponse }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://org.jboss.ws/samples/retail/cc", name = "verifyResponse")
+ public JAXBElement<VerificationResponse> createVerifyResponse(VerificationResponse value) {
+ return new JAXBElement<VerificationResponse>(_VerifyResponse_QNAME, VerificationResponse.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link VerificationRequest }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://org.jboss.ws/samples/retail/cc", name = "verify")
+ public JAXBElement<VerificationRequest> createVerify(VerificationRequest value) {
+ return new JAXBElement<VerificationRequest>(_Verify_QNAME, VerificationRequest.class, null, value);
+ }
+
+}
Deleted: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationRequest.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/VerificationRequest.java 2008-03-11 14:02:15 UTC (rev 5915)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationRequest.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -1,67 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.retail.cc;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- * <p>Java class for verificationRequest complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="verificationRequest">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="creditCardNumber" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-(a)XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "verificationRequest", propOrder = {
- "creditCardNumber"
- })
-public class VerificationRequest {
-
- protected String creditCardNumber;
-
- public VerificationRequest(String creditCardNumber) {
- this.creditCardNumber = creditCardNumber;
- }
-
- public VerificationRequest() {
- }
-
- /**
- * Gets the value of the creditCardNumber property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getCreditCardNumber() {
- return creditCardNumber;
- }
-
- /**
- * Sets the value of the creditCardNumber property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setCreditCardNumber(String value) {
- this.creditCardNumber = value;
- }
-
-}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationRequest.java (from rev 5936, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/VerificationRequest.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationRequest.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationRequest.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -0,0 +1,67 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.retail.cc;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for verificationRequest complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="verificationRequest">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="creditCardNumber" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "verificationRequest", propOrder = {
+ "creditCardNumber"
+ })
+public class VerificationRequest {
+
+ protected String creditCardNumber;
+
+ public VerificationRequest(String creditCardNumber) {
+ this.creditCardNumber = creditCardNumber;
+ }
+
+ public VerificationRequest() {
+ }
+
+ /**
+ * Gets the value of the creditCardNumber property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getCreditCardNumber() {
+ return creditCardNumber;
+ }
+
+ /**
+ * Sets the value of the creditCardNumber property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setCreditCardNumber(String value) {
+ this.creditCardNumber = value;
+ }
+
+}
Deleted: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationResponse.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/VerificationResponse.java 2008-03-11 14:02:15 UTC (rev 5915)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationResponse.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -1,52 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.retail.cc;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- * <p>Java class for verificationResponse complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="verificationResponse">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="verified" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-(a)XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "verificationResponse", propOrder = {
- "verified"
-})
-public class VerificationResponse {
-
- protected Boolean verified;
-
- /**
- * Gets the value of the verified property.
- *
- */
- public Boolean isVerified() {
- return verified;
- }
-
- /**
- * Sets the value of the verified property.
- *
- */
- public void setVerified(Boolean value) {
- this.verified = value;
- }
-
-}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationResponse.java (from rev 5936, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/VerificationResponse.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationResponse.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationResponse.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -0,0 +1,52 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.retail.cc;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for verificationResponse complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="verificationResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="verified" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "verificationResponse", propOrder = {
+ "verified"
+})
+public class VerificationResponse {
+
+ protected Boolean verified;
+
+ /**
+ * Gets the value of the verified property.
+ *
+ */
+ public Boolean isVerified() {
+ return verified;
+ }
+
+ /**
+ * Sets the value of the verified property.
+ *
+ */
+ public void setVerified(Boolean value) {
+ this.verified = value;
+ }
+
+}
Deleted: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/package-info.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/package-info.java 2008-03-11 14:02:15 UTC (rev 5915)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/package-info.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -1,2 +0,0 @@
-(a)javax.xml.bind.annotation.XmlSchema(namespace = "http://org.jboss.ws/samples/retail/cc")
-package org.jboss.test.ws.jaxws.samples.retail.cc;
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/package-info.java (from rev 5936, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/package-info.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/package-info.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/package-info.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -0,0 +1,2 @@
+(a)javax.xml.bind.annotation.XmlSchema(namespace = "http://org.jboss.ws/samples/retail/cc")
+package org.jboss.test.ws.jaxws.samples.advanced.retail.cc;
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler (from rev 5915, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/handler)
Deleted: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/SOAPMessageTrace.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/handler/SOAPMessageTrace.java 2008-03-11 14:02:15 UTC (rev 5915)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/SOAPMessageTrace.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -1,48 +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.test.ws.jaxws.samples.retail.handler;
-
-import javax.xml.ws.handler.MessageContext;
-
-import org.jboss.logging.Logger;
-import org.jboss.wsf.test.GenericSOAPHandler;
-
-public class SOAPMessageTrace extends GenericSOAPHandler
-{
- private static final Logger log = Logger.getLogger(SOAPMessageTrace.class);
-
- private Timer timer = Timer.getInstance();
-
- @Override
- public boolean handleInbound(MessageContext msgContext)
- {
- timer.push(System.currentTimeMillis());
- return true;
- }
-
- @Override
- public boolean handleOutbound(MessageContext msgContext)
- {
- log.info("Exectime time: " + timer.pop() + " ms");
- return true;
- }
-}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/SOAPMessageTrace.java (from rev 5936, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/handler/SOAPMessageTrace.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/SOAPMessageTrace.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/SOAPMessageTrace.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -0,0 +1,48 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.ws.jaxws.samples.advanced.retail.handler;
+
+import javax.xml.ws.handler.MessageContext;
+
+import org.jboss.logging.Logger;
+import org.jboss.wsf.test.GenericSOAPHandler;
+
+public class SOAPMessageTrace extends GenericSOAPHandler
+{
+ private static final Logger log = Logger.getLogger(SOAPMessageTrace.class);
+
+ private Timer timer = Timer.getInstance();
+
+ @Override
+ public boolean handleInbound(MessageContext msgContext)
+ {
+ timer.push(System.currentTimeMillis());
+ return true;
+ }
+
+ @Override
+ public boolean handleOutbound(MessageContext msgContext)
+ {
+ log.info("Exectime time: " + timer.pop() + " ms");
+ return true;
+ }
+}
Deleted: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/Timer.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/handler/Timer.java 2008-03-11 14:02:15 UTC (rev 5915)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/Timer.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -1,57 +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.
-*/
-/**
- * @author Heiko Braun <heiko.braun(a)jboss.com>
- * @since Nov 9, 2006
- * @version $Id$
- */
-package org.jboss.test.ws.jaxws.samples.retail.handler;
-
-import java.util.Stack;
-
-public class Timer {
-
- private Stack<Long> timings = new Stack<Long>();
-
- private static Timer ourInstance = new Timer();
-
- public static Timer getInstance() {
- return ourInstance;
- }
-
- private Timer() {
- }
-
- public synchronized void push(long t)
- {
- timings.push(new Long(t));
- }
-
- public synchronized long pop()
- {
- if(timings.isEmpty())
- return 0;
-
- Long aLong = timings.pop();
- return System.currentTimeMillis() - aLong.longValue();
- }
-}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/Timer.java (from rev 5936, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/handler/Timer.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/Timer.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/Timer.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -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.
+*/
+/**
+ * @author Heiko Braun <heiko.braun(a)jboss.com>
+ * @since Nov 9, 2006
+ * @version $Id$
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.retail.handler;
+
+import java.util.Stack;
+
+public class Timer {
+
+ private Stack<Long> timings = new Stack<Long>();
+
+ private static Timer ourInstance = new Timer();
+
+ public static Timer getInstance() {
+ return ourInstance;
+ }
+
+ private Timer() {
+ }
+
+ public synchronized void push(long t)
+ {
+ timings.push(new Long(t));
+ }
+
+ public synchronized long pop()
+ {
+ if(timings.isEmpty())
+ return 0;
+
+ Long aLong = timings.pop();
+ return System.currentTimeMillis() - aLong.longValue();
+ }
+}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/jaxws-handler.xml (from rev 5915, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/jaxws-handler.xml)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/jaxws-handler.xml (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/jaxws-handler.xml 2008-03-12 10:23:49 UTC (rev 5937)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<handler-chains xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ns1="http://org.jboss.ws/jaxws/handlerscope"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee javaee_web_services_1_2.xsd">
+
+ <handler-chain>
+ <protocol-bindings>##SOAP11_HTTP</protocol-bindings>
+ <handler>
+ <handler-name>SOAPMessageTrace</handler-name>
+ <handler-class>org.jboss.test.ws.jaxws.samples.advanced.retail.handler.SOAPMessageTrace</handler-class>
+ </handler>
+ </handler-chain>
+
+</handler-chains>
\ No newline at end of file
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile (from rev 5915, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile)
Deleted: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountRequest.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/DiscountRequest.java 2008-03-11 14:02:15 UTC (rev 5915)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountRequest.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -1,69 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.retail.profile;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlType;
-
-import org.jboss.test.ws.jaxws.samples.retail.Customer;
-
-
-/**
- * <p>Java class for discountRequest complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="discountRequest">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="customer" type="{http://org.jboss.ws/samples/retail}customer" minOccurs="0"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-(a)XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "discountRequest", propOrder = {
- "customer"
- })
-public class DiscountRequest {
-
- protected Customer customer;
-
- public DiscountRequest() {
- }
-
- public DiscountRequest(Customer customer) {
- this.customer = customer;
- }
-
- /**
- * Gets the value of the customer property.
- *
- * @return
- * possible object is
- * {@link Customer }
- *
- */
- public Customer getCustomer() {
- return customer;
- }
-
- /**
- * Sets the value of the customer property.
- *
- * @param value
- * allowed object is
- * {@link Customer }
- *
- */
- public void setCustomer(Customer value) {
- this.customer = value;
- }
-
-}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountRequest.java (from rev 5936, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/DiscountRequest.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountRequest.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountRequest.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -0,0 +1,69 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.retail.profile;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+import org.jboss.test.ws.jaxws.samples.advanced.retail.Customer;
+
+
+/**
+ * <p>Java class for discountRequest complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="discountRequest">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="customer" type="{http://org.jboss.ws/samples/retail}customer" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "discountRequest", propOrder = {
+ "customer"
+ })
+public class DiscountRequest {
+
+ protected Customer customer;
+
+ public DiscountRequest() {
+ }
+
+ public DiscountRequest(Customer customer) {
+ this.customer = customer;
+ }
+
+ /**
+ * Gets the value of the customer property.
+ *
+ * @return
+ * possible object is
+ * {@link Customer }
+ *
+ */
+ public Customer getCustomer() {
+ return customer;
+ }
+
+ /**
+ * Sets the value of the customer property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Customer }
+ *
+ */
+ public void setCustomer(Customer value) {
+ this.customer = value;
+ }
+
+}
Deleted: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountResponse.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/DiscountResponse.java 2008-03-11 14:02:15 UTC (rev 5915)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountResponse.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -1,89 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.retail.profile;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlType;
-
-import org.jboss.test.ws.jaxws.samples.retail.Customer;
-
-
-/**
- * <p>Java class for discountResponse complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="discountResponse">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="customer" type="{http://org.jboss.ws/samples/retail}customer" minOccurs="0"/>
- * <element name="discount" type="{http://www.w3.org/2001/XMLSchema}double"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-(a)XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "discountResponse", propOrder = {
- "customer",
- "discount"
- })
-public class DiscountResponse {
-
- protected Customer customer;
- protected double discount;
-
- public DiscountResponse() {
- }
-
- public DiscountResponse(Customer customer, double discount) {
- this.customer = customer;
- this.discount = discount;
- }
-
- /**
- * Gets the value of the customer property.
- *
- * @return
- * possible object is
- * {@link Customer }
- *
- */
- public Customer getCustomer() {
- return customer;
- }
-
- /**
- * Sets the value of the customer property.
- *
- * @param value
- * allowed object is
- * {@link Customer }
- *
- */
- public void setCustomer(Customer value) {
- this.customer = value;
- }
-
- /**
- * Gets the value of the discount property.
- *
- */
- public double getDiscount() {
- return discount;
- }
-
- /**
- * Sets the value of the discount property.
- *
- */
- public void setDiscount(double value) {
- this.discount = value;
- }
-
-}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountResponse.java (from rev 5936, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/DiscountResponse.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountResponse.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountResponse.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -0,0 +1,89 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.retail.profile;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+import org.jboss.test.ws.jaxws.samples.advanced.retail.Customer;
+
+
+/**
+ * <p>Java class for discountResponse complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="discountResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="customer" type="{http://org.jboss.ws/samples/retail}customer" minOccurs="0"/>
+ * <element name="discount" type="{http://www.w3.org/2001/XMLSchema}double"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "discountResponse", propOrder = {
+ "customer",
+ "discount"
+ })
+public class DiscountResponse {
+
+ protected Customer customer;
+ protected double discount;
+
+ public DiscountResponse() {
+ }
+
+ public DiscountResponse(Customer customer, double discount) {
+ this.customer = customer;
+ this.discount = discount;
+ }
+
+ /**
+ * Gets the value of the customer property.
+ *
+ * @return
+ * possible object is
+ * {@link Customer }
+ *
+ */
+ public Customer getCustomer() {
+ return customer;
+ }
+
+ /**
+ * Sets the value of the customer property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Customer }
+ *
+ */
+ public void setCustomer(Customer value) {
+ this.customer = value;
+ }
+
+ /**
+ * Gets the value of the discount property.
+ *
+ */
+ public double getDiscount() {
+ return discount;
+ }
+
+ /**
+ * Sets the value of the discount property.
+ *
+ */
+ public void setDiscount(double value) {
+ this.discount = value;
+ }
+
+}
Deleted: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ObjectFactory.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ObjectFactory.java 2008-03-11 14:02:15 UTC (rev 5915)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ObjectFactory.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -1,81 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.retail.profile;
-
-import javax.xml.bind.JAXBElement;
-import javax.xml.bind.annotation.XmlElementDecl;
-import javax.xml.bind.annotation.XmlRegistry;
-import javax.xml.namespace.QName;
-
-import org.jboss.test.ws.jaxws.samples.retail.Customer;
-
-
-/**
- * This object contains factory methods for each
- * Java content interface and Java element interface
- * generated in the org.jboss.test.ws.jaxws.samples.retail.profile 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 _GetCustomerDiscount_QNAME = new QName("http://org.jboss.ws/samples/retail/profile", "getCustomerDiscount");
- private final static QName _GetCustomerDiscountResponse_QNAME = new QName("http://org.jboss.ws/samples/retail/profile", "getCustomerDiscountResponse");
-
- /**
- * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.test.ws.jaxws.samples.retail.profile
- *
- */
- public ObjectFactory() {
- }
-
- /**
- * Create an instance of {@link Customer }
- *
- */
- public Customer createCustomer() {
- return new Customer();
- }
-
- /**
- * Create an instance of {@link DiscountResponse }
- *
- */
- public DiscountResponse createDiscountResponse() {
- return new DiscountResponse();
- }
-
- /**
- * Create an instance of {@link DiscountRequest }
- *
- */
- public DiscountRequest createDiscountRequest() {
- return new DiscountRequest();
- }
-
- /**
- * Create an instance of {@link JAXBElement }{@code <}{@link DiscountRequest }{@code >}}
- *
- */
- @XmlElementDecl(namespace = "http://org.jboss.ws/samples/retail/profile", name = "getCustomerDiscount")
- public JAXBElement<DiscountRequest> createGetCustomerDiscount(DiscountRequest value) {
- return new JAXBElement<DiscountRequest>(_GetCustomerDiscount_QNAME, DiscountRequest.class, null, value);
- }
-
- /**
- * Create an instance of {@link JAXBElement }{@code <}{@link DiscountResponse }{@code >}}
- *
- */
- @XmlElementDecl(namespace = "http://org.jboss.ws/samples/retail/profile", name = "getCustomerDiscountResponse")
- public JAXBElement<DiscountResponse> createGetCustomerDiscountResponse(DiscountResponse value) {
- return new JAXBElement<DiscountResponse>(_GetCustomerDiscountResponse_QNAME, DiscountResponse.class, null, value);
- }
-
-}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ObjectFactory.java (from rev 5936, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ObjectFactory.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ObjectFactory.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ObjectFactory.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -0,0 +1,81 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.retail.profile;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+import org.jboss.test.ws.jaxws.samples.advanced.retail.Customer;
+
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the org.jboss.test.ws.jaxws.samples.retail.profile 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 _GetCustomerDiscount_QNAME = new QName("http://org.jboss.ws/samples/retail/profile", "getCustomerDiscount");
+ private final static QName _GetCustomerDiscountResponse_QNAME = new QName("http://org.jboss.ws/samples/retail/profile", "getCustomerDiscountResponse");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.test.ws.jaxws.samples.retail.profile
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link Customer }
+ *
+ */
+ public Customer createCustomer() {
+ return new Customer();
+ }
+
+ /**
+ * Create an instance of {@link DiscountResponse }
+ *
+ */
+ public DiscountResponse createDiscountResponse() {
+ return new DiscountResponse();
+ }
+
+ /**
+ * Create an instance of {@link DiscountRequest }
+ *
+ */
+ public DiscountRequest createDiscountRequest() {
+ return new DiscountRequest();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link DiscountRequest }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://org.jboss.ws/samples/retail/profile", name = "getCustomerDiscount")
+ public JAXBElement<DiscountRequest> createGetCustomerDiscount(DiscountRequest value) {
+ return new JAXBElement<DiscountRequest>(_GetCustomerDiscount_QNAME, DiscountRequest.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link DiscountResponse }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://org.jboss.ws/samples/retail/profile", name = "getCustomerDiscountResponse")
+ public JAXBElement<DiscountResponse> createGetCustomerDiscountResponse(DiscountResponse value) {
+ return new JAXBElement<DiscountResponse>(_GetCustomerDiscountResponse_QNAME, DiscountResponse.class, null, value);
+ }
+
+}
Deleted: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmt.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ProfileMgmt.java 2008-03-11 14:02:15 UTC (rev 5915)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmt.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -1,18 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.retail.profile;
-
-import javax.ejb.Remote;
-import javax.jws.WebMethod;
-import javax.jws.WebService;
-import javax.jws.soap.SOAPBinding;
-
-
-@Remote
-@WebService(name = "ProfileMgmt", targetNamespace = "http://org.jboss.ws/samples/retail/profile")
-@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
-public interface ProfileMgmt {
-
- @WebMethod
- public DiscountResponse getCustomerDiscount(DiscountRequest request);
-
-}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmt.java (from rev 5936, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ProfileMgmt.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmt.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmt.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -0,0 +1,18 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.retail.profile;
+
+import javax.ejb.Remote;
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+
+@Remote
+@WebService(name = "ProfileMgmt", targetNamespace = "http://org.jboss.ws/samples/retail/profile")
+@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
+public interface ProfileMgmt {
+
+ @WebMethod
+ public DiscountResponse getCustomerDiscount(DiscountRequest request);
+
+}
Deleted: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtBean.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ProfileMgmtBean.java 2008-03-11 14:02:15 UTC (rev 5915)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtBean.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -1,40 +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.test.ws.jaxws.samples.retail.profile;
-
-import javax.ejb.Stateless;
-import javax.jws.WebService;
-
-import org.jboss.wsf.spi.annotation.WebContext;
-
-@Stateless
-@WebService(endpointInterface = "org.jboss.test.ws.jaxws.samples.retail.profile.ProfileMgmt", name = "ProfileMgmt", serviceName = "ProfileMgmtService")
-@WebContext(contextRoot = "/jaxws-samples-retail")
-//@HandlerChain(file = "../jaxws-handler.xml")
-public class ProfileMgmtBean implements ProfileMgmt
-{
-
- public DiscountResponse getCustomerDiscount(DiscountRequest request)
- {
- return new DiscountResponse(request.getCustomer(), 10.00);
- }
-}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtBean.java (from rev 5936, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ProfileMgmtBean.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtBean.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtBean.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.retail.profile;
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+
+import org.jboss.wsf.spi.annotation.WebContext;
+
+@Stateless
+@WebService(endpointInterface = "org.jboss.test.ws.jaxws.samples.retail.profile.ProfileMgmt", name = "ProfileMgmt", serviceName = "ProfileMgmtService")
+@WebContext(contextRoot = "/jaxws-samples-retail")
+//@HandlerChain(file = "../jaxws-handler.xml")
+public class ProfileMgmtBean implements ProfileMgmt
+{
+
+ public DiscountResponse getCustomerDiscount(DiscountRequest request)
+ {
+ return new DiscountResponse(request.getCustomer(), 10.00);
+ }
+}
Deleted: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtService.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ProfileMgmtService.java 2008-03-11 14:02:15 UTC (rev 5915)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtService.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -1,53 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.retail.profile;
-
-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 JAXWS SI.
- * JAX-WS RI 2.1-10/21/2006 12:56 AM(vivek)-EA2
- * Generated source version: 2.0
- *
- */
-@WebServiceClient(name = "ProfileMgmtService", targetNamespace = "http://org.jboss.ws/samples/retail/profile", wsdlLocation = "resources/jaxws/samples/retail/META-INF/wsdl/ProfileMgmtService.wsdl")
-public class ProfileMgmtService
- extends Service
-{
-
- private final static URL PROFILEMGMTSERVICE_WSDL_LOCATION;
-
- static {
- URL url = null;
- try {
- url = new URL("http://somehost:8080/jaxws-samples-retail/ProfileMgmtBean?wsdl");
- } catch (MalformedURLException e) {
- e.printStackTrace();
- }
- PROFILEMGMTSERVICE_WSDL_LOCATION = url;
- }
-
- public ProfileMgmtService(URL wsdlLocation, QName serviceName) {
- super(wsdlLocation, serviceName);
- }
-
- public ProfileMgmtService() {
- super(PROFILEMGMTSERVICE_WSDL_LOCATION, new QName("http://org.jboss.ws/samples/retail/profile", "ProfileMgmtService"));
- }
-
- /**
- *
- * @return
- * returns ProfileMgmt
- */
- @WebEndpoint(name = "ProfileMgmtPort")
- public ProfileMgmt getProfileMgmtPort() {
- return (ProfileMgmt)super.getPort(new QName("http://org.jboss.ws/samples/retail/profile", "ProfileMgmtPort"), ProfileMgmt.class);
- }
-}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtService.java (from rev 5936, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ProfileMgmtService.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtService.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtService.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -0,0 +1,53 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.retail.profile;
+
+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 JAXWS SI.
+ * JAX-WS RI 2.1-10/21/2006 12:56 AM(vivek)-EA2
+ * Generated source version: 2.0
+ *
+ */
+@WebServiceClient(name = "ProfileMgmtService", targetNamespace = "http://org.jboss.ws/samples/retail/profile", wsdlLocation = "resources/jaxws/samples/retail/META-INF/wsdl/ProfileMgmtService.wsdl")
+public class ProfileMgmtService
+ extends Service
+{
+
+ private final static URL PROFILEMGMTSERVICE_WSDL_LOCATION;
+
+ static {
+ URL url = null;
+ try {
+ url = new URL("http://somehost:8080/jaxws-samples-retail/ProfileMgmtBean?wsdl");
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ PROFILEMGMTSERVICE_WSDL_LOCATION = url;
+ }
+
+ public ProfileMgmtService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public ProfileMgmtService() {
+ super(PROFILEMGMTSERVICE_WSDL_LOCATION, new QName("http://org.jboss.ws/samples/retail/profile", "ProfileMgmtService"));
+ }
+
+ /**
+ *
+ * @return
+ * returns ProfileMgmt
+ */
+ @WebEndpoint(name = "ProfileMgmtPort")
+ public ProfileMgmt getProfileMgmtPort() {
+ return (ProfileMgmt)super.getPort(new QName("http://org.jboss.ws/samples/retail/profile", "ProfileMgmtPort"), ProfileMgmt.class);
+ }
+}
Deleted: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/package-info.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/package-info.java 2008-03-11 14:02:15 UTC (rev 5915)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/package-info.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -1,2 +0,0 @@
-(a)javax.xml.bind.annotation.XmlSchema(namespace = "http://org.jboss.ws/samples/retail/profile")
-package org.jboss.test.ws.jaxws.samples.retail.profile;
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/package-info.java (from rev 5936, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/package-info.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/package-info.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/package-info.java 2008-03-12 10:23:49 UTC (rev 5937)
@@ -0,0 +1,2 @@
+(a)javax.xml.bind.annotation.XmlSchema(namespace = "http://org.jboss.ws/samples/retail/profile")
+package org.jboss.test.ws.jaxws.samples.advanced.retail.profile;
Copied: framework/trunk/src/test/resources/jaxws/samples/advanced/retail (from rev 5936, framework/trunk/src/test/resources/jaxws/samples/retail)
18 years, 1 month
JBossWS SVN: r5936 - stack/native/trunk/ant-import.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-03-12 05:57:55 -0400 (Wed, 12 Mar 2008)
New Revision: 5936
Modified:
stack/native/trunk/ant-import/jbossws-deploy-macros.xml
Log:
Improve error reporting on undeploy
Modified: stack/native/trunk/ant-import/jbossws-deploy-macros.xml
===================================================================
--- stack/native/trunk/ant-import/jbossws-deploy-macros.xml 2008-03-12 09:45:27 UTC (rev 5935)
+++ stack/native/trunk/ant-import/jbossws-deploy-macros.xml 2008-03-12 09:57:55 UTC (rev 5936)
@@ -266,15 +266,18 @@
<!-- ================================================================== -->
<macrodef name="macro-undeploy-jbossws">
- <!-- The location of the default file list -->
<attribute name="defaultconf"/>
- <!-- The jbossws.sar directory -->
<attribute name="targetdir"/>
<sequential>
<loadfile property="jbossws.deploy.conf" srcfile="@{targetdir}/jbossws-deploy.conf" failonerror="false"/>
<loadfile property="jbossws.deploy.conf" srcfile="@{defaultconf}" failonerror="false"/>
+
+ <property name="jboss.undeploy.home" value="@{targetdir}/../../../.."/>
+ <available property="jboss.undeploy.client" file="${jboss.undeploy.home}/client"/>
+ <fail message="Cannot find ${jboss.undeploy.home}/client" unless="jboss.undeploy.client"/>
+
<delete>
- <fileset dir="@{targetdir}/../../../.." includes="${jbossws.deploy.conf}"/>
+ <fileset dir="${jboss.undeploy.home}" includes="${jbossws.deploy.conf}"/>
</delete>
<delete dir="@{targetdir}"/>
</sequential>
18 years, 1 month
JBossWS SVN: r5935 - stack/native/trunk/ant-import.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-03-12 05:45:27 -0400 (Wed, 12 Mar 2008)
New Revision: 5935
Modified:
stack/native/trunk/ant-import/build-deploy.xml
stack/native/trunk/ant-import/build-prepare-deploy.xml
Log:
Add jbossws-jboss421.jar to AS421
Modified: stack/native/trunk/ant-import/build-deploy.xml
===================================================================
--- stack/native/trunk/ant-import/build-deploy.xml 2008-03-12 09:18:51 UTC (rev 5934)
+++ stack/native/trunk/ant-import/build-deploy.xml 2008-03-12 09:45:27 UTC (rev 5935)
@@ -39,21 +39,28 @@
<chmod dir="${jboss421.home}/bin" perm="+x" includes="*.sh"/>
<!-- Extras for jboss-4.2.1 -->
- <copy todir="${jboss421.home}/lib" overwrite="true">
- <fileset dir="${thirdparty.dir}">
+ <copy todir="${jboss421.client}" overwrite="true">
+ <fileset dir="${deploy.artifacts.dir}/lib">
<include name="jboss-xml-binding.jar"/>
+ <include name="jbossws-jboss421.jar"/>
</fileset>
</copy>
- <copy todir="${jboss421.home}/client" overwrite="true">
- <fileset dir="${thirdparty.dir}">
+ <copy todir="${jboss421.lib}" overwrite="true">
+ <fileset dir="${deploy.artifacts.dir}/lib">
<include name="jboss-xml-binding.jar"/>
</fileset>
</copy>
+ <copy todir="${jboss421.server.lib}" overwrite="true">
+ <fileset dir="${deploy.artifacts.dir}/lib">
+ <include name="jbossws-jboss421.jar"/>
+ </fileset>
+ </copy>
</target>
<target name="undeploy-jboss421" depends="prepare" description="Remove jbossws from jboss421">
<fail message="Not available: ${jboss421.available.file}" unless="jboss421.available"/>
<macro-undeploy-jbossws targetdir="${jboss421.server.deploy}/jbossws.sar" defaultconf="${jbossws.default.deploy.conf}"/>
+ <delete file="${jboss421.server.lib}/jbossws-integration.jar"/>
<delete dir="${jboss421.server.deploy}/juddi-service.sar"/>
</target>
Modified: stack/native/trunk/ant-import/build-prepare-deploy.xml
===================================================================
--- stack/native/trunk/ant-import/build-prepare-deploy.xml 2008-03-12 09:18:51 UTC (rev 5934)
+++ stack/native/trunk/ant-import/build-prepare-deploy.xml 2008-03-12 09:45:27 UTC (rev 5935)
@@ -30,6 +30,8 @@
<patternset refid="jbossws.lib.endorsed.patternset"/>
<patternset refid="jbossws.server.lib.patternset"/>
<patternset refid="jbossws.service.lib.patternset"/>
+ <include name="jboss-xml-binding.jar"/>
+ <include name="jbossws-jboss421.jar"/>
<include name="juddi-service.sar"/>
</fileset>
<fileset dir="${core.output.lib.dir}">
18 years, 1 month