@Override public void perform(WsdlProject wsdlProject, Object o) { String urlString = "D:\\Echo-API.raml"; urlString = UISupport.getDialogs().prompt("Input URL", "Input URL to Raml definition", urlString); try { String expUrl = PathUtils.expandPath(urlString, wsdlProject); // if this is a file - convert it to a file URL if (new File(expUrl).exists()) expUrl = new File(expUrl).toURI().toURL().toString(); RamlImporter importer = new RamlImporter(wsdlProject); importer.setCreateSampleRequests(true); RestService restService = importer.importRaml(expUrl); } catch (Throwable e) { SoapUI.logError(e); UISupport.showErrorMessage(e.getMessage()); } }