Hello,
DHL also offers its own client for generating the labels
dhl pollingclient
it periodically checks for/reads a simple
csv file with the address and parcel data (sizes, weight (customs codes for foreign shipments))
and returns the file with the tracking number so it can be read into your system
regards
hannes