Authorisation Failure ,help

why always occur the error, this is request parameters and response : who can help me?

The request:

<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"
                >
  <EnvelopeVersion>1.0</EnvelopeVersion>
  <Header>
    <MessageDetails>
      <Class>CompanyDetails</Class>
      <Qualifier>request</Qualifier>
      <GatewayTest>true</GatewayTest>
      <TransactionID>14456553</TransactionID>
    </MessageDetails>
    <SenderDetails>
      <IDAuthentication>
        <SenderID>66664022000</SenderID>
        <Authentication>
          <Method>CHMD5</Method>
          <Value>5844207ac228989e5d47424ced48efd1</Value>
        </Authentication>
      </IDAuthentication>
      <EmailAddress>448234017@qq.com</EmailAddress>
    </SenderDetails>
  </Header>
  <GovTalkDetails>
    <Keys/>
  </GovTalkDetails>
  <Body>
    <CompanyDetailsRequest xmlns="http://xmlgw.companieshouse.gov.uk/v1-0"
                           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                           >
      <CompanyNumber>01002361</CompanyNumber>
      <GiveMortTotals>1</GiveMortTotals>
    </CompanyDetailsRequest>
  </Body>
</GovTalkMessage>

The response:

<?xml version="1.0" encoding="UTF-8" ?>
<GovTalkMessage xsi:schemaLocation="http://www.govtalk.gov.uk/schemas/govtalk/govtalkheader http://xmlgw.companieshouse.gov.uk/v1-0/schema/Egov_ch.xsd" 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" >
    <EnvelopeVersion>1.0</EnvelopeVersion>
    <Header>
        <MessageDetails>
            <Class>CompanyDetails</Class>
            <Qualifier>error</Qualifier>
            <TransactionID>14456553</TransactionID>
            <GatewayTest>true</GatewayTest>
            <GatewayTimestamp>2018-03-13T01:58:05-00:00</GatewayTimestamp>
    
        </MessageDetails>
        <SenderDetails>
            <IDAuthentication>
                <SenderID>66664022000</SenderID>
                <Authentication>
                    <Method>CHMD5</Method>
                    <Value>5844207ac228989e5d47424ced48efd1</Value>
        
                </Authentication>
      
            </IDAuthentication>
            <EmailAddress>448234017@qq.com</EmailAddress>
    
        </SenderDetails>
  
    </Header>
    <GovTalkDetails>
        <Keys/>
        <GovTalkErrors>
            <Error>
                <RaisedBy>CompanyDetails</RaisedBy>
                <Number>502</Number>
                <Type>fatal</Type>
                <Text>Authorisation Failure</Text>
                <Location></Location>
	  
            </Error>
	
        </GovTalkErrors>
  
    </GovTalkDetails>
    <Body>
  </Body>
</GovTalkMessage>

The Method element should read clear rather than CHMD5.

SDN

1 Like