Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
Software Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Beginner

Updated on 2024-07-03 GMT+08:00

Service Process

The following figure shows the general custom-made software development process for the SMS service.

  1. Perform steps described in Development Preparation to obtain the data required for calling the SMS API.
  2. Follow instructs in the Code Examples to call the SMS API and initiate an SMS request.
  3. View the received response and check whether the request succeeds.
    • Yes: Go to 4.
    • No: Follow instructions in API Error Codes to rectify the fault and repeat 2.
  4. Check whether the request contains the statusCallback parameter. The statusCallback parameter specifies the callback address to which the status report is sent.
    • Yes: Check the received status report.
    • No: Log in to the Message & SMS console and choose Send Details. On the displayed page, view the sending results and status codes.
  5. Check whether the SMS message is successfully sent based on the status report.
    • Yes: No further operation is required.
    • No: Follow instructions in SMS Status Error Codes to rectify the fault and repeat 2.

Commissioning Guide

During the custom-made software development process for the SMS service, developers need to pay attention to the following service commissioning points:

  • Check 1: Before initiating an SMS sending request, the system checks the validity of parameters in the request. For example:
    • The value of the Content-Type parameter in the request headers is application/x-www-form-urlencoded in the SMS sending API and application/json in the batch SMS sending API.
    • The value of the to parameter in the request body is a character string in the SMS sending API and a character string array in the batch SMS sending API.
    • If SMS status reports need to be received, the statusCallback parameter must be specified and the address is valid and reachable.
    • If the template type specified by templateId is a common template, you must set signature to the signature added before the SMS content in the common template.
  • Check 2: When obtaining the request result, parse the response result code and rectify the fault based on the handling suggestions in API Error Codes.
    HTTP/1.1 200 OK
    Date: Fri, 13 Apr 2018 06:29:08 GMT
    Server: WebServer
    Content-Type: application/json;charset=UTF-8
    Content-Length: 220
    
    {"result":[{"originTo":"+8615512345678","createTime":"2018-05-25T16:34:34Z","from":"1069031221280012","smsMsgId":"d6e3cdd0-522b-4692-8304-a07553cdf591_8539659","status":"000000"}],"code":"000000","description":"Success"}

    If code is set to E000510, the value of status needs to be parsed for fault locating and analysis.

  • Check 3: When the SMS content sent triggers the interception by the Huawei Cloud internal platform, the Huawei Cloud Message & SMS service pushes a status report to the customer. Parse the status code and rectify the fault based on the handling suggestions for the status codes provided by the Huawei Cloud internal platform in SMS Status Error Codes.

    Note: Huawei Cloud Message & SMS pushes the status report notification only when the callback address is specified for statusCallback in the SMS sending request. Otherwise, log in to the SMS console and go to the sending details page to view the status code.

  • Check 4: When receiving the SMS status notification from the SMSC, the Huawei Cloud Message & SMS service pushes a status report to the customer. Parse the status code and rectify the fault based on the handling suggestions in SMS Status Error Codes.

    Note: Huawei Cloud Message & SMS pushes the status report notification only when the callback address is specified for statusCallback in the SMS sending request. Otherwise, log in to the SMS console and go to the sending details page to view the status code.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback