search cancel

Unable to validate Request SOAP/XML against WSDL using XML validation Assertion

book

Article ID: 40487

calendar_today

Updated On:

Products

CA Application Test CA Continuous Application Insight (PathFinder)

Issue/Introduction

  We are not able to validate request XML which is of SOAP protocol against web service WSDL. But same XML is validated successfully in SOAPUI against same version of WSDL.

Cause

    Noticed from ITR execution properties that, assertion is throwing below error while validating schema details. 

       The assertion of type "XML Validation" had outcome: 

       line 1, column 69 : cvc-elt.1.a: Cannot find the declaration of element 'env:Envelope'.

Environment

Release: Devtest supported versions

Resolution

Resolution/Workaround:

Since schema for envelope has not included by default by xml validation assertion, need to add this schema manually. To do this, add key and value pair in Schema section as "http://schemas.xmlsoap.org/soap/envelope/". This will add schema validation for envelop as well along with WSDL.

Ensure XML Validation Schemas tab