# Companies House input XML returns Authorisation Failure for SchemaStatus requests

**URL:** <https://xmlforum.companieshouse.gov.uk/t/companies-house-input-xml-returns-authorisation-failure-for-schemastatus-requests/549>\
**Category:** Incorporation\
**Created:** [August 17, 2020, 11:08am UTC](https://xmlforum.companieshouse.gov.uk/t/companies-house-input-xml-returns-authorisation-failure-for-schemastatus-requests/549 "2020-08-17T11:08:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wpl\_team](https://xmlforum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/w/df705f/32.png) [@wpl\_team](https://xmlforum.companieshouse.gov.uk/u/wpl_team)\
**Post date:** [August 17, 2020, 11:08am UTC](https://xmlforum.companieshouse.gov.uk/t/companies-house-input-xml-returns-authorisation-failure-for-schemastatus-requests/549/1 "2020-08-17T11:08:57Z")

</div>

Hello all,

We have test account has been actuated, with the following details (I omitted some symbols with \* in secure reason) :

Presenter ID: 666\*\*\*\*\*  
Presenter Authentication Value: R4R\*\*\*\*\*\*  
Test Package Number: 0012  
Email address roman.bihun@\*\*\*\*\*\*.com

When I use  
[https://xmlgw.companieshouse.gov.uk/v1-0/xmlgw/Gateway](https://xmlgw.companieshouse.gov.uk/v1-0/xmlgw/Gateway)  
for post submission to provided endpoints from SchemaStatus I get Authorisation Failure Error.

For example POST request to /Gateway with XML body below:

```
<GovTalkMessage xmlns="http://www.govtalk.gov.uk/CM/envelope" 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/CM/envelope http://xmlgw.companieshouse.gov.uk/v2-1/schema/Egov_ch-v2-0.xsd">
   <EnvelopeVersion>1.0</EnvelopeVersion>
   <Header>
      <MessageDetails>
         <Class>CompanyDataRequest</Class>
         <Qualifier>request</Qualifier>
         <TransactionID>1</TransactionID>
         <GatewayTest>1</GatewayTest>
      </MessageDetails>
      <SenderDetails>
         <IDAuthentication>
            <SenderID>666 ********* </SenderID>
            <Authentication>
               <Method>clear</Method>
               <Value>Presenter Authentication Value encoded with MD5</Value>
            </Authentication>
         </IDAuthentication>
         <EmailAddress>roman.bihun@ ******.com</EmailAddress>
      </SenderDetails>
   </Header>
   <GovTalkDetails>
      <Keys />
   </GovTalkDetails>
   <Body>
      <CompanyDataRequest xmlns="http://xmlgw.companieshouse.gov.uk" xsi:schemaLocation="http://xmlgw.companieshouse.gov.uk http://xmlgw.companieshouse.gov.uk/v2-1/schema/CompanyData-v3-1.xsd">
         <CompanyNumber>01234567</CompanyNumber>
         <CompanyAuthenticationCode>AUTH01</CompanyAuthenticationCode>
         <MadeUpDate>2016-05-13</MadeUpDate>
      </CompanyDataRequest>
   </Body>
</GovTalkMessage>

```

and we get response:

```
<?xml version="1.0" encoding="UTF-8" ?>
<GovTalkMessage xsi:schemaLocation="http://www.govtalk.gov.uk/CM/envelope http://xmlgw.companieshouse.gov.uk/v2-1/schema/Egov_ch-v2-0.xsd" xmlns="http://www.govtalk.gov.uk/CM/envelope" 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" >
    <EnvelopeVersion>1.0</EnvelopeVersion>
    <Header>
        <MessageDetails>
            <Class>CompanyDataRequest</Class>
            <Qualifier>error</Qualifier>
            <TransactionID>1</TransactionID>
            <GatewayTest>1</GatewayTest>
            <GatewayTimestamp>2020-08-17T11:57:57-00:00</GatewayTimestamp>
        </MessageDetails>
        <SenderDetails>
                <IDAuthentication>
                <SenderID>666 ********* </SenderID>
                <Authentication>
                   <Method>clear</Method>
                   <Value>Presenter Authentication Value encoded with MD5</Value>
                </Authentication>
             </IDAuthentication>
             <EmailAddress>roman.bihun@ ******.com</EmailAddress>
        </SenderDetails>
    </Header>
    <GovTalkDetails>
        <Keys/>
        <GovTalkErrors>
            <Error>
                <RaisedBy>CompanyDataRequest</RaisedBy>
                <Number>502</Number>
                <Type>fatal</Type>
                <Text>Authorisation Failure</Text>
                <Location></Location>
            </Error>
        </GovTalkErrors>
    </GovTalkDetails>
    <Body>
  </Body>
</GovTalkMessage>

```

Anybody can help me please?  
Maybe the issue in my requested method or incorrect body XML?

---

<div class="post-metadata">

**Author:** ![snicholas](https://xmlforum.companieshouse.gov.uk/user_avatar/xmlforum.companieshouse.gov.uk/snicholas/32/81_2.png) [@snicholas](https://xmlforum.companieshouse.gov.uk/u/snicholas)\
**Post date:** [August 18, 2020, 6:56am UTC](https://xmlforum.companieshouse.gov.uk/t/companies-house-input-xml-returns-authorisation-failure-for-schemastatus-requests/549/2 "2020-08-18T06:56:39Z")

</div>

Can you please post your FULL XML submission and response test data to [snicholas@companieshouse.gov.uk](mailto:snicholas@companieshouse.gov.uk) - I can see a few issues with the above, but need to see the full data.

SDN

---

<div class="post-metadata">

**Author:** ![wpl\_team](https://xmlforum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/w/df705f/32.png) [@wpl\_team](https://xmlforum.companieshouse.gov.uk/u/wpl_team)\
**Post date:** [August 18, 2020, 7:38am UTC](https://xmlforum.companieshouse.gov.uk/t/companies-house-input-xml-returns-authorisation-failure-for-schemastatus-requests/549/3 "2020-08-18T07:38:58Z")

</div>

Thanks for response,  
I’ve just mailed you with full XML

---

<div class="post-metadata">

**Author:** ![snicholas](https://xmlforum.companieshouse.gov.uk/user_avatar/xmlforum.companieshouse.gov.uk/snicholas/32/81_2.png) [@snicholas](https://xmlforum.companieshouse.gov.uk/u/snicholas)\
**Post date:** [August 18, 2020, 8:18am UTC](https://xmlforum.companieshouse.gov.uk/t/companies-house-input-xml-returns-authorisation-failure-for-schemastatus-requests/549/4 "2020-08-18T08:18:37Z")

</div>

Your SenderID needs to be supplied in MD5# format.

SDN
