From 9f3d87a156b20295675269a87421fa6d2f8d6a29 Mon Sep 17 00:00:00 2001 From: stl-steve-moore Date: Sun, 18 Jun 2023 20:33:14 -0500 Subject: [PATCH] Jira 588: Comment out the code in SoapHeaderValidator.groovy that was looking for an Adhoc Query request. If we need this, it belongs in the validator for Adhoc Queries. --- .../plugins/SoapAssertion/SoapHeaderValidator.groovy | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xdstools2/src/main/webapp/toolkitx/testkit/plugins/SoapAssertion/SoapHeaderValidator.groovy b/xdstools2/src/main/webapp/toolkitx/testkit/plugins/SoapAssertion/SoapHeaderValidator.groovy index 457ad4fd4..833a029d8 100644 --- a/xdstools2/src/main/webapp/toolkitx/testkit/plugins/SoapAssertion/SoapHeaderValidator.groovy +++ b/xdstools2/src/main/webapp/toolkitx/testkit/plugins/SoapAssertion/SoapHeaderValidator.groovy @@ -76,13 +76,14 @@ class SoapHeaderValidator extends AbstractSoapValidater { if (sst.requestBody) { ParamParser paramsParser = new ParamParser(); SqParams params = paramsParser.parse(Util.parse_xml(sst.requestBody), true); - AdhocQueryRequestParser parser = new AdhocQueryRequestParser(Util.parse_xml(sst.requestBody)) - AdhocQueryRequest r = parser.getAdhocQueryRequest() +// AdhocQueryRequestParser parser = new AdhocQueryRequestParser(Util.parse_xml(sst.requestBody)) +// AdhocQueryRequest r = parser.getAdhocQueryRequest() RequestHeaderParser headerParser = new RequestHeaderParser(Util.parse_xml(sst.requestHeader)) RequestHeader requestHeader = headerParser.getRequestHeader() String errors = ""; if (requestMsgExpectedContent.equals("SoapHeader")) { - Validator v = new Validator().setRequest(r).setStoredQueryParams(params).setRequestHeader(requestHeader) +// Validator v = new Validator().setRequest(r).setStoredQueryParams(params).setRequestHeader(requestHeader) + Validator v = new Validator().setStoredQueryParams(params).setRequestHeader(requestHeader) switch (method) { case "single": if (!v.namedFieldCompare(key,section, XPath, attribute, comment, value)) {