You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by bi...@apache.org on 2008/05/24 00:10:58 UTC
svn commit: r659687 -
/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java
Author: bimargulies
Date: Fri May 23 15:10:57 2008
New Revision: 659687
URL: http://svn.apache.org/viewvc?rev=659687&view=rev
Log:
Add at least a tiny test for JAX-WS Dynamic Clients.
Modified:
cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java
Modified: cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java?rev=659687&r1=659686&r2=659687&view=diff
==============================================================================
--- cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java (original)
+++ cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java Fri May 23 15:10:57 2008
@@ -115,6 +115,20 @@
Client client = dynamicClientFactory.createClient(wsdlUrl);
assertNotNull(client);
}
+
+ @Test
+ public void testJaxWsDynamicClient() throws Exception {
+ URL wsdl = getClass().getResource("/wsdl/others/dynamic_client_base64.wsdl");
+ assertNotNull(wsdl);
+ String wsdlUrl = null;
+ wsdlUrl = wsdl.toURI().toString();
+ CXFBusFactory busFactory = new CXFBusFactory();
+ Bus bus = busFactory.createBus();
+ org.apache.cxf.jaxws.endpoint.dynamic.DynamicClientFactory dynamicClientFactory =
+ org.apache.cxf.jaxws.endpoint.dynamic.DynamicClientFactory.newInstance(bus);
+ Client client = dynamicClientFactory.createClient(wsdlUrl);
+ assertNotNull(client);
+ }
@Test
public void testBasicConnection() throws Exception {