Separate Confirming call for combilabel product code example

Information

When separating confirming and labelling for combilabel product codes, some information from the labelling response is needed in the Confirming request. The following fields are needed from the labelling response:

  • Barcode
  • DownPartnerBarcode
  • DownPartnerID
  • ProductCodeDelivery

Example

For example, consider the following Labelling response for a combilabel product code:

For example, consider the following Labelling response for a combilabel 
product code:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Body>
        <GenerateLabelResponse xmlns="http://postnl.nl/cif/services/LabellingWebService/"
xmlns:a="http://postnl.nl/cif/domain/LabellingWebService/"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <a:MergedLabels i:nil="true"/>
            <a:ResponseShipments>
                <a:ResponseShipment>
                    <a:Barcode>3SDEVC0014950</a:Barcode>
                    <a:DownPartnerBarcode>1521870000099414901800</a:DownPartnerBarcode>
                    <a:DownPartnerID>EURODIS/113256/DNP</a:DownPartnerID>
                    <a:DownPartnerLocation i:nil="true"/>
                    <a:Labels>
                        <a:Label>
                            <a:Content>[Base64 string]</a:Content>
                            <a:Contenttype i:nil="true"/>
                            <a:Labeltype>Label</a:Labeltype>
                        </a:Label>
                    </a:Labels>
                    <a:ProductCodeDelivery>4950</a:ProductCodeDelivery>
                    <a:Warnings i:nil="true"/>
                </a:ResponseShipment>
            </a:ResponseShipments>
        </GenerateLabelResponse>
    </s:Body>
</s:Envelope>

Barcode, DownPartnerBarcode, DownPartnerID and ProductCodeDelivery need to be 
present in the Confirming request. The Confirming request must be like this:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:con="http://postnl.nl/cif/services/ConfirmingWebService/" 
xmlns:tpp="http://postnl.nl/cif/domain/ConfirmingWebService/">
    <soapenv:Body>
        <con:Confirming>
            <tpp:Customer>
                <tpp:Address>
                    <tpp:AddressType>02</tpp:AddressType>
                    <tpp:City>Vianen</tpp:City>
                    <tpp:CompanyName>PostNL</tpp:CompanyName>
                    <tpp:Countrycode>NL</tpp:Countrycode>
                    <tpp:FirstName>Jose</tpp:FirstName>
                    <tpp:HouseNr>1</tpp:HouseNr>
                    <tpp:HouseNrExt>A</tpp:HouseNrExt>
                    <tpp:Name>Franssen</tpp:Name>
                    <tpp:Street>Lage Biezenweg</tpp:Street>
                    <tpp:Zipcode>4131LV</tpp:Zipcode>
                </tpp:Address>
                <tpp:CollectionLocation>123456</tpp:CollectionLocation>
                <tpp:CustomerCode>DEVC</tpp:CustomerCode>
                <tpp:CustomerNumber>11223344</tpp:CustomerNumber>
            </tpp:Customer>
            <tpp:Message>
                <tpp:MessageID>1</tpp:MessageID>
                <tpp:MessageTimeStamp>29-06-2016 12:00:00</tpp:MessageTimeStamp>
            </tpp:Message>
            <tpp:Shipments>
                <tpp:Shipment>
                    <tpp:Addresses>
                        <tpp:Address>
                            <tpp:AddressType>01</tpp:AddressType>
                            <tpp:City>Hamburg</tpp:City>
                            <tpp:CompanyName>PostNL</tpp:CompanyName>
                            <tpp:Countrycode>DE</tpp:Countrycode>
                            <tpp:FirstName>Thomas</tpp:FirstName>
                            <tpp:HouseNr>2</tpp:HouseNr>
                            <tpp:Name>Berge</tpp:Name>
                            <tpp:Street>Kehrwieder</tpp:Street>
                            <tpp:Zipcode>20457</tpp:Zipcode>
                        </tpp:Address>
                    </tpp:Addresses>
                    <tpp:Barcode>3SDEVC0014950</tpp:Barcode>
                    <tpp:Contacts>
                        <tpp:Contact>
                            <tpp:ContactType>01</tpp:ContactType>
                            <tpp:Email>receiver@gmail.com</tpp:Email>
                            <tpp:SMSNr>0612345678</tpp:SMSNr>
                        </tpp:Contact>
                    </tpp:Contacts>
                    <tpp:Dimension>
                        <tpp:Weight>4300</tpp:Weight>
                    </tpp:Dimension>
                    <tpp:DownPartnerBarcode>1521870000099414901800</tpp:DownPartnerBarcode>
                    <tpp:DownPartnerID>EURODIS/113256/DNP</tpp:DownPartnerID>
                    <tpp:ProductCodeDelivery>4950</tpp:ProductCodeDelivery>
                </tpp:Shipment>
            </tpp:Shipments>
        </con:Confirming>
    </soapenv:Body>
</soapenv:Envelope>