Author: darran.lofthouse(a)jboss.com
Date: 2008-07-15 14:02:42 -0400 (Tue, 15 Jul 2008)
New Revision: 7831
Added:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/AddressingReplyToTestCase.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ClientHandler.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/Hello.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/HelloEndpointJSE.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ReplyTo.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ReplyToEndpointJSE.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples-override/wsaddr/
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples-override/wsaddr/replyto/
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/META-INF/
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/META-INF/application-client.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/META-INF/jboss-client.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/WEB-INF/
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/WEB-INF/jboss-web.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/WEB-INF/web.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/wstools-config.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/META-INF/
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/META-INF/application-client.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/META-INF/jboss-client.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF/
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF/jboss-web.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF/web.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/wstools-config.xml
Removed:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/AddressingReplyToTestCase.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ClientHandler.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/Hello.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/HelloEndpointJSE.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ReplyTo.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ReplyToEndpointJSE.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples-override/wsaddr/replyto/
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/META-INF/
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/META-INF/application-client.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/META-INF/jboss-client.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/WEB-INF/
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/WEB-INF/jboss-web.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/WEB-INF/web.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/wstools-config.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/META-INF/
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/META-INF/application-client.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/META-INF/jboss-client.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF/
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF/jboss-web.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF/web.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/wstools-config.xml
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/ant-import-tests/build-samples-jaxrpc.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/ant-import-tests/build-testsuite.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/metadata/builder/MetaDataBuilder.java
Log:
[JBPAPP-903] Document/Literal addressing endpoint fails when retreiving Outbound Action.
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/ant-import-tests/build-samples-jaxrpc.xml
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP/ant-import-tests/build-samples-jaxrpc.xml 2008-07-15
09:08:11 UTC (rev 7830)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/ant-import-tests/build-samples-jaxrpc.xml 2008-07-15
18:02:42 UTC (rev 7831)
@@ -524,6 +524,55 @@
<include name="jaxrpc-mapping.xml"/>
</metainf>
</jar>
+
+ <!-- jaxrpc-samples-wsaddr-hello.war -->
+ <war warfile="${tests.output.dir}/libs/jaxrpc-samples-wsaddr-hello.war"
+
webxml="${tests.output.dir}/resources/jaxrpc/samples/wsaddr/hello/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/classes">
+ <include
name="org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/Hello.class"/>
+ <include
name="org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/Hello_*.class"/>
+ <include
name="org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/HelloEndpointJSE.class"/>
+ </classes>
+ <webinf
dir="${tests.output.dir}/resources/jaxrpc/samples/wsaddr/hello/WEB-INF">
+ <include name="jaxrpc-mapping.xml"/>
+ <include name="webservices.xml"/>
+ <include name="wsdl/**"/>
+ </webinf>
+ </war>
+ <war
warfile="${tests.output.dir}/libs/jaxrpc-samples-wsaddr-replyto.war"
+
webxml="${tests.output.dir}/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/classes">
+ <include
name="org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ReplyTo.class"/>
+ <include
name="org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ReplyTo_*.class"/>
+ <include
name="org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ReplyToEndpointJSE.class"/>
+ </classes>
+ <webinf
dir="${tests.output.dir}/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF">
+ <include name="replyto-jaxrpc-mapping.xml"/>
+ <include name="webservices.xml"/>
+ <include name="wsdl/**"/>
+ </webinf>
+ </war>
+ <jar
jarfile="${tests.output.dir}/libs/jaxrpc-samples-wsaddr-hello-client.jar">
+ <fileset dir="${tests.output.dir}/classes">
+ <include
name="org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/Hello.class"/>
+ <include
name="org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/Hello_*.class"/>
+ <include
name="org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ClientHandler.class"/>
+ <include
name="org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ReplyTo.class"/>
+ <include
name="org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ReplyTo_*.class"/>
+ </fileset>
+ <metainf
dir="${tests.output.dir}/resources/jaxrpc/samples/wsaddr/hello/META-INF">
+ <include name="application-client.xml"/>
+ <include name="jboss-client.xml"/>
+ </metainf>
+ <metainf
dir="${tests.output.dir}/resources/jaxrpc/samples/wsaddr/hello/WEB-INF">
+ <include name="jaxrpc-mapping.xml"/>
+ <include name="wsdl/**"/>
+ </metainf>
+ <metainf
dir="${tests.output.dir}/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF">
+ <include name="replyto-jaxrpc-mapping.xml"/>
+ <include name="wsdl/**"/>
+ </metainf>
+ </jar>
<!-- jaxrpc-samples-wsbpel -->
<war warfile="${tests.output.dir}/libs/jaxrpc-samples-wsbpel-hello.war"
webxml="${tests.output.dir}/resources/jaxrpc/samples/wsbpel/hello/WEB-INF/web.xml">
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/ant-import-tests/build-testsuite.xml
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP/ant-import-tests/build-testsuite.xml 2008-07-15
09:08:11 UTC (rev 7830)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/ant-import-tests/build-testsuite.xml 2008-07-15
18:02:42 UTC (rev 7831)
@@ -144,11 +144,19 @@
<wstools
dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/oneway/WEB-INF"
config="${tests.resources.dir}/jaxrpc/samples/oneway/wstools-config.xml"/>
<wstools
dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/rpcstyle/WEB-INF"
config="${tests.resources.dir}/jaxrpc/samples/rpcstyle/wstools-config.xml"/>
<wstools
dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/secureejb/META-INF"
config="${tests.resources.dir}/jaxrpc/samples/secureejb/wstools-config.xml"/>
+ <wstools
dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/wsaddr/hello/WEB-INF"
config="${tests.resources.dir}/jaxrpc/samples/wsaddr/hello/wstools-config.xml"/>
+ <wstools
dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF"
config="${tests.resources.dir}/jaxrpc/samples/wsaddr/replyto/wstools-config.xml"/>
<wstools
dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/wsbpel/hello/WEB-INF"
config="${tests.resources.dir}/jaxrpc/samples/wsbpel/hello/wstools-config.xml"/>
<wstools
dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/wssecurity/WEB-INF"
config="${tests.resources.dir}/jaxrpc/samples/wssecurity/wstools-config.xml"/>
<move todir="${tests.output.dir}/wstools/java">
<fileset
dir="${tests.output.dir}/wstools/resources/jaxrpc/samples/docstyle/wrapped/WEB-INF"
includes="org/**"/>
</move>
+ <move todir="${tests.output.dir}/wstools/java">
+ <fileset
dir="${tests.output.dir}/wstools/resources/jaxrpc/samples/wsaddr/hello/WEB-INF"
includes="org/**"/>
+ </move>
+ <move todir="${tests.output.dir}/wstools/java">
+ <fileset
dir="${tests.output.dir}/wstools/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF"
includes="org/**"/>
+ </move>
<!-- Copy generated resources -->
<copy todir="${tests.output.dir}/resources">
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/metadata/builder/MetaDataBuilder.java
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/metadata/builder/MetaDataBuilder.java 2008-07-15
09:08:11 UTC (rev 7830)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/metadata/builder/MetaDataBuilder.java 2008-07-15
18:02:42 UTC (rev 7831)
@@ -475,7 +475,14 @@
else
{
WSDLProperty messageName =
wsdlOperation.getProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME_IN);
- addrExt.setInboundAction(tns + "/" + portTypeName + "/" +
messageName);
+ if (messageName != null)
+ {
+ addrExt.setInboundAction(tns + "/" + portTypeName + "/" +
messageName.getValue());
+ }
+ else
+ {
+ addrExt.setInboundAction(tns + "/" + portTypeName +
"/IN");
+ }
}
// outbound action
@@ -487,7 +494,14 @@
else
{
WSDLProperty messageName =
wsdlOperation.getProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME_OUT);
- addrExt.setOutboundAction(tns + "/" + portTypeName + "/" +
messageName);
+ if (messageName != null)
+ {
+ addrExt.setOutboundAction(tns + "/" + portTypeName + "/"
+ messageName.getValue());
+ }
+ else
+ {
+ addrExt.setOutboundAction(tns + "/" + portTypeName +
"/OUT");
+ }
}
opMetaData.addExtension(addrExt);
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/wsaddr)
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto)
Deleted:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/AddressingReplyToTestCase.java
===================================================================
---
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/AddressingReplyToTestCase.java 2007-12-13
11:24:24 UTC (rev 5295)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/AddressingReplyToTestCase.java 2008-07-15
18:02:42 UTC (rev 7831)
@@ -1,107 +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.jaxrpc.samples.wsaddr.replyto;
-
-// $Id$
-
-import java.io.ByteArrayInputStream;
-import java.net.URL;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.Service;
-import javax.xml.soap.MessageFactory;
-import javax.xml.soap.SOAPConnection;
-import javax.xml.soap.SOAPConnectionFactory;
-import javax.xml.soap.SOAPMessage;
-
-import junit.framework.Test;
-
-import org.jboss.test.ws.JBossWSTest;
-import org.jboss.test.ws.JBossWSTestSetup;
-
-/**
- * Test endpoint using ws-addressing
- *
- * @author mageshbk(a)jboss.com
- * @since 12-Dec-2007
- */
-public class AddressingReplyToTestCase extends JBossWSTest
-{
- private static Hello initial;
- private static ReplyTo replyto;
-
- public static Test suite()
- {
- return JBossWSTestSetup.newTestSetup(AddressingReplyToTestCase.class,
- "jaxrpc-samples-wsaddr-hello.war,
jaxrpc-samples-wsaddr-replyto.war," +
- "jaxrpc-samples-wsaddr-hello-client.jar");
- }
-
- protected void setUp() throws Exception
- {
- super.setUp();
-
- if (initial == null)
- {
- Service replytoService =
(Service)getInitialContext("jaxrpc-addressing-replyto-client").lookup("java:comp/env/service/ReplyToService");
- replyto = (ReplyTo)replytoService.getPort(ReplyTo.class);
- Service initialService =
(Service)getInitialContext("jaxrpc-addressing-replyto-client").lookup("java:comp/env/service/HelloService");
- initial = (Hello)initialService.getPort(Hello.class);
- }
- }
-
- /** This sends a valid message to the ReplyTo endpoint and verfies whether we can read
it of again.
- */
- public void testReplyToMessage() throws Exception
- {
- String reqEnv =
- "<env:Envelope
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>" +
- " <env:Header/>" +
- " <env:Body>" +
- " <ns1:sayHelloResponse
xmlns:ns1='http://org.jboss.ws/jaxrpc/samples/wsaddr/replyto/types'>" +
- " <result>ReplyTo</result>" +
- " </ns1:sayHelloResponse>" +
- " </env:Body>" +
- "</env:Envelope>";
-
- MessageFactory msgFactory = MessageFactory.newInstance();
- SOAPConnection con = SOAPConnectionFactory.newInstance().createConnection();
- SOAPMessage reqMsg = msgFactory.createMessage(null, new
ByteArrayInputStream(reqEnv.getBytes()));
-
- URL epURL = new URL("http://" + getServerHost() +
":8080/jaxrpc-samples-wsaddr-replyto");
- con.call(reqMsg, epURL);
-
- assertEquals("ReplyTo", replyto.getLastMessage());
- }
-
- public void testInital() throws Exception
- {
- String message = initial.sayHello("Addressing TestCase");
- assertNull("Expected null, but was: " + message, message);
- }
-
- public void testReplyTo() throws Exception
- {
- String message = replyto.getLastMessage();
- assertEquals("Hello Addressing TestCase", message);
- }
-}
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/AddressingReplyToTestCase.java
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/AddressingReplyToTestCase.java)
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/AddressingReplyToTestCase.java
(rev 0)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/AddressingReplyToTestCase.java 2008-07-15
18:02:42 UTC (rev 7831)
@@ -0,0 +1,107 @@
+/*
+ * 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.jaxrpc.samples.wsaddr.replyto;
+
+// $Id$
+
+import java.io.ByteArrayInputStream;
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.rpc.Service;
+import javax.xml.soap.MessageFactory;
+import javax.xml.soap.SOAPConnection;
+import javax.xml.soap.SOAPConnectionFactory;
+import javax.xml.soap.SOAPMessage;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * Test endpoint using ws-addressing
+ *
+ * @author mageshbk(a)jboss.com
+ * @since 12-Dec-2007
+ */
+public class AddressingReplyToTestCase extends JBossWSTest
+{
+ private static Hello initial;
+ private static ReplyTo replyto;
+
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(AddressingReplyToTestCase.class,
+ "jaxrpc-samples-wsaddr-hello.war,
jaxrpc-samples-wsaddr-replyto.war," +
+ "jaxrpc-samples-wsaddr-hello-client.jar");
+ }
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+
+ if (initial == null)
+ {
+ Service replytoService =
(Service)getInitialContext("jaxrpc-addressing-replyto-client").lookup("java:comp/env/service/ReplyToService");
+ replyto = (ReplyTo)replytoService.getPort(ReplyTo.class);
+ Service initialService =
(Service)getInitialContext("jaxrpc-addressing-replyto-client").lookup("java:comp/env/service/HelloService");
+ initial = (Hello)initialService.getPort(Hello.class);
+ }
+ }
+
+ /** This sends a valid message to the ReplyTo endpoint and verfies whether we can read
it of again.
+ */
+ public void testReplyToMessage() throws Exception
+ {
+ String reqEnv =
+ "<env:Envelope
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>" +
+ " <env:Header/>" +
+ " <env:Body>" +
+ " <ns1:sayHelloResponse
xmlns:ns1='http://org.jboss.ws/jaxrpc/samples/wsaddr/replyto/types'>" +
+ " <result>ReplyTo</result>" +
+ " </ns1:sayHelloResponse>" +
+ " </env:Body>" +
+ "</env:Envelope>";
+
+ MessageFactory msgFactory = MessageFactory.newInstance();
+ SOAPConnection con = SOAPConnectionFactory.newInstance().createConnection();
+ SOAPMessage reqMsg = msgFactory.createMessage(null, new
ByteArrayInputStream(reqEnv.getBytes()));
+
+ URL epURL = new URL("http://" + getServerHost() +
":8080/jaxrpc-samples-wsaddr-replyto");
+ con.call(reqMsg, epURL);
+
+ assertEquals("ReplyTo", replyto.getLastMessage());
+ }
+
+ public void testInital() throws Exception
+ {
+ String message = initial.sayHello("Addressing TestCase");
+ assertNull("Expected null, but was: " + message, message);
+ }
+
+ public void testReplyTo() throws Exception
+ {
+ String message = replyto.getLastMessage();
+ assertEquals("Hello Addressing TestCase", message);
+ }
+}
Deleted:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ClientHandler.java
===================================================================
---
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ClientHandler.java 2007-12-13
11:24:24 UTC (rev 5295)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ClientHandler.java 2008-07-15
18:02:42 UTC (rev 7831)
@@ -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.jaxrpc.samples.wsaddr.replyto;
-
-import java.net.URI;
-import java.net.URISyntaxException;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.handler.GenericHandler;
-import javax.xml.rpc.handler.MessageContext;
-
-import javax.xml.ws.addressing.AddressingBuilder;
-import javax.xml.ws.addressing.EndpointReference;
-import javax.xml.ws.addressing.JAXWSAConstants;
-import javax.xml.ws.addressing.soap.SOAPAddressingBuilder;
-import javax.xml.ws.addressing.soap.SOAPAddressingProperties;
-
-import org.jboss.ws.core.jaxrpc.handler.SOAPMessageContextJAXRPC;
-
-
-import org.jboss.logging.Logger;
-
-/**
- * A client side handler for the ws-addressing
- *
- * @author mageshbk(a)jboss.com
- * @since 12-Dec-2007
- */
-public class ClientHandler extends GenericHandler
-{
- // Provide logging
- private static Logger log = Logger.getLogger(ClientHandler.class);
- protected QName[] headers;
-
- public boolean handleRequest(MessageContext context)
- {
- log.info("enter handleRequest");
-
- try
- {
- AddressingBuilder builder = SOAPAddressingBuilder.getAddressingBuilder();
- SOAPAddressingProperties outProps =
(SOAPAddressingProperties)builder.newAddressingProperties();
-
outProps.setTo(builder.newURI("http://localhost:8080/jaxrpc-samples-wsaddr-hello"));
-
outProps.setAction(builder.newURI("http://org.jboss.ws/jaxrpc/samples/wsaddr/replyto/sayHello"));
- EndpointReference rp = builder.newEndpointReference(new
URI("http://localhost:8080/jaxrpc-samples-wsaddr-replyto"));
- outProps.setReplyTo(rp);
- outProps.setMessageID(builder.newURI("123456"));
- context.setProperty(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND,
outProps);
- }
- catch(URISyntaxException e)
- {
- e.printStackTrace();
- }
- log.info("exit handleRequest");
- return true;
- }
-
- public QName[] getHeaders()
- {
- return headers;
- }
-
-}
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ClientHandler.java
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ClientHandler.java)
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ClientHandler.java
(rev 0)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ClientHandler.java 2008-07-15
18:02:42 UTC (rev 7831)
@@ -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.jaxrpc.samples.wsaddr.replyto;
+
+import java.net.URI;
+import java.net.URISyntaxException;
+
+import javax.xml.namespace.QName;
+import javax.xml.rpc.handler.GenericHandler;
+import javax.xml.rpc.handler.MessageContext;
+
+import javax.xml.ws.addressing.AddressingBuilder;
+import javax.xml.ws.addressing.EndpointReference;
+import javax.xml.ws.addressing.JAXWSAConstants;
+import javax.xml.ws.addressing.soap.SOAPAddressingBuilder;
+import javax.xml.ws.addressing.soap.SOAPAddressingProperties;
+
+import org.jboss.ws.core.jaxrpc.handler.SOAPMessageContextJAXRPC;
+
+
+import org.jboss.logging.Logger;
+
+/**
+ * A client side handler for the ws-addressing
+ *
+ * @author mageshbk(a)jboss.com
+ * @since 12-Dec-2007
+ */
+public class ClientHandler extends GenericHandler
+{
+ // Provide logging
+ private static Logger log = Logger.getLogger(ClientHandler.class);
+ protected QName[] headers;
+
+ public boolean handleRequest(MessageContext context)
+ {
+ log.info("enter handleRequest");
+
+ try
+ {
+ AddressingBuilder builder = SOAPAddressingBuilder.getAddressingBuilder();
+ SOAPAddressingProperties outProps =
(SOAPAddressingProperties)builder.newAddressingProperties();
+
outProps.setTo(builder.newURI("http://localhost:8080/jaxrpc-samples-wsaddr-hello"));
+
outProps.setAction(builder.newURI("http://org.jboss.ws/jaxrpc/samples/wsaddr/replyto/sayHello"));
+ EndpointReference rp = builder.newEndpointReference(new
URI("http://localhost:8080/jaxrpc-samples-wsaddr-replyto"));
+ outProps.setReplyTo(rp);
+ outProps.setMessageID(builder.newURI("123456"));
+ context.setProperty(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND,
outProps);
+ }
+ catch(URISyntaxException e)
+ {
+ e.printStackTrace();
+ }
+ log.info("exit handleRequest");
+ return true;
+ }
+
+ public QName[] getHeaders()
+ {
+ return headers;
+ }
+
+}
Deleted:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/Hello.java
===================================================================
---
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/Hello.java 2007-12-13
11:24:24 UTC (rev 5295)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/Hello.java 2008-07-15
18:02:42 UTC (rev 7831)
@@ -1,37 +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.jaxrpc.samples.wsaddr.replyto;
-
-import java.rmi.Remote;
-import java.rmi.RemoteException;
-
-/**
- * JAXRPC WS-Addressing service endpoint interface
- *
- * @author mageshbk(a)jboss.com
- *
- * @since 12-Dec-2007
- */
-public interface Hello extends Remote
-{
- String sayHello(String str) throws RemoteException;
-}
\ No newline at end of file
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/Hello.java
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/Hello.java)
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/Hello.java
(rev 0)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/Hello.java 2008-07-15
18:02:42 UTC (rev 7831)
@@ -0,0 +1,37 @@
+/*
+ * 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.jaxrpc.samples.wsaddr.replyto;
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+
+/**
+ * JAXRPC WS-Addressing service endpoint interface
+ *
+ * @author mageshbk(a)jboss.com
+ *
+ * @since 12-Dec-2007
+ */
+public interface Hello extends Remote
+{
+ String sayHello(String str) throws RemoteException;
+}
\ No newline at end of file
Deleted:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/HelloEndpointJSE.java
===================================================================
---
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/HelloEndpointJSE.java 2007-12-13
11:24:24 UTC (rev 5295)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/HelloEndpointJSE.java 2008-07-15
18:02:42 UTC (rev 7831)
@@ -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.jaxrpc.samples.wsaddr.replyto;
-
-import org.jboss.logging.Logger;
-
-/**
- * JAXRPC WS-Addressing service endpoint
- *
- * @author mageshbk(a)jboss.com
- *
- * @since 12-Dec-2007
- */
-public class HelloEndpointJSE implements Hello
-{
- // Provide logging
- private static Logger log = Logger.getLogger(HelloEndpointJSE.class);
-
- public String sayHello(String str)
- {
- log.info("sayHello: " + str);
- return "Hello " + str;
- }
-}
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/HelloEndpointJSE.java
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/HelloEndpointJSE.java)
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/HelloEndpointJSE.java
(rev 0)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/HelloEndpointJSE.java 2008-07-15
18:02:42 UTC (rev 7831)
@@ -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.jaxrpc.samples.wsaddr.replyto;
+
+import org.jboss.logging.Logger;
+
+/**
+ * JAXRPC WS-Addressing service endpoint
+ *
+ * @author mageshbk(a)jboss.com
+ *
+ * @since 12-Dec-2007
+ */
+public class HelloEndpointJSE implements Hello
+{
+ // Provide logging
+ private static Logger log = Logger.getLogger(HelloEndpointJSE.class);
+
+ public String sayHello(String str)
+ {
+ log.info("sayHello: " + str);
+ return "Hello " + str;
+ }
+}
Deleted:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ReplyTo.java
===================================================================
---
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ReplyTo.java 2007-12-13
11:24:24 UTC (rev 5295)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ReplyTo.java 2008-07-15
18:02:42 UTC (rev 7831)
@@ -1,39 +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.jaxrpc.samples.wsaddr.replyto;
-
-import java.rmi.Remote;
-import java.rmi.RemoteException;
-
-/**
- * JAXRPC WS-Addressing service endpoint interface
- *
- * @author mageshbk(a)jboss.com
- *
- * @since 12-Dec-2007
- */
-public interface ReplyTo extends Remote
-{
- void sayHelloResponse(String str) throws RemoteException;
-
- String getLastMessage() throws RemoteException;
-}
\ No newline at end of file
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ReplyTo.java
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ReplyTo.java)
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ReplyTo.java
(rev 0)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ReplyTo.java 2008-07-15
18:02:42 UTC (rev 7831)
@@ -0,0 +1,39 @@
+/*
+ * 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.jaxrpc.samples.wsaddr.replyto;
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+
+/**
+ * JAXRPC WS-Addressing service endpoint interface
+ *
+ * @author mageshbk(a)jboss.com
+ *
+ * @since 12-Dec-2007
+ */
+public interface ReplyTo extends Remote
+{
+ void sayHelloResponse(String str) throws RemoteException;
+
+ String getLastMessage() throws RemoteException;
+}
\ No newline at end of file
Deleted:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ReplyToEndpointJSE.java
===================================================================
---
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ReplyToEndpointJSE.java 2007-12-13
11:24:24 UTC (rev 5295)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ReplyToEndpointJSE.java 2008-07-15
18:02:42 UTC (rev 7831)
@@ -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.jaxrpc.samples.wsaddr.replyto;
-
-import org.jboss.logging.Logger;
-
-/**
- * JAXRPC WS-Addressing service endpoint
- *
- * @author mageshbk(a)jboss.com
- *
- * @since 12-Dec-2007
- */
-public class ReplyToEndpointJSE implements ReplyTo
-{
- // Provide logging
- private static Logger log = Logger.getLogger(ReplyToEndpointJSE.class);
-
- private static String lastMessage;
-
- public void sayHelloResponse(String str)
- {
- log.info("sayHelloResponse: " + str);
- lastMessage = str;
- }
-
- public String getLastMessage()
- {
- log.info("getLastMessage: " + lastMessage);
- return lastMessage;
- }
-}
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ReplyToEndpointJSE.java
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ReplyToEndpointJSE.java)
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ReplyToEndpointJSE.java
(rev 0)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ReplyToEndpointJSE.java 2008-07-15
18:02:42 UTC (rev 7831)
@@ -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.jaxrpc.samples.wsaddr.replyto;
+
+import org.jboss.logging.Logger;
+
+/**
+ * JAXRPC WS-Addressing service endpoint
+ *
+ * @author mageshbk(a)jboss.com
+ *
+ * @since 12-Dec-2007
+ */
+public class ReplyToEndpointJSE implements ReplyTo
+{
+ // Provide logging
+ private static Logger log = Logger.getLogger(ReplyToEndpointJSE.class);
+
+ private static String lastMessage;
+
+ public void sayHelloResponse(String str)
+ {
+ log.info("sayHelloResponse: " + str);
+ lastMessage = str;
+ }
+
+ public String getLastMessage()
+ {
+ log.info("getLastMessage: " + lastMessage);
+ return lastMessage;
+ }
+}
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr)
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/hello)
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/META-INF
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/hello/META-INF)
Deleted:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/META-INF/application-client.xml
===================================================================
---
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/hello/META-INF/application-client.xml 2007-12-13
11:24:24 UTC (rev 5295)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/META-INF/application-client.xml 2008-07-15
18:02:42 UTC (rev 7831)
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<application-client
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/application-client_1_4.xsd"
- version="1.4">
-
- <display-name>HelloService</display-name>
-
- <service-ref>
- <service-ref-name>service/HelloService</service-ref-name>
- <service-interface>javax.xml.rpc.Service</service-interface>
- <wsdl-file>META-INF/wsdl/HelloService.wsdl</wsdl-file>
- <jaxrpc-mapping-file>META-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
- <port-component-ref>
-
<service-endpoint-interface>org.jboss.test.ws.jaxrpc.samples.wsaddr.replyto.Hello</service-endpoint-interface>
- </port-component-ref>
- <handler>
- <handler-name>ClientHandler</handler-name>
-
<handler-class>org.jboss.test.ws.jaxrpc.samples.wsaddr.replyto.ClientHandler</handler-class>
- </handler>
- <handler>
- <handler-name>WSAddressingHandler</handler-name>
-
<handler-class>org.jboss.ws.extensions.addressing.jaxrpc.WSAddressingClientHandler</handler-class>
- </handler>
- </service-ref>
-
- <service-ref>
- <service-ref-name>service/ReplyToService</service-ref-name>
- <service-interface>javax.xml.rpc.Service</service-interface>
- <wsdl-file>META-INF/wsdl/ReplyToService.wsdl</wsdl-file>
-
<jaxrpc-mapping-file>META-INF/replyto-jaxrpc-mapping.xml</jaxrpc-mapping-file>
- <port-component-ref>
-
<service-endpoint-interface>org.jboss.test.ws.jaxrpc.samples.wsaddr.replyto.ReplyTo</service-endpoint-interface>
- </port-component-ref>
- </service-ref>
-
-</application-client>
-
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/META-INF/application-client.xml
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/hello/META-INF/application-client.xml)
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/META-INF/application-client.xml
(rev 0)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/META-INF/application-client.xml 2008-07-15
18:02:42 UTC (rev 7831)
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<application-client
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/application-client_1_4.xsd"
+ version="1.4">
+
+ <display-name>HelloService</display-name>
+
+ <service-ref>
+ <service-ref-name>service/HelloService</service-ref-name>
+ <service-interface>javax.xml.rpc.Service</service-interface>
+ <wsdl-file>META-INF/wsdl/HelloService.wsdl</wsdl-file>
+ <jaxrpc-mapping-file>META-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
+ <port-component-ref>
+
<service-endpoint-interface>org.jboss.test.ws.jaxrpc.samples.wsaddr.replyto.Hello</service-endpoint-interface>
+ </port-component-ref>
+ <handler>
+ <handler-name>ClientHandler</handler-name>
+
<handler-class>org.jboss.test.ws.jaxrpc.samples.wsaddr.replyto.ClientHandler</handler-class>
+ </handler>
+ <handler>
+ <handler-name>WSAddressingHandler</handler-name>
+
<handler-class>org.jboss.ws.extensions.addressing.jaxrpc.WSAddressingClientHandler</handler-class>
+ </handler>
+ </service-ref>
+
+ <service-ref>
+ <service-ref-name>service/ReplyToService</service-ref-name>
+ <service-interface>javax.xml.rpc.Service</service-interface>
+ <wsdl-file>META-INF/wsdl/ReplyToService.wsdl</wsdl-file>
+
<jaxrpc-mapping-file>META-INF/replyto-jaxrpc-mapping.xml</jaxrpc-mapping-file>
+ <port-component-ref>
+
<service-endpoint-interface>org.jboss.test.ws.jaxrpc.samples.wsaddr.replyto.ReplyTo</service-endpoint-interface>
+ </port-component-ref>
+ </service-ref>
+
+</application-client>
+
Deleted:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/META-INF/jboss-client.xml
===================================================================
---
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/hello/META-INF/jboss-client.xml 2007-12-13
11:24:24 UTC (rev 5295)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/META-INF/jboss-client.xml 2008-07-15
18:02:42 UTC (rev 7831)
@@ -1,18 +0,0 @@
-<?xml version='1.0' encoding='UTF-8' ?>
-
-<!DOCTYPE jboss-client PUBLIC "-//JBoss//DTD Application Client 4.0//EN"
"http://www.jboss.org/j2ee/dtd/jboss-client_4_0.dtd">
-
-<jboss-client>
- <jndi-name>jaxrpc-addressing-replyto-client</jndi-name>
-
- <service-ref>
- <service-ref-name>service/HelloService</service-ref-name>
- <config-name>Standard WSAddressing Client</config-name>
-
<wsdl-override>http://@jbosstest.host.name@:8080/jaxrpc-samples-wsaddr-hello?wsdl</wsdl-override>
- </service-ref>
-
- <service-ref>
- <service-ref-name>service/ReplyToService</service-ref-name>
-
<wsdl-override>http://@jbosstest.host.name@:8080/jaxrpc-samples-wsaddr-replyto?wsdl</wsdl-override>
- </service-ref>
-</jboss-client>
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/META-INF/jboss-client.xml
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/hello/META-INF/jboss-client.xml)
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/META-INF/jboss-client.xml
(rev 0)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/META-INF/jboss-client.xml 2008-07-15
18:02:42 UTC (rev 7831)
@@ -0,0 +1,18 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+
+<!DOCTYPE jboss-client PUBLIC "-//JBoss//DTD Application Client 4.0//EN"
"http://www.jboss.org/j2ee/dtd/jboss-client_4_0.dtd">
+
+<jboss-client>
+ <jndi-name>jaxrpc-addressing-replyto-client</jndi-name>
+
+ <service-ref>
+ <service-ref-name>service/HelloService</service-ref-name>
+ <config-name>Standard WSAddressing Client</config-name>
+
<wsdl-override>http://@jboss.bind.address@:8080/jaxrpc-samples-wsaddr-hello?wsdl</wsdl-override>
+ </service-ref>
+
+ <service-ref>
+ <service-ref-name>service/ReplyToService</service-ref-name>
+
<wsdl-override>http://@jboss.bind.address@:8080/jaxrpc-samples-wsaddr-replyto?wsdl</wsdl-override>
+ </service-ref>
+</jboss-client>
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/WEB-INF
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/hello/WEB-INF)
Deleted:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/WEB-INF/jboss-web.xml
===================================================================
---
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/hello/WEB-INF/jboss-web.xml 2007-12-13
11:24:24 UTC (rev 5295)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/WEB-INF/jboss-web.xml 2008-07-15
18:02:42 UTC (rev 7831)
@@ -1,27 +0,0 @@
-<?xml version="1.0"?>
-<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ~ JBoss, a division of Red Hat ~
- ~ Copyright 2006, Red Hat Middleware, LLC, 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. ~
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
-
-<jboss-web>
- <context-root>/jaxrpc-samples-wsaddr-hello</context-root>
-</jboss-web>
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/WEB-INF/jboss-web.xml
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/hello/WEB-INF/jboss-web.xml)
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/WEB-INF/jboss-web.xml
(rev 0)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/WEB-INF/jboss-web.xml 2008-07-15
18:02:42 UTC (rev 7831)
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~ JBoss, a division of Red Hat ~
+ ~ Copyright 2006, Red Hat Middleware, LLC, 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. ~
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+
+<jboss-web>
+ <context-root>/jaxrpc-samples-wsaddr-hello</context-root>
+</jboss-web>
Deleted:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/WEB-INF/web.xml
===================================================================
---
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/hello/WEB-INF/web.xml 2007-12-13
11:24:24 UTC (rev 5295)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/WEB-INF/web.xml 2008-07-15
18:02:42 UTC (rev 7831)
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<web-app
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"
- version="2.4">
-
- <context-param>
- <param-name>jbossws-config-name</param-name>
- <param-value>Standard WSAddressing Endpoint</param-value>
- </context-param>
-
- <servlet>
- <servlet-name>HelloService</servlet-name>
-
<servlet-class>org.jboss.test.ws.jaxrpc.samples.wsaddr.replyto.HelloEndpointJSE</servlet-class>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>HelloService</servlet-name>
- <url-pattern>/*</url-pattern>
- </servlet-mapping>
-
-</web-app>
-
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/WEB-INF/web.xml
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/hello/WEB-INF/web.xml)
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/WEB-INF/web.xml
(rev 0)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/WEB-INF/web.xml 2008-07-15
18:02:42 UTC (rev 7831)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app
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"
+ version="2.4">
+
+ <context-param>
+ <param-name>jbossws-config-name</param-name>
+ <param-value>Standard WSAddressing Endpoint</param-value>
+ </context-param>
+
+ <servlet>
+ <servlet-name>HelloService</servlet-name>
+
<servlet-class>org.jboss.test.ws.jaxrpc.samples.wsaddr.replyto.HelloEndpointJSE</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>HelloService</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+
+</web-app>
+
Deleted:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/wstools-config.xml
===================================================================
---
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/hello/wstools-config.xml 2007-12-13
11:24:24 UTC (rev 5295)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/wstools-config.xml 2008-07-15
18:02:42 UTC (rev 7831)
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- wstools -cp ../../../output/classes -config wstools-config.xml
--->
-
-<configuration
xmlns="http://www.jboss.org/jbossws-tools"
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-
xsi:schemaLocation="http://www.jboss.org/jbossws-tools
http://www.jboss.org/jbossws-tools/schema/jbossws-tool_1_0.xsd">
- <java-wsdl>
- <service name="HelloService" style="document"
endpoint="org.jboss.test.ws.jaxrpc.samples.wsaddr.replyto.Hello">
- <operation name="sayHello" one-way="false"
return-xml-name="result">
- <parameter type="java.lang.String"
xml-name="String_1"/>
- </operation>
- </service>
- <namespaces
target-namespace="http://org.jboss.ws/jaxrpc/samples/wsaddr/replyto"
type-namespace="http://org.jboss.ws/jaxrpc/samples/wsaddr/replyto/types"/>
- <mapping file="jaxrpc-mapping.xml"/>
- <webservices servlet-link="HelloService"/>
- </java-wsdl>
-</configuration>
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/wstools-config.xml
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/hello/wstools-config.xml)
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/wstools-config.xml
(rev 0)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/hello/wstools-config.xml 2008-07-15
18:02:42 UTC (rev 7831)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ wstools -cp ../../../output/classes -config wstools-config.xml
+-->
+
+<configuration
xmlns="http://www.jboss.org/jbossws-tools"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://www.jboss.org/jbossws-tools
http://www.jboss.org/jbossws-tools/schema/jbossws-tool_1_0.xsd">
+ <java-wsdl>
+ <service name="HelloService" style="document"
endpoint="org.jboss.test.ws.jaxrpc.samples.wsaddr.replyto.Hello">
+ <operation name="sayHello" one-way="false"
return-xml-name="result">
+ <parameter type="java.lang.String"
xml-name="String_1"/>
+ </operation>
+ </service>
+ <namespaces
target-namespace="http://org.jboss.ws/jaxrpc/samples/wsaddr/replyto"
type-namespace="http://org.jboss.ws/jaxrpc/samples/wsaddr/replyto/types"/>
+ <mapping file="jaxrpc-mapping.xml"/>
+ <webservices servlet-link="HelloService"/>
+ </java-wsdl>
+</configuration>
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/replyto)
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/META-INF
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/replyto/META-INF)
Deleted:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/META-INF/application-client.xml
===================================================================
---
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/replyto/META-INF/application-client.xml 2007-12-13
11:24:24 UTC (rev 5295)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/META-INF/application-client.xml 2008-07-15
18:02:42 UTC (rev 7831)
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<application-client
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/application-client_1_4.xsd"
- version="1.4">
-
- <display-name>ReplyToService</display-name>
-
- <service-ref>
- <service-ref-name>service/ReplyToService</service-ref-name>
- <service-interface>javax.xml.rpc.Service</service-interface>
- <wsdl-file>META-INF/wsdl/ReplyToService.wsdl</wsdl-file>
- <jaxrpc-mapping-file>META-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
- <port-component-ref>
-
<service-endpoint-interface>org.jboss.test.ws.jaxrpc.samples.wsaddr.replyto.ReplyTo</service-endpoint-interface>
- </port-component-ref>
- </service-ref>
-
-</application-client>
-
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/META-INF/application-client.xml
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/replyto/META-INF/application-client.xml)
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/META-INF/application-client.xml
(rev 0)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/META-INF/application-client.xml 2008-07-15
18:02:42 UTC (rev 7831)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<application-client
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/application-client_1_4.xsd"
+ version="1.4">
+
+ <display-name>ReplyToService</display-name>
+
+ <service-ref>
+ <service-ref-name>service/ReplyToService</service-ref-name>
+ <service-interface>javax.xml.rpc.Service</service-interface>
+ <wsdl-file>META-INF/wsdl/ReplyToService.wsdl</wsdl-file>
+ <jaxrpc-mapping-file>META-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
+ <port-component-ref>
+
<service-endpoint-interface>org.jboss.test.ws.jaxrpc.samples.wsaddr.replyto.ReplyTo</service-endpoint-interface>
+ </port-component-ref>
+ </service-ref>
+
+</application-client>
+
Deleted:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/META-INF/jboss-client.xml
===================================================================
---
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/replyto/META-INF/jboss-client.xml 2007-12-13
11:24:24 UTC (rev 5295)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/META-INF/jboss-client.xml 2008-07-15
18:02:42 UTC (rev 7831)
@@ -1,12 +0,0 @@
-<?xml version='1.0' encoding='UTF-8' ?>
-
-<!DOCTYPE jboss-client PUBLIC "-//JBoss//DTD Application Client 4.0//EN"
"http://www.jboss.org/j2ee/dtd/jboss-client_4_0.dtd">
-
-<jboss-client>
- <jndi-name>jaxrpc-addressing-replyto-client</jndi-name>
-
- <service-ref>
- <service-ref-name>service/ReplyToService</service-ref-name>
- </service-ref>
-
-</jboss-client>
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/META-INF/jboss-client.xml
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/replyto/META-INF/jboss-client.xml)
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/META-INF/jboss-client.xml
(rev 0)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/META-INF/jboss-client.xml 2008-07-15
18:02:42 UTC (rev 7831)
@@ -0,0 +1,12 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+
+<!DOCTYPE jboss-client PUBLIC "-//JBoss//DTD Application Client 4.0//EN"
"http://www.jboss.org/j2ee/dtd/jboss-client_4_0.dtd">
+
+<jboss-client>
+ <jndi-name>jaxrpc-addressing-replyto-client</jndi-name>
+
+ <service-ref>
+ <service-ref-name>service/ReplyToService</service-ref-name>
+ </service-ref>
+
+</jboss-client>
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF)
Deleted:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF/jboss-web.xml
===================================================================
---
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF/jboss-web.xml 2007-12-13
11:24:24 UTC (rev 5295)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF/jboss-web.xml 2008-07-15
18:02:42 UTC (rev 7831)
@@ -1,27 +0,0 @@
-<?xml version="1.0"?>
-<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ~ JBoss, a division of Red Hat ~
- ~ Copyright 2006, Red Hat Middleware, LLC, 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. ~
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
-
-<jboss-web>
- <context-root>/jaxrpc-samples-wsaddr-replyto</context-root>
-</jboss-web>
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF/jboss-web.xml
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF/jboss-web.xml)
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF/jboss-web.xml
(rev 0)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF/jboss-web.xml 2008-07-15
18:02:42 UTC (rev 7831)
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~ JBoss, a division of Red Hat ~
+ ~ Copyright 2006, Red Hat Middleware, LLC, 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. ~
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+
+<jboss-web>
+ <context-root>/jaxrpc-samples-wsaddr-replyto</context-root>
+</jboss-web>
Deleted:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF/web.xml
===================================================================
---
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF/web.xml 2007-12-13
11:24:24 UTC (rev 5295)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF/web.xml 2008-07-15
18:02:42 UTC (rev 7831)
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<web-app
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"
- version="2.4">
-
- <servlet>
- <servlet-name>ReplyToService</servlet-name>
-
<servlet-class>org.jboss.test.ws.jaxrpc.samples.wsaddr.replyto.ReplyToEndpointJSE</servlet-class>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>ReplyToService</servlet-name>
- <url-pattern>/*</url-pattern>
- </servlet-mapping>
-
-</web-app>
-
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF/web.xml
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF/web.xml)
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF/web.xml
(rev 0)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF/web.xml 2008-07-15
18:02:42 UTC (rev 7831)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app
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"
+ version="2.4">
+
+ <servlet>
+ <servlet-name>ReplyToService</servlet-name>
+
<servlet-class>org.jboss.test.ws.jaxrpc.samples.wsaddr.replyto.ReplyToEndpointJSE</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>ReplyToService</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+
+</web-app>
+
Deleted:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/wstools-config.xml
===================================================================
---
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/replyto/wstools-config.xml 2007-12-13
11:24:24 UTC (rev 5295)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/wstools-config.xml 2008-07-15
18:02:42 UTC (rev 7831)
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- wstools -cp ../../../output/classes -config wstools-config.xml
--->
-
-<configuration
xmlns="http://www.jboss.org/jbossws-tools"
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-
xsi:schemaLocation="http://www.jboss.org/jbossws-tools
http://www.jboss.org/jbossws-tools/schema/jbossws-tool_1_0.xsd">
- <java-wsdl>
- <service name="ReplyToService" style="document"
parameter-style="wrapped"
endpoint="org.jboss.test.ws.jaxrpc.samples.wsaddr.replyto.ReplyTo">
- <operation name="sayHelloResponse" one-way="true">
- <parameter type="java.lang.String" xml-name="result"/>
- </operation>
- <operation name="getLastMessage" one-way="false"
return-xml-name="result"/>
- </service>
- <namespaces
target-namespace="http://org.jboss.ws/jaxrpc/samples/wsaddr/replyto"
type-namespace="http://org.jboss.ws/jaxrpc/samples/wsaddr/replyto/types"/>
- <mapping file="replyto-jaxrpc-mapping.xml"/>
- <webservices servlet-link="ReplyToService"/>
- </java-wsdl>
-</configuration>
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/wstools-config.xml
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples/wsaddr/replyto/wstools-config.xml)
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/wstools-config.xml
(rev 0)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples/wsaddr/replyto/wstools-config.xml 2008-07-15
18:02:42 UTC (rev 7831)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ wstools -cp ../../../output/classes -config wstools-config.xml
+-->
+
+<configuration
xmlns="http://www.jboss.org/jbossws-tools"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://www.jboss.org/jbossws-tools
http://www.jboss.org/jbossws-tools/schema/jbossws-tool_1_0.xsd">
+ <java-wsdl>
+ <service name="ReplyToService" style="document"
parameter-style="wrapped"
endpoint="org.jboss.test.ws.jaxrpc.samples.wsaddr.replyto.ReplyTo">
+ <operation name="sayHelloResponse" one-way="true">
+ <parameter type="java.lang.String" xml-name="result"/>
+ </operation>
+ <operation name="getLastMessage" one-way="false"
return-xml-name="result"/>
+ </service>
+ <namespaces
target-namespace="http://org.jboss.ws/jaxrpc/samples/wsaddr/replyto"
type-namespace="http://org.jboss.ws/jaxrpc/samples/wsaddr/replyto/types"/>
+ <mapping file="replyto-jaxrpc-mapping.xml"/>
+ <webservices servlet-link="ReplyToService"/>
+ </java-wsdl>
+</configuration>
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples-override/wsaddr
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples-override/wsaddr)
Copied:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/samples-override/wsaddr/replyto
(from rev 5295,
legacy/branches/jbossws-1.2.1.GA_CP/jbossws-tests/src/resources/jaxrpc/samples-override/wsaddr/replyto)