Professional Documents
Culture Documents
Table of Contents
1 Welcome to the DHL web service for online returns............................................ 3
1.1 About the document...................................................................................................... 3
1.2 Technical overview........................................................................................................ 3
1.2.1 System requirements................................................................................................ 4
1.2.2 Access required........................................................................................................ 4
1.3 Technical background full integration into your mail order site ........................... 4
1.3.1 Benefits..................................................................................................................... 6
1.3.2 Possible variants of the solution ............................................................................... 6
1.4 Feedback and support .................................................................................................. 6
List of figures
Figure 1: Fictional example of a return screen on the website .................................................. 5
Figure 2: Example of an integrated call of a return label........................................................... 5
List of tables
Table 1: Endpoint, WSDL and Schema URLs of the live system .............................................. 8
Table 2: DHL Retoure Online web service request/call parameters ....................................... 10
Table 3: DHL Retoure Online web service response parameters ........................................... 10
To undertake the production of your own return labels for your customers
To ensure that the labels are sent to your desired address(es) and are only invoiced once they
have been used
Technically this web service consists of a single operation, which can be addressed using the
standardized SOAP protocol via HTTPS, or alternatively transferred in the body of an HTTPS
post request.
The input parameters describe the data to create the return label. The web service responds
immediately with an XML document containing the output parameters and the return label coded in
Base64.
To use the service, developers should have a good understanding of, and experience in using
SOAP. The appendix lists some helpful links.
1.3 Technical background full integration into your mail order site
As a supplier of mail order products or of supporting software, you define in which form you would
like to use the data for the DHL Retoure Online solution. A customer-friendly process of integrated
return label ordering is presented as follows:
The customer would like to send a product back and goes on to your website to call the
offered return service. (You will already have sent him the link address, for instance in the
e-mail to confirm the purchase).
After he has been identified and has selected the product to be returned from the list of
his most recent purchases, he reaches an input screen with pre-filled sender data
which corresponds to the delivery address.
If necessary, he corrects the sender data and sends the form off.
The variable data is transmitted to the DHL Retoure Online service. The recipients
address, however, is stored in advance in the DHL system.
The web service replies with an XML response, which contains the ready-to-use return
label as a PDF document (coded in Base64) and other item data (IDC, etc.).
The return label is printed off by the end customer and affixed to the parcel.
The end customer delivers his parcel (free of charge) to one of our retail outlets.
1.3.1 Benefits
This integration solution brings great benefits, both for you as a mail order company and for
your customers. For you as the operator:
The customer remains within your selling process with a consistent Look and Feel, and
other opportunities for up-selling and cross-selling
Only those parcels which are actually transported are invoiced, based on the production
data according to the current DHL billing documentation
Quick result
A user-friendly layout
Advance notification of the parcels through the Paket-Ident [parcel identity] numbers
Set-up of several accounts by your DHL contact for other possible recipient addresses of
your returns, e.g.
You are the only person who can implement the additional features.
The returns portal is set up and pre-configured after an application is made for the
DHL web service. You are free to choose the names of the returns portals when you
make the application. After this is complete, you receive an override e-mail which includes
the following
Information: (Example here without function)
For your initial registration, please use the option Request new password and state your
user name on the page:
https://amsel.dpwn.de/abholportal/gw/lp/portal/288Test/admin/AdminLogin.action
Please log in with your user name and password and complete the details to use your
portal in the Settings area.
Then set up your desired recipient address for the returns in the Addresses for return
recipients area.
The following returns portals are already pre-configured
RetourenlagerDeutschland:https://amsel.dpwn.de/abholportall/gw/lp/portal/288Test/custo
mer/RpOrder. action ?delivery=RetourenlagerDeutschland
RetoureFrankreich:https://amsel.dpwn.de/abholportall/gw/lp/portal/288Test/customer/RpO
rder. action ?delivery=RetoureFrankreich
Your web service user name is: TEST123
You can (once only) use the following link to set the password for the web service user:
https://amsel.dpwn.de/abholportal/gw/web/admin/AdminLogin.action?token=12345....
Log in to the administration area, check and save all the necessary information. If you only use
the web service, then only the return recipient address must be checked and saved.
You must set the new password for the web service separately from the admin password.
To do this, please open the link sent and change the password according to the
instructions. Your web service returns portal is then completely configured and may be
contacted.
Resource
WSDL
URL
https://amsel.dpwn.net/abholportal/gw/lp/schema/1.0/var3ws.wsdl
Endpoint
https://amsel.dpwn.net/abholportal/gw/lp/SoapConnector
After downloading these files, you can use a SOAP client service to generate business object
interfaces and network stubs and make your work considerably easier. Finally, the request is
formulated as a SOAP methods call and forwarded to the SOAP service endpoint.
2.6 Step 6: Activate the web service for online returns on your website
Checklist for activating the web service for online returns on your website:
The web service for online returns will respond synchronously to your request. If the transfer is
successful, the response message will contain the following for the return label produced:
the routing codethe national IDC and the type of IDC (LP or IDC)
the international IDC with its typethe Base64-coded label in PDF format
http://www.oasis-open.org/committees/download.php/5532/oasis-200401-wss-usernametoken-prof ile-1.0.pdf
Task
portalId
Yes
deliveryName
Yes
NoNo
customerReference
Yes
Max.
length
The URL Postfix allocated to the portal You will find your
portal ID in the override e-mail here:
(here 288 Test)
For your initial registration, please use the option Request
new password and state your user name on the page:
https://amsel.dpwn.de/abholportal/gw/lp/portal/288Test/a
d
min/AdminLogin.action
The name of the returns portal which is to receive the
returns. You will find the relevant delivery/name in the
override e-mail here: (here RetoureFrankreich [returns
France]) The following returns portals are already
configured: RetoureFrankreich:
https://amsel.dpwn.de/abholportall/gw/lp/portal/288Test/
cu
stomer/RpOrder. action ?delivery=RetoureFrankreich
Contents of the first entry field, Item reference
shipmentReference
labelFormat
Description
40
50
Sender Name 1
Sender Name 1 Sender
Yes
No No
50
50
50
Care of Name
senderContactPhone
No
20
senderStreet
Depends on
international
address
50
50
senderStreetNumber
senderPostalCode
senderCity
configuration
Depends on
international
address
configuration
Depends on
international
address
configuration
Depends on
international
address
configuration
Depends on
international
address
configuration
Description
label issueDate
routingCode
idc
idcType intIdc
national identifier
The international routing code if available
intIdcType
3.3 Malfunctions
3.3.1 Types of faults
In cases of faults, the relevant fault is stated in the body of the SOAP response in the <fault> tag.
<env:Envelope xmlns :ns4="http://docs .oasis-open.org/wss/2004/01/oasis200401-wss-wssecuritysecext-1 .0 .xsd" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns :var3bl="https : //amsel . dpwn . net/abholportal/gw/lp/schema/1 . 0/var3bl" xmlns:ns1="http://docs.oasisopen.org/wss/2004/01/oasis-200401-wsswssecurity-utility-1 .0. xsd">
<env : Header/>
<env:Body env:encodingStyle="">
<env: Fault>
<faultcode>var3bl: InvalidXml</faultcode>
<faultstring>Invalid XML</faultstring>
</env: Fault>
</env : Body>
</env : Envelope>
The following fault codes can be returned in the response:
<faultcode>
<faultstring>
Description
InternalError
Internal Error
InvalidXml NoPortal
Invalid XML
NoDivision
LockedOrDeletedDivision
The desired return recipient is The name of the return recipient provided in
blocked or deleted
the Delivery Name
was found, but it is blocked or has been
The desired return recipient deleted.
No variant 3 division
FieldLength
MandatoryField
InvalidSenderAddress
NoDeliveryAddress
In the Corporate Customers admin frontend, no recipient address has yet been
provided for the return recipient.
Therefore commissioning is impossible.