Develop and Test
Points To Note
EC-Ship / My Speedpost 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 - Mail Posting API) |
|
|
Available Delivery Services (EC-Ship - Bulk Mailing API) | N/A |
|
Available Delivery Services (My Speedpost - Mail Posting API) | N/A |
|
Available Delivery Services (EC-Ship / My Speedpost - Mail Tracking API) |
EC-Ship Services
My Speedpost Services |
N/A |
Remarks | N/A |
|
Testing EC-Ship Web Services with SOAP UI
Open source product Soap UI (https://www.soapui.org/) provides advanced support for testing API.