[jbossws-commits] JBossWS SVN: r3890 - branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/webserviceref.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Mon Jul 16 08:32:38 EDT 2007


Author: heiko.braun at jboss.com
Date: 2007-07-16 08:32:38 -0400 (Mon, 16 Jul 2007)
New Revision: 3890

Modified:
   branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/webserviceref/WebServiceRefClientTestCase.java
Log:
Remove propriatary features from webserviceref tests

Modified: branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/webserviceref/WebServiceRefClientTestCase.java
===================================================================
--- branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/webserviceref/WebServiceRefClientTestCase.java	2007-07-16 12:11:33 UTC (rev 3889)
+++ branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/webserviceref/WebServiceRefClientTestCase.java	2007-07-16 12:32:38 UTC (rev 3890)
@@ -50,13 +50,12 @@
 
    public void testGeneratedService() throws Exception
    {
-      TestEndpointService service = new TestEndpointService();
+      URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
+      QName serviceQName = new QName("http://org.jboss.ws/wsref", "TestEndpointService");
+
+      TestEndpointService service = new TestEndpointService(wsdlURL, serviceQName);
       TestEndpoint port = service.getTestEndpointPort();
       
-      // Set the target endpoint address, since the service could not be created from wsdl 
-      BindingProvider provider = (BindingProvider)port;
-      provider.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, TARGET_ENDPOINT_ADDRESS);
-
       String helloWorld = "Hello World!";
       Object retObj = port.echo(helloWorld);
       assertEquals(helloWorld, retObj);
@@ -65,8 +64,8 @@
    public void testDynamicProxy() throws Exception
    {
       URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
-      QName qname = new QName("http://org.jboss.ws/wsref", "TestEndpointService");
-      Service service = Service.create(wsdlURL, qname);
+      QName serviceQName = new QName("http://org.jboss.ws/wsref", "TestEndpointService");
+      Service service = Service.create(wsdlURL, serviceQName);
       TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
 
       String helloWorld = "Hello World!";




More information about the jbossws-commits mailing list