sanathkd
3 years agoOccasional Contributor
Error groovy.lang.MissingMethodException: No signature of method: java.lang.String.getService()
Below is my piece of automation code
def getEnv = project.getEnvironmentByName(env);
def wsdlInterface = project.getInterfaceAt( 0 ).getName();
def wsdlService = getEnv.getService(wsdlInterface, com.eviware.soapui.config.ServiceConfig.Type.Enum.forString("SOAP"));
Getting below error when trying to get service details for my automation.
.
groovy.lang.MissingMethodException: No signature of method: java.lang.String.getService() is applicable for argument types: (String, com.eviware.soapui.config.ServiceConfig$Type$Enum) values: [rentalDetails_V1_1PortTypeSoap11, SOAP]
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:70)
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:148)