XML file for Company Incorporation

Good morning.
We are trying to create a working test request to open a company.
Earlier we sent a request like this:

<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>CompanyIncorporation</Class>
            <Qualifier>request</Qualifier>
            <TransactionID>1</TransactionID>
            <GatewayTest>1</GatewayTest>
        </MessageDetails>
        <SenderDetails>
            <IDAuthentication>
                <SenderID>base64</SenderID>
                <Authentication>
                    <Method>clear</Method>
                    <Value>base64</Value>
                </Authentication>
            </IDAuthentication>
        </SenderDetails>
    </Header>
    <GovTalkDetails>
        <Keys/>
    </GovTalkDetails>
    <Body>
        <FormSubmission xmlns="http://xmlgw.companieshouse.gov.uk/Header" xmlns:bs="http://xmlgw.companieshouse.gov.uk" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlgw.companieshouse.gov.uk/Header http://xmlgw.companieshouse.gov.uk/v2-1/schema/forms/FormSubmission-v2-9.xsd">
            <FormHeader>
                <CompanyNumber>00000000</CompanyNumber>
                <CompanyName>TEST MY COMANY NEW 2</CompanyName>
                <PackageReference>0000</PackageReference>
                <FormIdentifier>CompanyIncorporation</FormIdentifier>
                <SubmissionNumber>INCb11</SubmissionNumber>
                <ContactName>John Johan</ContactName>
                <ContactNumber>044412345678</ContactNumber>
            </FormHeader>
            <DateSigned>2021-04-10</DateSigned>
            <Form>
                <CompanyIncorporation xmlns="http://xmlgw.companieshouse.gov.uk" xsi:schemaLocation="http://xmlgw.companieshouse.gov.uk http://xmlgw.companieshouse.gov.uk/v1-0/schema/forms/CompanyIncorporation-v3-6.xsd">
                    <CompanyType>BYSHR</CompanyType>
                    <CountryOfIncorporation>EW</CountryOfIncorporation>
                    <RegisteredOfficeAddress>
                        <Premise>1</Premise>
                        <PostTown>High Street</PostTown>
                        <Country>GBR</Country>
                        <Postcode>ZB2 2ZZ</Postcode>
                    </RegisteredOfficeAddress>
                    <DataMemorandum>true</DataMemorandum>
                    <Articles>BYSHRMODEL</Articles>
                    <Appointment>
                        <ConsentToAct>true</ConsentToAct>
                        <Director>
                            <Person>
                                <Forename>Fred</Forename>
                                <Surname>Jones</Surname>
                                <ServiceAddress>
                                    <SameAsRegisteredOffice>true</SameAsRegisteredOffice>
                                </ServiceAddress>
                                <DOB>1992-01-01</DOB>
                                <Nationality>British</Nationality>
                                <Occupation>Director</Occupation>
                                <CountryOfResidence>WALES</CountryOfResidence>
                                <ResidentialAddress>
                                    <Address>
                                        <Premise>1</Premise>
                                        <Street>High Street</Street>
                                        <PostTown>Anywhere</PostTown>
                                        <Country>GB-WLS</Country>
                                        <Postcode>QP1 1XY</Postcode>
                                    </Address>
                                </ResidentialAddress>
                            </Person>
                        </Director>
                    </Appointment>
                    <Appointment>
                        <ConsentToAct>true</ConsentToAct>
                        <Secretary>
                            <Person>
                                <Forename>Harry</Forename>
                                <Surname>Smith</Surname>
                                <ServiceAddress>
                                    <Address>
                                        <Premise>1</Premise>
                                        <Street>No Street</Street>
                                        <PostTown>Nowhere</PostTown>
                                        <Country>CAN</Country>
                                    </Address>
                                </ServiceAddress>
                            </Person>
                        </Secretary>
                    </Appointment>
                    <PSCs>
                        <PSC>
                            <PSCNotification>
                                <Individual>
                                    <Forename>John</Forename>
                                    <Surname>Smith</Surname>
                                    <ServiceAddress>
                                        <SameAsRegisteredOffice>true</SameAsRegisteredOffice>
                                    </ServiceAddress>
                                    <DOB>1900-01-01</DOB>
                                    <Nationality>British</Nationality>
                                    <CountryOfResidence>United Kingdom</CountryOfResidence>
                                    <ResidentialAddress>
                                        <Address>
                                            <Premise>742</Premise>
                                            <Street>Long Street</Street>
                                            <PostTown>Someplace</PostTown>
                                            <Country>GB-WLS</Country>
                                            <Postcode>QP12 0NN</Postcode>
                                        </Address>
                                    </ResidentialAddress>
                                    <ConsentStatement>true</ConsentStatement>
                                </Individual>
                                <NatureOfControls>
                                    <NatureOfControl>OWNERSHIPOFSHARES_50TO75PERCENT</NatureOfControl>
                                </NatureOfControls>
                            </PSCNotification>
                        </PSC>
                        <PSC>
                            <PSCNotification>
                                <Individual>
                                    <Forename>John</Forename>
                                    <Surname>Smith</Surname>
                                    <ServiceAddress>
                                        <SameAsRegisteredOffice>true</SameAsRegisteredOffice>
                                    </ServiceAddress>
                                    <DOB>1900-01-01</DOB>
                                    <Nationality>British</Nationality>
                                    <CountryOfResidence>United Kingdom</CountryOfResidence>
                                    <ResidentialAddress>
                                        <Address>
                                            <Premise>742</Premise>
                                            <Street>Long Street</Street>
                                            <PostTown>Someplace</PostTown>
                                            <Country>GB-WLS</Country>
                                            <Postcode>QP12 0NN</Postcode>
                                        </Address>
                                    </ResidentialAddress>
                                    <ConsentStatement>true</ConsentStatement>
                                </Individual>
                                <NatureOfControls>
                                    <NatureOfControl>OWNERSHIPOFSHARES_25TO50PERCENT</NatureOfControl>
                                </NatureOfControls>
                            </PSCNotification>
                        </PSC>
                    </PSCs>
                    <StatementOfCapital>
                        <Capital>
                            <TotalAmountUnpaid>10</TotalAmountUnpaid>
                            <TotalNumberOfIssuedShares>100</TotalNumberOfIssuedShares>
                            <ShareCurrency>GBP</ShareCurrency>
                            <TotalAggregateNominalValue>100</TotalAggregateNominalValue>
                            <Shares>
                                <ShareClass>Ordinary</ShareClass>
                                <PrescribedParticulars>None</PrescribedParticulars>
                                <NumShares>100</NumShares>
                                <AggregateNominalValue>100</AggregateNominalValue>
                            </Shares>
                        </Capital>
                    </StatementOfCapital>
                    <Subscribers>
                        <Person>
                            <Forename>Fred</Forename>
                            <Surname>Jones</Surname>
                        </Person>
                        <Address>
                            <Premise>1</Premise>
                            <Street>Fred Street</Street>
                            <PostTown>Fred Town</PostTown>
                            <Country>GBR</Country>
                            <Postcode>QP12 0NN</Postcode>
                        </Address>
                        <Authentication>
                            <PersonalAttribute>BIRTOWN</PersonalAttribute>
                            <PersonalData>SCO</PersonalData>
                        </Authentication>
                        <Authentication>
                            <PersonalAttribute>TEL</PersonalAttribute>
                            <PersonalData>012</PersonalData>
                        </Authentication>
                        <Authentication>
                            <PersonalAttribute>MUM</PersonalAttribute>
                            <PersonalData>IVY</PersonalData>
                        </Authentication>
                        <Shares>
                            <ShareClass>Ordinary</ShareClass>
                            <NumShares>100</NumShares>
                            <AmountPaidDuePerShare>0.99</AmountPaidDuePerShare>
                            <AmountUnpaidPerShare>0.01</AmountUnpaidPerShare>
                            <ShareCurrency>GBP</ShareCurrency>
                            <ShareValue>1</ShareValue>
                        </Shares>
                        <MemorandumStatement>Each subscriber to this memorandum of association wishes to form a company under the Companies Act 2006 and agrees to become a member of the company and to take at least one share.</MemorandumStatement>
                    </Subscribers>
                    <Authoriser>
                        <Agent>
                            <Corporate>
                                <Forename>Fred</Forename>
                                <Surname>Jones</Surname>
                                <CorporateName>Jones and Co</CorporateName>
                            </Corporate>
                            <Authentication>
                                <PersonalAttribute>BIRTOWN</PersonalAttribute>
                                <PersonalData>CAR</PersonalData>
                            </Authentication>
                            <Authentication>
                                <PersonalAttribute>TEL</PersonalAttribute>
                                <PersonalData>012</PersonalData>
                            </Authentication>
                            <Authentication>
                                <PersonalAttribute>PASSNO</PersonalAttribute>
                                <PersonalData>321</PersonalData>
                            </Authentication>
                            <Address>
                                <Premise>1</Premise>
                                <Street>MOO STREET</Street>
                                <PostTown>Cardiff</PostTown>
                                <Country>GB-WLS</Country>
                            </Address>
                        </Agent>
                    </Authoriser>
                    <SameDay>false</SameDay>
                    <SameName>false</SameName>
                    <NameAuthorisation>false</NameAuthorisation>
                    <RejectReference>XYZ12345</RejectReference>
                    <SICCodes>
                        <SICCode>12345</SICCode>
                        <SICCode>23456</SICCode>
                        <SICCode>34567</SICCode>
                        <SICCode>45678</SICCode>
                    </SICCodes>
                </CompanyIncorporation>
            </Form>
            <Document>
                <Data>
                  BASE64
                </Data>
                <Date>2016-05-23</Date>
                <Filename>Accounts.xml</Filename>
                <ContentType>application/vnd.hp-pcl</ContentType>
                <Category>ACCOUNTS</Category>
            </Document>
        </FormSubmission>
    </Body>
