Points To Note
EC-Ship / MySpeedpost API offers 2 sets of API. Most of the operations, such as, creating posting items, generating address packs, calculating postage charges, tracing items, etc. are supported by both APIs. Here are the comparisons:
Web Service RESTful SOAP
Endpoint
(Trial Environment)
https://service.hongkongpost.hk/ecshipAPI-trial https://service.hongkongpost.hk/API-trial/services
Data Format JSON XML
HTTP Method GET, POST, DELETE POST
Security Control Use Basic HTTP authentication to authenticate user identification which requires credentials as API username and base64 encoded key pairs at HTTP request header Use WS-Security UsernameToken to authenticate user identification which requires credentials as API username and base64 encoded key pairs at SOAP header
Available Delivery Services (EC-Ship - Trackable Item API)
  • Vantage (Courier)
  • Vantage (Packet)
  • e-Express Services
  • Air/Surface Registered Mail
  • Air/Surface Parcel Mail
  • Speedpost (Standard and Multipack Service)
  • Smart Post
  • Local CourierPost
  • Local Parcel
  • Local Registered Mail
  • e-Express Services
  • Air/Surface Registered Mail
  • Air/Surface Parcel Mail
  • Speedpost (Standard and Multipack Service)
  • Smart Post
  • Local CourierPost
  • Local Parcel
  • Local Registered Mail
Available Delivery Services (EC-Ship - Bulk Mailing API) N/A
  • Bulk Air Mail
  • Direct Agent Bag
  • Identical mails not less than 100 in number
  • International Periodicals
  • Lightweight Air Mail Items
  • Lightweight Surface Mail Items
  • Local Bulk Mail
  • Local Periodicals
Available Delivery Services (EC-Ship - iMail API) N/A
  • iMail
Available Delivery Services (Speedpost API) N/A
  • Standard Service
  • MultiPack Service
  • Freight Service
  • Next Flight Out Service
  • EC Post Service
  • Economy Express Service
  • Local CourierPost
Remarks N/A
  1. API web service definition files (".wsdl") for generating stub code

Testing EC-Ship Web Services with SOAP UI

Open source product Soap UI (https://www.soapui.org/) provides advanced support for testing API.