<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <ValidateXmlAgainstSchemaResponse xmlns="http://someschema.org/"> <ValidateXmlAgainstSchemaResult> <Message>One error found</Message> <ErrorCount>1</ErrorCount> <ValidationErrors> <ValidationError> <ErrorMessage>Errortext</ErrorMessage> </ValidationError> </ValidationErrors> </ValidateXmlAgainstSchemaResult> </ValidateXmlAgainstSchemaResponse> </soap:Body> </soap:Envelope>
This message is for C/AL programmers: This Automation variable has not been instantiated. You can instantiate it by either creating or assigning it.
l_xmlReplyDoc.setProperty('SelectionNamespaces', 'xmlns:xsd="http://www.w3.org/2001/XMLSchema" '+ 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+ 'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" '+ 'xmlns:xxxx="http://someschema.org"');
EVALUATE(errorCount, l_xmlReplyDoc.selectSingleNode( './soap:Envelope/soap:Body/xxxx:ValidateXmlAgainstSchemaResponse/xxxx:ValidateXmlAgainstSchemaResult/xxxx:ErrorCount').text);