Forum Discussion

shshlomy's avatar
shshlomy
New Contributor
15 years ago

validation on empty XMl response

hi,
when the request for my server is success i don't get any XML response
how ever in the raw http format i do get a 202 response (attached)
is there any way to validate the http response thru the soap ui?

HTTP/1.1 202 Accepted
Cache-Control: private
Content-Type: text/xml; charset=UTF-8
Server: Oracle-Application-Server-10g/10.1.2.2.0 Oracle-HTTP-Server OracleAS-Web-Cache-10g/10.1.2.2.0 (N;ecid=80165095591,0)
Content-Length: 0
Date: Thu, 17 Dec 2009 19:59:14 GMT

2 Replies

  • shshlomy's avatar
    shshlomy
    New Contributor
    any idea how to use the  messageExchange.responseHeaders
    for geting a 202 respondse?
  • Try this to get the HTTP status code from RAW response

    actErrorCode  = testRunner.testCase.testSteps["Request Test Step"].testRequest.response.responseHeaders["#status#"]

    Where actErrorCode is a user defined variable
    and "Request Test Step" is the name of the Request Test step within the Soap UI test case.

    Hope this works