Companies House input XML returns Authorisation Failure for SchemaStatus requests

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
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?

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

SDN

1 Like

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

Your SenderID needs to be supplied in MD5# format.

SDN