use of org.apache.locator.LocatorService_Service in project cxf by apache.
the class LocatorClientServerTest method testLookupEndpointAndVerifyWsdlLocationOnly.
@Test
public void testLookupEndpointAndVerifyWsdlLocationOnly() throws Exception {
URL wsdl = getClass().getResource("/wsdl/locator.wsdl");
assertNotNull(wsdl);
LocatorService_Service ss = new LocatorService_Service(wsdl, serviceName);
LocatorService port = ss.getLocatorServicePort();
updateAddressPort(port, PORT);
W3CEndpointReference epr = port.lookupEndpoint(new QName("http://service/2", "Number"));
String eprString = epr.toString();
assertTrue(eprString.contains("Metadata"));
assertTrue(eprString.contains("wsdlLocation=\"wsdlLoc\""));
}
use of org.apache.locator.LocatorService_Service in project cxf by apache.
the class LocatorClientServerTest method testLookupEndpointAndVerifyWsdlLocationAndNamespace.
@Test
public void testLookupEndpointAndVerifyWsdlLocationAndNamespace() throws Exception {
URL wsdl = getClass().getResource("/wsdl/locator.wsdl");
assertNotNull(wsdl);
LocatorService_Service ss = new LocatorService_Service(wsdl, serviceName);
LocatorService port = ss.getLocatorServicePort();
updateAddressPort(port, PORT);
W3CEndpointReference epr = port.lookupEndpoint(new QName("http://service/1", "Number"));
String eprString = epr.toString();
assertTrue(eprString.contains("Metadata"));
assertTrue(eprString.contains("wsdlLocation=\"http://service/1 wsdlLoc\""));
}
Aggregations