我正在为 java 使用 SOAPUI API,这是我代码的一小部分
for (Operation operation : wsdlInterface1.getOperationList()) {
operationString = WSDL + ":" + wsdlInterface1.getName() + ":" + operation.getName();
WsdlOperation wsdlOperation = (WsdlOperation) operation;
// create a new empty request for that operation
WsdlRequest request = wsdlOperation.addNewRequest("My request");
request.setTimeout("2000");
requestContent = wsdlOperation.createRequest(true);
request.setRequestContent(requestContent);
WsdlSubmit submit = (WsdlSubmit) request.submit(new WsdlSubmitContext(request), false);
现在我需要做与此类似的事情,但加载现有的外部请求文件,我在 SOAPUI api 文档中找不到帮助,欢迎任何帮助