Examples of DiscoveryException


Examples of org.wso2.carbon.discovery.DiscoveryException

    public void Bye(OMElement byeElement) throws DiscoveryException {
        Notification bye = DiscoveryOMUtils.getByeFromOM(byeElement);
        try {
            DiscoveryServiceUtils.removeServiceEndpoints(bye.getTargetService());
        } catch (Exception e) {
            throw new DiscoveryException("Error while persisting the " +
                    "service description", e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.discovery.DiscoveryException

            TargetService[] services = DiscoveryServiceUtils.findServices(probe);
            QueryMatch match = new QueryMatch(DiscoveryConstants.RESULT_TYPE_PROBE_MATCH,
                    services);
            return DiscoveryOMUtils.toOM(match, OMAbstractFactory.getSOAP11Factory());
        } catch (Exception e) {
            throw new DiscoveryException("Error while searching for services", e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.discovery.DiscoveryException

            TargetService service = DiscoveryServiceUtils.getService(resolve.getEpr());
            QueryMatch match = new QueryMatch(DiscoveryConstants.RESULT_TYPE_RESOLVE_MATCH,
                    new TargetService[] { service });
            return DiscoveryOMUtils.toOM(match, OMAbstractFactory.getSOAP11Factory());
        } catch (Exception e) {
            throw new DiscoveryException("Error while resolving the service with ID: " +
                resolve.getEpr().getAddress());
        }
    }
View Full Code Here

Examples of org.wso2.carbon.discovery.DiscoveryException

            serviceClient.fireAndForget(DiscoveryOMUtils.toOM(notification,
                    OMAbstractFactory.getOMFactory()));
            serviceClient.cleanup();

        } catch (Exception e) {
            throw new DiscoveryException("Error while sending the WS-Discovery notification " +
                    "for the service " + service.getName(), e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.discovery.DiscoveryException

    public static void removeServiceEndpoints(TargetService service) throws Exception {
        TargetService oldService = getService(service.getEpr());

        if (oldService == null) {
            throw new DiscoveryException("Error while updating discovery metadata. No service " +
                    "exists with the ID: " + service.getEpr().getAddress());
        }

        // When marking an existing service as inactive try to hold on to
        // the old metadata of the service
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.