</GovTalkMessage>

To which the answer was received: “You are getting very confused now. Your latest test submission is part Company Formation and part Accounts.”

Can you help us with generating the correct XML file?

All you need is contained in these schemas:

http://xmlgw.companieshouse.gov.uk/v1-0/schema/forms/CompanyIncorporation-v3-6.xsd
http://xmlgw.companieshouse.gov.uk/examples/Incorporation%20with%20data%20memorandum%20for%20Limited%20by%20Shares.xml

SDN

Thanks @snicholas

Could I ask about the registered address in particular? Are all the fields mandatory

<RegisteredOfficeAddress>
<Premise>1</Premise>
<Street>Any Road</Street>
<Thoroughfare>Area</Thoroughfare>
<PostTown>Anytown</PostTown>
<Country>GBR</Country>
<Postcode>ZB2 2ZZ</Postcode>
</RegisteredOfficeAddress>  

Thanks

Hi,

As you can see below from the base types, only premise, street, post town and country are mandatory – however, we strongly advise that all are completed as an address deemed to be incomplete will result in a filing rejection.

xs:complexType name=“AnyAddressBaseType”
xs:sequence
xs:element ref=“Premise”/
xs:element ref=“Street”/
xs:element ref=“Thoroughfare” minOccurs=“0”/
xs:element ref=“PostTown”/
xs:element ref=“County” minOccurs=“0”/
xs:element ref=“Country”/
xs:element ref=“Postcode” minOccurs=“0”/

