use of jakarta.xml.ws.Endpoint in project metro-jax-ws by eclipse-ee4j.
the class EmptyNamespaceTest method testEmptyNamespace.
public void testEmptyNamespace() throws Exception {
int port = PortAllocator.getFreePort();
String address = "http://localhost:" + port + "/hello";
Endpoint endpoint = Endpoint.create(new GetTotalPrice());
List<Source> metadata = new ArrayList<Source>();
ClassLoader cl = Thread.currentThread().getContextClassLoader();
endpoint.publish(address);
URL pubUrl = new URL(address + "?wsdl");
boolean gen = isGenerated(pubUrl.openStream());
assertTrue(gen);
URL xsdUrl = new URL(address + "?xsd=2");
String contents = getContent(xsdUrl.openStream());
assertTrue(contents, contents.indexOf(":complexType name=\"shoppingCart\"") > -1);
endpoint.stop();
}
use of jakarta.xml.ws.Endpoint in project metro-jax-ws by eclipse-ee4j.
the class EndpointAPITest method testSlashPath.
public void testSlashPath() throws Exception {
int port = PortAllocator.getFreePort();
String address = "http://localhost:" + port + "/";
Endpoint endpoint = Endpoint.create(new RpcLitEndpoint());
endpoint.publish(address);
assertTrue(isWSDL(address));
endpoint.stop();
}
use of jakarta.xml.ws.Endpoint in project metro-jax-ws by eclipse-ee4j.
the class EndpointAPITest method testEndpoint1.
public void testEndpoint1() {
int port = PortAllocator.getFreePort();
String address = "http://localhost:" + port + "/hello";
Endpoint endpoint = Endpoint.create(new RpcLitEndpoint());
endpoint.publish(address);
doAPItesting(endpoint);
}
use of jakarta.xml.ws.Endpoint in project metro-jax-ws by eclipse-ee4j.
the class EndpointAPITest method testStopBeforePublish.
public void testStopBeforePublish() {
Endpoint endpoint = Endpoint.create(new RpcLitEndpoint());
// Stop before publish() shouldn't have any effect
endpoint.stop();
}
use of jakarta.xml.ws.Endpoint in project metro-jax-ws by eclipse-ee4j.
the class EndpointAPITester method testEndpoint.
public void testEndpoint() {
int port = Util.getFreePort();
String address = "http://localhost:" + port + "/hello";
Endpoint endpoint = Endpoint.publish(address, new RpcLitEndpoint());
doAPItesting(endpoint);
}
Aggregations