GetDocument Request

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>

UPDATE -

I’ve replace the schema url with http://xmlgw.companieshouse.gov.uk/v1-0/schema/forms/GetDocument-v1-1.xsd. I now get the following error:

<GovTalkErrors>
	  <Error>
	    <RaisedBy>GetDocument</RaisedBy>
	    <Number>9999</Number>
	    <Type>fatal</Type>
	    <Text>The serialised data cannot be deserialised</Text>
	    <Location></Location>
	  </Error>
	</GovTalkErrors>

Hi Misrab,

You will not be able to properly send a “Get Document Request” in test unless the status of the original submission is showing as “success” or “accepted” (this will then create the encoded data string that must be included in the “Get Document Request”). As I explained to you via email yesterday, please submit some fresh tests, each with a unique submission number, and I will have a look at them for you.

SDN