throws SharepointException {
final String endpoint = Util.encodeURL(siteUrl)
+ SPConstants.GSPSITEDISCOVERYWS_END_POINT;
LOGGER.log(Level.CONFIG, "Endpoint set to: " + endpoint);
final SiteDiscoveryLocator loc = new SiteDiscoveryLocator();
loc.setSiteDiscoverySoapEndpointAddress(endpoint);
final SiteDiscovery gspSiteDiscovery = loc;
try {
stub = (SiteDiscoverySoap_BindingStub) gspSiteDiscovery.getSiteDiscoverySoap();
} catch (final ServiceException e) {
LOGGER.log(Level.WARNING, e.getMessage(), e);