Rectangle 27 0

web services Call an async fire and forget SOAP webservice with JMeter?


// It is not possible to access the actual HTTP response code, so we assume no data means failure
            if (length > 0){
                result.setSuccessful(true);
                result.setResponseCodeOK();
                result.setResponseMessageOK();
            } else {
                result.setSuccessful(false);
                result.setResponseCode("999");
                result.setResponseMessage("Empty response");
            }

// It is not possible to access the actual HTTP response code, so we assume no data means failure

Another solution is to use HTTP Sampler with Raw Post Body and test only response code with assertion.

In code of WebService Soap sampler it is said that:

So you don't have a solution with this sampler.

Note