Author: heiko.braun(a)jboss.com
Date: 2008-02-28 06:02:04 -0500 (Thu, 28 Feb 2008)
New Revision: 5840
Modified:
stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1871/JBWS1871TestCase.java
Log:
Fix server host settings
Modified:
stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1871/JBWS1871TestCase.java
===================================================================
---
stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1871/JBWS1871TestCase.java 2008-02-28
10:40:41 UTC (rev 5839)
+++
stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1871/JBWS1871TestCase.java 2008-02-28
11:02:04 UTC (rev 5840)
@@ -28,6 +28,7 @@
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebServiceException;
+import java.net.URL;
/**
* Conformance (Handler resolver for a HandlerChain annotation): For a generated service
class (see 2.7)
@@ -38,6 +39,7 @@
{
private final static String TNS =
"http://jbws1871.jaxws.ws.test.jboss.org/";
private final static QName portName = new QName(TNS,
"JBWS1871EndpointImplPort");
+ private final static QName serviceName = new QName(TNS,
"JBWS1871EndpointImplService");
public static Test suite()
{
@@ -46,7 +48,9 @@
public void testServiceWithoutHandlerChain() throws Exception
{
- Service service = new JBWS1871EndpointImplService();
+ Service service = new JBWS1871EndpointImplService(
+ new
URL("http://"+getServerHost()+":8080/jaxws-jbws1871?wsdl"),
serviceName
+ );
JBWS1871Endpoint port = service.getPort(portName, JBWS1871Endpoint.class);
String res = port.echo("testServiceWithoutHandlerChain");
@@ -55,7 +59,9 @@
public void testServiceWithHandlerChain() throws Exception
{
- Service service = new HandlerChainService();
+ Service service = new HandlerChainService(
+ new
URL("http://"+getServerHost()+":8080/jaxws-jbws1871?wsdl"),
serviceName
+ );
JBWS1871Endpoint port = service.getPort(portName, JBWS1871Endpoint.class);
try
Show replies by date