Author: heiko.braun(a)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!";
Show replies by date