cancel
Showing results for 
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/" xmlnsSmiley Surprisedper="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