Author: alessio.soldano(a)jboss.com
Date: 2012-11-23 07:57:44 -0500 (Fri, 23 Nov 2012)
New Revision: 17033
Modified:
stack/cxf/branches/jbossws-cxf-3.1.2/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java
Log:
Adding testcase showing how to force WS-Addressing 2004/08 usage instead of default
Modified:
stack/cxf/branches/jbossws-cxf-3.1.2/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java
===================================================================
---
stack/cxf/branches/jbossws-cxf-3.1.2/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java 2012-11-21
13:43:15 UTC (rev 17032)
+++
stack/cxf/branches/jbossws-cxf-3.1.2/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsa/AddressingTestCase.java 2012-11-23
12:57:44 UTC (rev 17033)
@@ -23,9 +23,12 @@
import java.net.URL;
import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
import javax.xml.ws.Service;
import junit.framework.Test;
+
+import org.apache.cxf.ws.addressing.AddressingPropertiesImpl;
import org.jboss.wsf.test.JBossWSTest;
import org.jboss.wsf.test.JBossWSTestSetup;
@@ -60,4 +63,10 @@
assertEquals("Hello World!", proxy.sayHello());
}
+ public void testUsingWSA200408() throws Exception
+ {
+
((BindingProvider)proxy).getRequestContext().put("javax.xml.ws.addressing.context",
new
AddressingPropertiesImpl("http://schemas.xmlsoap.org/ws/2004/08/addr...);
+ assertEquals("Hello World!", proxy.sayHello());
+ }
+
}