Forum Discussion
SmartBear_Suppo
Alumni
15 years agoThank you for the clarification. Strictly speaking, it's called Resources in REST and Operations in SOAP.
Anyway, you can access both operations and resources like this (the example below can be applied to the Sample Project):
Hope this is what you were looking for!
Henrik
SmartBear Stockholm
Anyway, you can access both operations and resources like this (the example below can be applied to the Sample Project):
import com.eviware.soapui.impl.wsdl.WsdlInterface
myInterface = (WsdlInterface) testRunner.testCase.testSuite.project.getInterfaceByName("SampleServiceSoapBinding")
myOperation = myInterface.getOperationByName("login")
myRequest = myOperation.getRequestByName("Request 1")
Hope this is what you were looking for!
Henrik
SmartBear Stockholm