mohbubur_rahman
16 years agoContributor
HTTP requests
Hi, Can you tell me if SoapUI supports HTTP requests, specifically a GET command? If so can you explain how I would do that. Regards, Moks
// create request
def getMethod = new org.apache.commons.httpclient.methods.GetMethod( url )
// get httpclient
def httpClient = com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.httpClient
// send it
httpClient.executeMethod( getMethod )
// process response
def response = getMethod.responseBodyAsString
...