SDN

1 Like

@snicholas Many thanks for the info. Will check the baseTypes-v3-5.xsd :thumbsup:

Hey,

I have checked the baseTypes-v3-5.xsd expecially the ones with address types.

Example: In the incorporation schema, there is

<xs:element name="RegisteredOfficeAddress" type="UKAddressType"/>

In the baseTypes-v3-5.xsd, there is UKAddressType and AnyAddressBaseType

<xs:complexType name="UKAddressType">
<xs:sequence>
<xs:element ref="Premise"/>
<xs:element ref="Street" minOccurs="0"/>
<xs:element ref="Thoroughfare" minOccurs="0"/>
<xs:element ref="PostTown"/>
<xs:element ref="County" minOccurs="0"/>
<xs:element name="Country">
<xs:annotation>
<xs:documentation>UK country code.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="GB-ENG"/>
<xs:enumeration value="GB-WLS"/>
<xs:enumeration value="GB-SCT"/>
<xs:enumeration value="GB-NIR"/>
<xs:enumeration value="GBR"/>
<xs:enumeration value="UNDEF"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element ref="Postcode" minOccurs="0"/>
<xs:element ref="CareofName" minOccurs="0"/>
<xs:element ref="PoBox" minOccurs="0"/>
</xs:sequence>
</xs:complexType>

<xs:complexType name="AnyAddressBaseType">
<xs:sequence>
<xs:element ref="Premise"/>
<xs:element ref="Street"/>
<xs:element ref="Thoroughfare" minOccurs="0"/>
<xs:element ref="PostTown"/>
<xs:element ref="County" minOccurs="0"/>
<xs:element ref="Country"/>
<xs:element ref="Postcode" minOccurs="0"/>
</xs:sequence>
</xs:complexType>

My question is - Example: If we collect information at our end as one line address, postcode, country - are we okay passing in the one line address for both premise and street as part of AnyAddressBaseType? How will that we handled for any correspondence (letters)? Will this lead to both these lines being printed?

Thanks

Hello,

Apologies for the delay in responding.

I am not sure I fully understand your query, but will respond as best I can.

There are limits to how many characters you can use per element line, if you use anymore, the submission will be rejected.

You also need to ensure all the mandatory address lines are completed - if they are not, you will again face submission rejections.

Does this help?

SDN

1 Like