public javax.xml.ws.wsaddressing.W3CEndpointReference lookupEndpoint(
javax.xml.namespace.QName serviceQname)
throws EndpointNotExistFault {
LOG.info("Executing operation lookupEndpoint");
W3CEndpointReferenceBuilder eprBuilder = new W3CEndpointReferenceBuilder();
eprBuilder.address("http://bar");
eprBuilder.serviceName(serviceQname);
eprBuilder.wsdlDocumentLocation("wsdlLoc");
// just in case, for backward compatibility, the builder may be asked to
// create a wsdlLocation attribute with a location only
if (serviceQname.getNamespaceURI().endsWith("2")) {
Message m = PhaseInterceptorChain.getCurrentMessage();
m.put("org.apache.cxf.wsa.metadata.wsdlLocationOnly", "true");
}
return eprBuilder.build();
}