Author: richard.opalka(a)jboss.com
Date: 2011-10-21 05:21:37 -0400 (Fri, 21 Oct 2011)
New Revision: 15156
Modified:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/publish/EndpointImpl2.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/publish/EndpointPublishServlet.java
Log:
each endpoint should use unique serviceName
Modified:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/publish/EndpointImpl2.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/publish/EndpointImpl2.java 2011-10-21
08:51:17 UTC (rev 15155)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/publish/EndpointImpl2.java 2011-10-21
09:21:37 UTC (rev 15156)
@@ -25,7 +25,7 @@
import org.jboss.logging.Logger;
-@WebService(serviceName="EndpointService", portName="EndpointPort",
endpointInterface = "org.jboss.test.ws.publish.Endpoint")
+@WebService(serviceName="EndpointService2", portName="EndpointPort",
endpointInterface = "org.jboss.test.ws.publish.Endpoint")
public class EndpointImpl2
{
// Provide logging
Modified:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/publish/EndpointPublishServlet.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/publish/EndpointPublishServlet.java 2011-10-21
08:51:17 UTC (rev 15155)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/publish/EndpointPublishServlet.java 2011-10-21
09:21:37 UTC (rev 15156)
@@ -82,8 +82,8 @@
}
//call endpoint
- invoke(new
URL("http://localhost:8080/ep-publish-test/pattern?wsdl"));
- invoke(new
URL("http://localhost:8080/ep-publish-test/pattern2?wsdl"));
+ invoke(new URL("http://localhost:8080/ep-publish-test/pattern?wsdl"),
new
QName("http://publish.ws.test.jboss.org/", "EndpointService"));
+ invoke(new URL("http://localhost:8080/ep-publish-test/pattern2?wsdl"),
new
QName("http://publish.ws.test.jboss.org/", "EndpointService2"));
res.getWriter().print("1");
}
@@ -110,8 +110,7 @@
}
}
- private static void invoke(URL wsdlURL) throws Exception {
- QName serviceName = new
QName("http://publish.ws.test.jboss.org/",
"EndpointService");
+ private static void invoke(URL wsdlURL, QName serviceName) throws Exception {
Service service = Service.create(wsdlURL, serviceName);
org.jboss.test.ws.publish.Endpoint port =
service.getPort(org.jboss.test.ws.publish.Endpoint.class);
String result = port.echo("Foo");