Hello, I’m trying to submit a dummy GetDocument request as follows, but I get an “XML failed schema validation” error. I’m certain the envelope is fine - is something wrong with the Body
?
(“???” substituted for secrets…)
<?xml version="1.0" encoding="UTF-8"?>
<GovTalkMessage xmlns:xsi="http://www.w3.org/2001/xsi" xsi:schemaLocation="http://www.govtalk.gov.uk/schemas/govtalk/govtalkheader http://xmlgw.companieshouse.gov.uk/v1-0/schema/Egov_ch.xsd" xmlns:govtalkheader="http://www.govtalk.gov.uk/schemas/govtalk/govtalkheader" govtalkheader:dsig="http://www.w3.org/2000/09/xmldsig" govtalkheader:gt="http://www.govtalk.gov.uk/schemas/govtalk/core" govtalkheader:xsi="http://www.w3.org/2001/XMLSchema-instance">
<EnvelopeVersion>1.0</EnvelopeVersion>
<Header>
<MessageDetails>
<Class>GetDocument</Class>
<Qualifier>request</Qualifier>
<TransactionID>1</TransactionID>
<GatewayTest>true</GatewayTest>
</MessageDetails>
<SenderDetails>
<IDAuthentication>
<SenderID>???</SenderID>
<Authentication>
<Method>clear</Method>
<Value>???</Value>
</Authentication>
</IDAuthentication>
<EmailAddress>???</EmailAddress>
</SenderDetails>
</Header>
<GovTalkDetails>
<Keys/>
</GovTalkDetails>
<Body>
<GetDocument xmlns="http:xmlgw.companieshouse.gov.uk" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlgw.companieshouse.gov.uk http://xmlgw.companieshouse.gov.uk/v2-1/schema/GetDocument-v1-1.xsd">
<DocRequestKey>123456</DocRequestKey>
</GetDocument>
</Body>
</GovTalkMessage>