XML Namespaces in responses

Hi,

When making a CompanyDataRequest using the example XML provided the response does not contain the namespace http://xmlgw.companieshouse.gov.uk on the CompanyData object in the response. Is this intended, and if not what’s wrong with my request.

I also note in the response the XSD is defined as being at file:///home/xml/htdocs/XMLGW/schema/Egov_ch-v2-0.xsd which doesn’t seem correct, should it not be http://xmlgw.companieshouse.gov.uk/v2-1/schema/Egov_ch-v2-0.xsd?

Request XML:

<?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>request</Qualifier>
      <TransactionID>1</TransactionID>
    </MessageDetails>
    <SenderDetails>
      <IDAuthentication>
        <SenderID><!-- snip --></SenderID>
        <Authentication>
          <Method>clear</Method>
          <Value><!-- snip --></Value>
        </Authentication>
      </IDAuthentication>
      <EmailAddress><!-- snip --></EmailAddress>
    </SenderDetails>
  </Header>
  <GovTalkDetails>
    <Keys/>
  </GovTalkDetails>
  <Body>
    <CompanyDataRequest
      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/CompanyData-v3-4.xsd">
      <CompanyNumber><!-- snip --></CompanyNumber>
      <CompanyAuthenticationCode><!-- snip --></CompanyAuthenticationCode>
      <MadeUpDate>2022-01-27</MadeUpDate>
    </CompanyDataRequest>
  </Body>
</GovTalkMessage>

Response XML:

<?xml version="1.0" encoding="UTF-8" ?>
<GovTalkMessage xsi:schemaLocation="http://www.govtalk.gov.uk/CM/envelope file:///home/xml/htdocs/XMLGW/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>response</Qualifier>
      <TransactionID>1</TransactionID>
      <GatewayTimestamp>2022-01-27T19:39:12-00:00</GatewayTimestamp>
    </MessageDetails>
    <SenderDetails>
      <IDAuthentication>
        <SenderID><!-- snip --></SenderID>
        <Authentication>
          <Method>CHMD5</Method>
          <Value></Value>
        </Authentication>
      </IDAuthentication>
      <EmailAddress><!-- snip --></EmailAddress>
    </SenderDetails>
  </Header>
  <GovTalkDetails>
    <Keys/>
  </GovTalkDetails>
  <Body>
<CompanyData>
<!-- snip -->
</CompanyData>
  </Body>
</GovTalkMessage>

Thanks,
Q

Hello,

Could you contact me regarding this at xml@companieshouse.gov.uk.

Thanks
SDN