Search in sources :

Example 1 with WebServicesParser

use of org.eclipse.wst.ws.internal.parser.wsil.WebServicesParser in project liferay-ide by liferay.

the class TestWebServicesAction method addLaunchOptions.

protected void addLaunchOptions(Vector launchOptions, String wsdlURL, String stateLocation, String defaultFavoritesLocation) {
    GetMonitorCommand getMonitorCmd = new GetMonitorCommand();
    getMonitorCmd.setMonitorService(true);
    getMonitorCmd.setCreate(false);
    getMonitorCmd.setWebServicesParser(new WebServicesParser());
    getMonitorCmd.setWsdlURI(wsdlURL);
    getMonitorCmd.execute(null, null);
    List endpoints = getMonitorCmd.getEndpoints();
    for (Iterator endpointsIt = endpoints.iterator(); endpointsIt.hasNext(); ) {
        launchOptions.add(new LaunchOption(LaunchOptions.WEB_SERVICE_ENDPOINT, (String) endpointsIt.next()));
    }
    launchOptions.add(new LaunchOption(LaunchOptions.WSDL_URL, wsdlURL));
    launchOptions.add(new LaunchOption(LaunchOptions.STATE_LOCATION, stateLocation));
    launchOptions.add(new LaunchOption(LaunchOptions.DEFAULT_FAVORITES_LOCATION, defaultFavoritesLocation));
}
Also used : LaunchOption(org.eclipse.wst.ws.internal.explorer.LaunchOption) GetMonitorCommand(org.eclipse.wst.ws.internal.monitor.GetMonitorCommand) Iterator(java.util.Iterator) List(java.util.List) WebServicesParser(org.eclipse.wst.ws.internal.parser.wsil.WebServicesParser)

Aggregations

Iterator (java.util.Iterator)1 List (java.util.List)1 LaunchOption (org.eclipse.wst.ws.internal.explorer.LaunchOption)1 GetMonitorCommand (org.eclipse.wst.ws.internal.monitor.GetMonitorCommand)1 WebServicesParser (org.eclipse.wst.ws.internal.parser.wsil.WebServicesParser)1