JBossWS SVN: r10608 - spi/branches/jbossws-spi-1.2.0.GA.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2009-08-27 04:35:31 -0400 (Thu, 27 Aug 2009)
New Revision: 10608
Modified:
spi/branches/jbossws-spi-1.2.0.GA/pom.xml
Log:
setting release version
Modified: spi/branches/jbossws-spi-1.2.0.GA/pom.xml
===================================================================
--- spi/branches/jbossws-spi-1.2.0.GA/pom.xml 2009-08-26 14:20:16 UTC (rev 10607)
+++ spi/branches/jbossws-spi-1.2.0.GA/pom.xml 2009-08-27 08:35:31 UTC (rev 10608)
@@ -6,7 +6,7 @@
<artifactId>jbossws-spi</artifactId>
<packaging>jar</packaging>
- <version>1.2.0-SNAPSHOT</version>
+ <version>1.2.0.GA</version>
<!-- Parent -->
<parent>
15 years, 4 months
JBossWS SVN: r10607 - stack/native/branches/jbossws-native-3.2.0.GA/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2009-08-26 10:20:16 -0400 (Wed, 26 Aug 2009)
New Revision: 10607
Modified:
stack/native/branches/jbossws-native-3.2.0.GA/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java
stack/native/branches/jbossws-native-3.2.0.GA/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceImpl.java
Log:
[JBWS-2457] fixing sample - 'svn merge -r 10601:10602 https://svn.jboss.org/repos/jbossws/stack/native/trunk'
Modified: stack/native/branches/jbossws-native-3.2.0.GA/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java
===================================================================
--- stack/native/branches/jbossws-native-3.2.0.GA/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java 2009-08-26 14:17:19 UTC (rev 10606)
+++ stack/native/branches/jbossws-native-3.2.0.GA/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java 2009-08-26 14:20:16 UTC (rev 10607)
@@ -24,8 +24,9 @@
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
+import javax.xml.ws.soap.AddressingFeature;
+
import junit.framework.Test;
-import org.jboss.ws.core.ConfigProvider;
import org.jboss.wsf.test.JBossWSTest;
import org.jboss.wsf.test.JBossWSTestSetup;
@@ -49,9 +50,7 @@
QName serviceName = new QName("http://www.jboss.org/jbossws/ws-extensions/wsaddressing", "AddressingService");
URL wsdlURL = new URL(serviceURL + "?wsdl");
Service service = Service.create(wsdlURL, serviceName);
- ServiceIface proxy = (ServiceIface)service.getPort(ServiceIface.class);
- // configure WS-Addressing
- ((ConfigProvider)proxy).setConfigName("Standard WSAddressing Client");
+ ServiceIface proxy = (ServiceIface)service.getPort(ServiceIface.class, new AddressingFeature());
// invoke method
assertEquals("Hello World!", proxy.sayHello());
}
Modified: stack/native/branches/jbossws-native-3.2.0.GA/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceImpl.java
===================================================================
--- stack/native/branches/jbossws-native-3.2.0.GA/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceImpl.java 2009-08-26 14:17:19 UTC (rev 10606)
+++ stack/native/branches/jbossws-native-3.2.0.GA/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceImpl.java 2009-08-26 14:20:16 UTC (rev 10607)
@@ -22,12 +22,8 @@
package org.jboss.test.ws.jaxws.samples.wsa;
import javax.jws.WebService;
-import org.jboss.ws.annotation.EndpointConfig;
+import javax.xml.ws.soap.Addressing;
-@EndpointConfig
-(
- configName = "Standard WSAddressing Endpoint"
-)
@WebService
(
portName = "AddressingServicePort",
@@ -36,6 +32,7 @@
targetNamespace = "http://www.jboss.org/jbossws/ws-extensions/wsaddressing",
endpointInterface = "org.jboss.test.ws.jaxws.samples.wsa.ServiceIface"
)
+@Addressing(enabled=true, required=true)
public class ServiceImpl implements ServiceIface
{
public String sayHello()
15 years, 4 months
JBossWS SVN: r10606 - in stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/testsuite/cxf-tests: src/test/java/org/jboss/test/ws/jaxws/samples/wsa and 2 other directories.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2009-08-26 10:17:19 -0400 (Wed, 26 Aug 2009)
New Revision: 10606
Modified:
stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/testsuite/cxf-tests/scripts/cxf-samples-jaxws.xml
stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java
stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceImpl.java
stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsa/WEB-INF/jbossws-cxf.xml
stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsa/WEB-INF/wsdl/AddressingService.wsdl
Log:
[JBWS-2457] fixing sample - svn merge -r 10603:10604 https://svn.jboss.org/repos/jbossws/stack/cxf/trunk
Modified: stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/testsuite/cxf-tests/scripts/cxf-samples-jaxws.xml
===================================================================
--- stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/testsuite/cxf-tests/scripts/cxf-samples-jaxws.xml 2009-08-26 14:16:37 UTC (rev 10605)
+++ stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/testsuite/cxf-tests/scripts/cxf-samples-jaxws.xml 2009-08-26 14:17:19 UTC (rev 10606)
@@ -32,12 +32,6 @@
prefix="WEB-INF/wsdl"/>
</war>
- <jar destfile="${tests.output.dir}/test-libs/jaxws-samples-wsa-client.jar">
- <metainf dir="${tests.output.dir}/test-resources/jaxws/samples/wsa">
- <include name="cxf.xml"/>
- </metainf>
- </jar>
-
<!-- jaxws-samples-wsrm -->
<war
warfile="${tests.output.dir}/test-libs/jaxws-samples-wsrm.war"
Modified: stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java 2009-08-26 14:16:37 UTC (rev 10605)
+++ stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java 2009-08-26 14:17:19 UTC (rev 10606)
@@ -24,6 +24,7 @@
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
+import javax.xml.ws.soap.AddressingFeature;
import junit.framework.Test;
import org.jboss.wsf.test.JBossWSTest;
@@ -37,26 +38,20 @@
public final class AddressingTestCase extends JBossWSTest
{
private final String serviceURL = "http://" + getServerHost() + ":8080/jaxws-samples-wsa/AddressingService";
- private ServiceIface proxy;
public static Test suite()
{
- return new JBossWSTestSetup(AddressingTestCase.class, "jaxws-samples-wsa.war,jaxws-samples-wsa-client.jar");
+ return new JBossWSTestSetup(AddressingTestCase.class, "jaxws-samples-wsa.war");
}
- @Override
- protected void setUp() throws Exception
+ public void test() throws Exception
{
- super.setUp();
-
+ // construct proxy
QName serviceName = new QName("http://www.jboss.org/jbossws/ws-extensions/wsaddressing", "AddressingService");
URL wsdlURL = new URL(serviceURL + "?wsdl");
Service service = Service.create(wsdlURL, serviceName);
- proxy = (ServiceIface)service.getPort(ServiceIface.class);
- }
-
- public void test() throws Exception
- {
+ ServiceIface proxy = (ServiceIface)service.getPort(ServiceIface.class, new AddressingFeature());
+ // invoke method
assertEquals("Hello World!", proxy.sayHello());
}
Modified: stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceImpl.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceImpl.java 2009-08-26 14:16:37 UTC (rev 10605)
+++ stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceImpl.java 2009-08-26 14:17:19 UTC (rev 10606)
@@ -22,6 +22,7 @@
package org.jboss.test.ws.jaxws.samples.wsa;
import javax.jws.WebService;
+import javax.xml.ws.soap.Addressing;
@WebService
(
@@ -31,6 +32,7 @@
targetNamespace = "http://www.jboss.org/jbossws/ws-extensions/wsaddressing",
endpointInterface = "org.jboss.test.ws.jaxws.samples.wsa.ServiceIface"
)
+@Addressing(enabled=true, required=true)
public class ServiceImpl implements ServiceIface
{
public String sayHello()
Modified: stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsa/WEB-INF/jbossws-cxf.xml
===================================================================
--- stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsa/WEB-INF/jbossws-cxf.xml 2009-08-26 14:16:37 UTC (rev 10605)
+++ stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsa/WEB-INF/jbossws-cxf.xml 2009-08-26 14:17:19 UTC (rev 10606)
@@ -7,7 +7,7 @@
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
'>
-
+
<jaxws:endpoint
id='ServiceImpl'
address='http://@jboss.bind.address@:8080/jaxws-samples-wsa'
@@ -15,9 +15,6 @@
<jaxws:invoker>
<bean class='org.jboss.wsf.stack.cxf.InvokerJSE'/>
</jaxws:invoker>
- <jaxws:features>
- <wsa:addressing usingAddressingAdvisory="false" allowDuplicates="false"/>
- </jaxws:features>
</jaxws:endpoint>
-
+
</beans>
Modified: stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsa/WEB-INF/wsdl/AddressingService.wsdl
===================================================================
--- stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsa/WEB-INF/wsdl/AddressingService.wsdl 2009-08-26 14:16:37 UTC (rev 10605)
+++ stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsa/WEB-INF/wsdl/AddressingService.wsdl 2009-08-26 14:17:19 UTC (rev 10606)
@@ -45,7 +45,6 @@
<wsdl:service name="AddressingService">
<wsdl:port name="AddressingServicePort" binding="tns:AddressingServiceSoapBinding">
<soap:address location="http://localhost:9090/hello"/>
- <UsingAddressing xmlns="http://www.w3.org/2006/05/addressing/wsdl"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
15 years, 4 months
JBossWS SVN: r10605 - in stack/metro/branches/jbossws-metro-3.2.0.GA/modules/testsuite/metro-tests/src/test: resources/jaxws/samples/wsa/WEB-INF/wsdl and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2009-08-26 10:16:37 -0400 (Wed, 26 Aug 2009)
New Revision: 10605
Modified:
stack/metro/branches/jbossws-metro-3.2.0.GA/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java
stack/metro/branches/jbossws-metro-3.2.0.GA/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceIface.java
stack/metro/branches/jbossws-metro-3.2.0.GA/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceImpl.java
stack/metro/branches/jbossws-metro-3.2.0.GA/modules/testsuite/metro-tests/src/test/resources/jaxws/samples/wsa/WEB-INF/wsdl/AddressingService.wsdl
Log:
[JBWS-2457] fixing sample 'svn merge -r 10602:10603 https://svn.jboss.org/repos/jbossws/stack/metro/trunk'
Modified: stack/metro/branches/jbossws-metro-3.2.0.GA/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java
===================================================================
--- stack/metro/branches/jbossws-metro-3.2.0.GA/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java 2009-08-26 11:46:23 UTC (rev 10604)
+++ stack/metro/branches/jbossws-metro-3.2.0.GA/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java 2009-08-26 14:16:37 UTC (rev 10605)
@@ -24,6 +24,8 @@
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
+import javax.xml.ws.soap.AddressingFeature;
+
import junit.framework.Test;
import org.jboss.wsf.test.JBossWSTest;
import org.jboss.wsf.test.JBossWSTestSetup;
@@ -44,11 +46,12 @@
public void test() throws Exception
{
+ // construct proxy
QName serviceName = new QName("http://www.jboss.org/jbossws/ws-extensions/wsaddressing", "AddressingService");
URL wsdlURL = new URL(serviceURL + "?wsdl");
Service service = Service.create(wsdlURL, serviceName);
- ServiceIface proxy = (ServiceIface)service.getPort(ServiceIface.class);
-
+ ServiceIface proxy = (ServiceIface)service.getPort(ServiceIface.class, new AddressingFeature());
+ // invoke method
assertEquals("Hello World!", proxy.sayHello());
}
Modified: stack/metro/branches/jbossws-metro-3.2.0.GA/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceIface.java
===================================================================
--- stack/metro/branches/jbossws-metro-3.2.0.GA/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceIface.java 2009-08-26 11:46:23 UTC (rev 10604)
+++ stack/metro/branches/jbossws-metro-3.2.0.GA/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceIface.java 2009-08-26 14:16:37 UTC (rev 10605)
@@ -19,7 +19,6 @@
* Software 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.wsa;
import javax.jws.WebMethod;
Modified: stack/metro/branches/jbossws-metro-3.2.0.GA/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceImpl.java
===================================================================
--- stack/metro/branches/jbossws-metro-3.2.0.GA/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceImpl.java 2009-08-26 11:46:23 UTC (rev 10604)
+++ stack/metro/branches/jbossws-metro-3.2.0.GA/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceImpl.java 2009-08-26 14:16:37 UTC (rev 10605)
@@ -19,10 +19,10 @@
* Software 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.wsa;
import javax.jws.WebService;
+import javax.xml.ws.soap.Addressing;
@WebService
(
@@ -32,6 +32,7 @@
targetNamespace = "http://www.jboss.org/jbossws/ws-extensions/wsaddressing",
endpointInterface = "org.jboss.test.ws.jaxws.samples.wsa.ServiceIface"
)
+@Addressing(enabled=true, required=true)
public class ServiceImpl implements ServiceIface
{
public String sayHello()
Modified: stack/metro/branches/jbossws-metro-3.2.0.GA/modules/testsuite/metro-tests/src/test/resources/jaxws/samples/wsa/WEB-INF/wsdl/AddressingService.wsdl
===================================================================
--- stack/metro/branches/jbossws-metro-3.2.0.GA/modules/testsuite/metro-tests/src/test/resources/jaxws/samples/wsa/WEB-INF/wsdl/AddressingService.wsdl 2009-08-26 11:46:23 UTC (rev 10604)
+++ stack/metro/branches/jbossws-metro-3.2.0.GA/modules/testsuite/metro-tests/src/test/resources/jaxws/samples/wsa/WEB-INF/wsdl/AddressingService.wsdl 2009-08-26 14:16:37 UTC (rev 10605)
@@ -33,7 +33,6 @@
<service name="AddressingService">
<port name="AddressingServicePort" binding="tns:AddressingServicePortBinding">
<soap:address location="REPLACE_WITH_ACTUAL_URL"/>
- <UsingAddressing xmlns="http://www.w3.org/2006/05/addressing/wsdl"/>
</port>
</service>
</definitions>
15 years, 4 months
JBossWS SVN: r10604 - in stack/cxf/trunk/modules/testsuite/cxf-tests: src/test/java/org/jboss/test/ws/jaxws/samples/wsa and 2 other directories.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2009-08-26 07:46:23 -0400 (Wed, 26 Aug 2009)
New Revision: 10604
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-samples-jaxws.xml
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceImpl.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsa/WEB-INF/jbossws-cxf.xml
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsa/WEB-INF/wsdl/AddressingService.wsdl
Log:
[JBWS-2457] fixing sample
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-samples-jaxws.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-samples-jaxws.xml 2009-08-26 11:37:19 UTC (rev 10603)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-samples-jaxws.xml 2009-08-26 11:46:23 UTC (rev 10604)
@@ -32,12 +32,6 @@
prefix="WEB-INF/wsdl"/>
</war>
- <jar destfile="${tests.output.dir}/test-libs/jaxws-samples-wsa-client.jar">
- <metainf dir="${tests.output.dir}/test-resources/jaxws/samples/wsa">
- <include name="cxf.xml"/>
- </metainf>
- </jar>
-
<!-- jaxws-samples-wsrm -->
<war
warfile="${tests.output.dir}/test-libs/jaxws-samples-wsrm.war"
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java 2009-08-26 11:37:19 UTC (rev 10603)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java 2009-08-26 11:46:23 UTC (rev 10604)
@@ -24,6 +24,7 @@
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
+import javax.xml.ws.soap.AddressingFeature;
import junit.framework.Test;
import org.jboss.wsf.test.JBossWSTest;
@@ -37,26 +38,20 @@
public final class AddressingTestCase extends JBossWSTest
{
private final String serviceURL = "http://" + getServerHost() + ":8080/jaxws-samples-wsa/AddressingService";
- private ServiceIface proxy;
public static Test suite()
{
- return new JBossWSTestSetup(AddressingTestCase.class, "jaxws-samples-wsa.war,jaxws-samples-wsa-client.jar");
+ return new JBossWSTestSetup(AddressingTestCase.class, "jaxws-samples-wsa.war");
}
- @Override
- protected void setUp() throws Exception
+ public void test() throws Exception
{
- super.setUp();
-
+ // construct proxy
QName serviceName = new QName("http://www.jboss.org/jbossws/ws-extensions/wsaddressing", "AddressingService");
URL wsdlURL = new URL(serviceURL + "?wsdl");
Service service = Service.create(wsdlURL, serviceName);
- proxy = (ServiceIface)service.getPort(ServiceIface.class);
- }
-
- public void test() throws Exception
- {
+ ServiceIface proxy = (ServiceIface)service.getPort(ServiceIface.class, new AddressingFeature());
+ // invoke method
assertEquals("Hello World!", proxy.sayHello());
}
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceImpl.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceImpl.java 2009-08-26 11:37:19 UTC (rev 10603)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceImpl.java 2009-08-26 11:46:23 UTC (rev 10604)
@@ -22,6 +22,7 @@
package org.jboss.test.ws.jaxws.samples.wsa;
import javax.jws.WebService;
+import javax.xml.ws.soap.Addressing;
@WebService
(
@@ -31,6 +32,7 @@
targetNamespace = "http://www.jboss.org/jbossws/ws-extensions/wsaddressing",
endpointInterface = "org.jboss.test.ws.jaxws.samples.wsa.ServiceIface"
)
+@Addressing(enabled=true, required=true)
public class ServiceImpl implements ServiceIface
{
public String sayHello()
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsa/WEB-INF/jbossws-cxf.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsa/WEB-INF/jbossws-cxf.xml 2009-08-26 11:37:19 UTC (rev 10603)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsa/WEB-INF/jbossws-cxf.xml 2009-08-26 11:46:23 UTC (rev 10604)
@@ -7,7 +7,7 @@
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
'>
-
+
<jaxws:endpoint
id='ServiceImpl'
address='http://@jboss.bind.address@:8080/jaxws-samples-wsa'
@@ -15,9 +15,6 @@
<jaxws:invoker>
<bean class='org.jboss.wsf.stack.cxf.InvokerJSE'/>
</jaxws:invoker>
- <jaxws:features>
- <wsa:addressing usingAddressingAdvisory="false" allowDuplicates="false"/>
- </jaxws:features>
</jaxws:endpoint>
-
+
</beans>
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsa/WEB-INF/wsdl/AddressingService.wsdl
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsa/WEB-INF/wsdl/AddressingService.wsdl 2009-08-26 11:37:19 UTC (rev 10603)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsa/WEB-INF/wsdl/AddressingService.wsdl 2009-08-26 11:46:23 UTC (rev 10604)
@@ -45,7 +45,6 @@
<wsdl:service name="AddressingService">
<wsdl:port name="AddressingServicePort" binding="tns:AddressingServiceSoapBinding">
<soap:address location="http://localhost:9090/hello"/>
- <UsingAddressing xmlns="http://www.w3.org/2006/05/addressing/wsdl"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
15 years, 4 months
JBossWS SVN: r10603 - in stack/metro/trunk/modules/testsuite/metro-tests/src/test: resources/jaxws/samples/wsa/WEB-INF/wsdl and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2009-08-26 07:37:19 -0400 (Wed, 26 Aug 2009)
New Revision: 10603
Modified:
stack/metro/trunk/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java
stack/metro/trunk/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceIface.java
stack/metro/trunk/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceImpl.java
stack/metro/trunk/modules/testsuite/metro-tests/src/test/resources/jaxws/samples/wsa/WEB-INF/wsdl/AddressingService.wsdl
Log:
[JBWS-2457] fixing sample
Modified: stack/metro/trunk/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java
===================================================================
--- stack/metro/trunk/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java 2009-08-26 11:01:58 UTC (rev 10602)
+++ stack/metro/trunk/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java 2009-08-26 11:37:19 UTC (rev 10603)
@@ -24,6 +24,8 @@
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
+import javax.xml.ws.soap.AddressingFeature;
+
import junit.framework.Test;
import org.jboss.wsf.test.JBossWSTest;
import org.jboss.wsf.test.JBossWSTestSetup;
@@ -44,11 +46,12 @@
public void test() throws Exception
{
+ // construct proxy
QName serviceName = new QName("http://www.jboss.org/jbossws/ws-extensions/wsaddressing", "AddressingService");
URL wsdlURL = new URL(serviceURL + "?wsdl");
Service service = Service.create(wsdlURL, serviceName);
- ServiceIface proxy = (ServiceIface)service.getPort(ServiceIface.class);
-
+ ServiceIface proxy = (ServiceIface)service.getPort(ServiceIface.class, new AddressingFeature());
+ // invoke method
assertEquals("Hello World!", proxy.sayHello());
}
Modified: stack/metro/trunk/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceIface.java
===================================================================
--- stack/metro/trunk/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceIface.java 2009-08-26 11:01:58 UTC (rev 10602)
+++ stack/metro/trunk/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceIface.java 2009-08-26 11:37:19 UTC (rev 10603)
@@ -19,7 +19,6 @@
* Software 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.wsa;
import javax.jws.WebMethod;
Modified: stack/metro/trunk/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceImpl.java
===================================================================
--- stack/metro/trunk/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceImpl.java 2009-08-26 11:01:58 UTC (rev 10602)
+++ stack/metro/trunk/modules/testsuite/metro-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceImpl.java 2009-08-26 11:37:19 UTC (rev 10603)
@@ -19,10 +19,10 @@
* Software 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.wsa;
import javax.jws.WebService;
+import javax.xml.ws.soap.Addressing;
@WebService
(
@@ -32,6 +32,7 @@
targetNamespace = "http://www.jboss.org/jbossws/ws-extensions/wsaddressing",
endpointInterface = "org.jboss.test.ws.jaxws.samples.wsa.ServiceIface"
)
+@Addressing(enabled=true, required=true)
public class ServiceImpl implements ServiceIface
{
public String sayHello()
Modified: stack/metro/trunk/modules/testsuite/metro-tests/src/test/resources/jaxws/samples/wsa/WEB-INF/wsdl/AddressingService.wsdl
===================================================================
--- stack/metro/trunk/modules/testsuite/metro-tests/src/test/resources/jaxws/samples/wsa/WEB-INF/wsdl/AddressingService.wsdl 2009-08-26 11:01:58 UTC (rev 10602)
+++ stack/metro/trunk/modules/testsuite/metro-tests/src/test/resources/jaxws/samples/wsa/WEB-INF/wsdl/AddressingService.wsdl 2009-08-26 11:37:19 UTC (rev 10603)
@@ -33,7 +33,6 @@
<service name="AddressingService">
<port name="AddressingServicePort" binding="tns:AddressingServicePortBinding">
<soap:address location="REPLACE_WITH_ACTUAL_URL"/>
- <UsingAddressing xmlns="http://www.w3.org/2006/05/addressing/wsdl"/>
</port>
</service>
</definitions>
15 years, 4 months
JBossWS SVN: r10602 - stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2009-08-26 07:01:58 -0400 (Wed, 26 Aug 2009)
New Revision: 10602
Modified:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceImpl.java
Log:
[JBWS-2457] fixing sample
Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java 2009-08-25 09:16:51 UTC (rev 10601)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java 2009-08-26 11:01:58 UTC (rev 10602)
@@ -24,8 +24,9 @@
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
+import javax.xml.ws.soap.AddressingFeature;
+
import junit.framework.Test;
-import org.jboss.ws.core.ConfigProvider;
import org.jboss.wsf.test.JBossWSTest;
import org.jboss.wsf.test.JBossWSTestSetup;
@@ -49,9 +50,7 @@
QName serviceName = new QName("http://www.jboss.org/jbossws/ws-extensions/wsaddressing", "AddressingService");
URL wsdlURL = new URL(serviceURL + "?wsdl");
Service service = Service.create(wsdlURL, serviceName);
- ServiceIface proxy = (ServiceIface)service.getPort(ServiceIface.class);
- // configure WS-Addressing
- ((ConfigProvider)proxy).setConfigName("Standard WSAddressing Client");
+ ServiceIface proxy = (ServiceIface)service.getPort(ServiceIface.class, new AddressingFeature());
// invoke method
assertEquals("Hello World!", proxy.sayHello());
}
Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceImpl.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceImpl.java 2009-08-25 09:16:51 UTC (rev 10601)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/ServiceImpl.java 2009-08-26 11:01:58 UTC (rev 10602)
@@ -22,12 +22,8 @@
package org.jboss.test.ws.jaxws.samples.wsa;
import javax.jws.WebService;
-import org.jboss.ws.annotation.EndpointConfig;
+import javax.xml.ws.soap.Addressing;
-@EndpointConfig
-(
- configName = "Standard WSAddressing Endpoint"
-)
@WebService
(
portName = "AddressingServicePort",
@@ -36,6 +32,7 @@
targetNamespace = "http://www.jboss.org/jbossws/ws-extensions/wsaddressing",
endpointInterface = "org.jboss.test.ws.jaxws.samples.wsa.ServiceIface"
)
+@Addressing(enabled=true, required=true)
public class ServiceImpl implements ServiceIface
{
public String sayHello()
15 years, 4 months
JBossWS SVN: r10601 - stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/server/src/main/java/org/jboss/wsf/stack/cxf.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2009-08-25 05:16:51 -0400 (Tue, 25 Aug 2009)
New Revision: 10601
Modified:
stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/server/src/main/java/org/jboss/wsf/stack/cxf/CXFServletExt.java
Log:
svn merge -r 10599:10600 https://svn.jboss.org/repos/jbossws/stack/cxf/trunk .
Modified: stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/server/src/main/java/org/jboss/wsf/stack/cxf/CXFServletExt.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/server/src/main/java/org/jboss/wsf/stack/cxf/CXFServletExt.java 2009-08-25 08:52:53 UTC (rev 10600)
+++ stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/server/src/main/java/org/jboss/wsf/stack/cxf/CXFServletExt.java 2009-08-25 09:16:51 UTC (rev 10601)
@@ -33,8 +33,9 @@
import javax.servlet.http.HttpServletResponse;
import javax.xml.ws.WebServiceException;
+import org.apache.cxf.Bus;
import org.apache.cxf.BusFactory;
-import org.apache.cxf.transport.DestinationFactory;
+import org.apache.cxf.binding.soap.SoapTransportFactory;
import org.apache.cxf.transport.DestinationFactoryManager;
import org.apache.cxf.transport.servlet.CXFServlet;
import org.apache.cxf.transport.servlet.ServletController;
@@ -101,9 +102,11 @@
ServletContext svCtx = getServletContext();
ApplicationContext appCtx = (ApplicationContext)svCtx.getAttribute("org.springframework.web.context.WebApplicationContext.ROOT");
+ Bus bus = getBus();
//Install our SoapTransportFactory to allow for proper soap address rewrite
- DestinationFactoryManager dfm = getBus().getExtension(DestinationFactoryManager.class);
- DestinationFactory factory = new SoapTransportFactoryExt();
+ DestinationFactoryManager dfm = bus.getExtension(DestinationFactoryManager.class);
+ SoapTransportFactory factory = new SoapTransportFactoryExt();
+ factory.setBus(bus);
dfm.registerDestinationFactory(Constants.NS_SOAP11, factory);
dfm.registerDestinationFactory(Constants.NS_SOAP12, factory);
15 years, 4 months
no-reply
by jbossws-commits@lists.jboss.org
15 years, 4 months