Valid GetDocument Request for Company House XML Gateway Service

Hi All,

I am developing a client application to fetch details from Company House XML Gateway,and I have successfully tested two flows : Name Search and Company Details flow. But I am unable to workout a proper request for Get Document flow.

My request gives error : Method CV must be provided. If anyone has any sample ‘Get Document’ request, please share it. That would be of immense help.

I have already tried the sample given in Company House XML Gateway Service, but it didn’t work.

Thanks in advance.

   <?xml version="1.0" encoding="UTF-8"?>
    <GovTalkMessage xmlns="http://www.govtalk.gov.uk/schemas/govtalk/govtalkheader" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:gt="http://www.govtalk.gov.uk/schemas/govtalk/core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.govtalk.gov.uk/schemas/govtalk/govtalkheader">
        <EnvelopeVersion>1.0</EnvelopeVersion>
        <Header>
            <MessageDetails>
                <Class>GetDocument</Class>
                <Qualifier>request</Qualifier>
                <TransactionID>XXXTRANSACTIONIDXXX</TransactionID>
            </MessageDetails>
            <SenderDetails>
                <IDAuthentication>
                    <SenderID>XXXSENDERIDXXX</SenderID>
                    <Authentication>
                        <Method>MD5SIGN</Method>
                        <Value>XXXHASHXXX</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://xmlgwcompanieshouse.gov.uk/v1-1/schema/forms/DocumentRequest-v1-1.xsd">
                <DocRequestKey>XXXXXX</DocRequestKey>
            </GetDocument>
    
        </Body>
    </GovTalkMessage>

As far as I’m aware GetDocument is only for requesting Certificates after Incorporation. It’s a different process (DocumentRequest) if you’re trying to get documents from a company’s filing history.

I can’t speak for your specific error, but in general one of the biggest gotchas with these requests is making sure the CLASS is correct in the envelope.

Might be able to offer more help if you post the call that is generating the error for you (or the link to the sample that isn’t working as I couldn’t find it!)

Hello,

Can I just advise that Name Search and Company Details are part of our XML Gateway OUTPUT service.

However, Get Document is a “poling response” feature of our XML INPUT filing service, and the test credentials for OUTPUT woild not work with this.

Can you advise what you are trying to do please?

SDN