cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Web services fail to validate XML - Schema Validation Error: cvc-elt.1

Web services fail to validate XML - Schema Validation Error: cvc-elt.1

Summary

Web services fail to validate XML - Schema Validation Error: cvc-elt.1

Symptoms

SOAP requests to the Flexnet Operations web services fail with the error message:

Schema Validation Error: cvc-elt.1

For example, the following SOAP request results in the error:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:oper="urn:com.macrovision:flexnet/operations">
<soapenv:Header/>
<soapenv:Body>
<oper:getUserPermissionsRequest>
<oper:userName>admin</oper:userName>
</oper:getUserPermissionsRequest>
</soapenv:Body>
</soapenv:Envelope>

Results in the following error:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<getUserPermissionsResponse xmlns="urn:com.macrovision:flexnet/operations">
<statusInfo>
<status>FAILURE</status>
<reason>Schema Validation Error: cvc-elt.1: Cannot find the declaration of element 'ns1:getUserPermissionsRequest'.</reason>
</statusInfo>
</getUserPermissionsResponse>
</soapenv:Body>
</soapenv:Envelope>

Cause

The cause of this error seems to be due to the validation that is done on the Axis level as well as implicitly by FlexNet Operations in the 2016 R3 release. Previously if webservices validation was enabled in FNO then there would be no error.

Resolution

To resolve this issue, untick the web service validation option under configure > System Configuration > Validators.
Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Nov 08, 2018 06:34 PM
Updated by: