Forum Discussion
nmrao
2 years agoChampion Level 3
You can try below sample java to generate the soap ui project. follow the comments inline.
import com.eviware.soapui.impl.WsdlProject;
import com.eviware.soapui.impl.wsdl.support.wsdl.WsdlImporter;
public class SoapUIProjectCreator {
public static void main(String[] args) {
// Specify the path to your SoapUI project file
String projectFilePath = "/path/to/your/project.xml";
// Specify the path to your YAML file
String yamlFilePath = "/path/to/your/file.yaml";
// Create a new SoapUI project
WsdlProject project = new WsdlProject();
try {
// Import the YAML file
WsdlImporter.importWsdl(project, yamlFilePath);
// Save the project to a file
project.saveAs(projectFilePath);
System.out.println("Project created and YAML file imported successfully!");
} catch (Exception e) {
e.printStackTrace();
}
}
}
Related Content
- 9 years ago
Recent Discussions
- 5 hours ago
- 17 days ago