/DHLGuias

Project to generate a shipment request to DHL and get the airwaybill number and labels. Build with C++, XML & POCO libraries.

Primary LanguageC++

DHL Guias

This an interface to DHL's web services to generate a shipment request and its shipping label.

Development

This program is written in C++ using Visual Studio 2019

It performs this operation:

  • Open an XML file with the information of the shipment request, it must contain all the information required by the Server:

    • Billing
    • Consignee
    • Shipment Details
    • Shipper
    • Required label format (PDF, ZPL)
  • Connect to DHL Web server and POST the shipment request

  • Receive and parse the response

  • If the response is successful decode the label format and write it to a file

  • Keep a record of request-airway bill number

Prerequisites

Usage

dhlguias.exe [server] [xml file] [output directory]
Example:
dhlguias.exe http://xmlpitest-ea.dhl.com/XMLShippingServlet c:\data\requestPdf.xml c:\data\airwaybills

Sample captures

alt text alt text

Authors