Forum Discussion

lmcadory's avatar
lmcadory
Occasional Contributor
15 years ago

Help Me: Creating a Groovy Script for Representation data

Can someone help me figure out how to get the information returned in the response Representation tab??? I am trying to use RestRepresentation but that does work:

import com.eviware.soapui.impl.rest.RestRepresentation

x = RestRepresentation.getMediaType()

log.info(x)


This gives me a:

No Signature of Method: static com.eviware.soapui.impl.rest.RestRepresentation.getMediaType()
is applicable for argument types: () values: [] Possible solutions: getMediaType(), getMediaType(java.lang.String), getSchemaType(), getType()
No RepliesBe the first to reply