Professional Documents
Culture Documents
API Viettel
API Viettel
Mô tả bản tin kết nối với hệ thống nhắn tin quảng cáo
AMS API
Phiên bản tài liệu: v1.0
Hà Nội, 5/2011
1
BẢNG GHI NHẬN THAY ĐỔI
31/05/11 Tất cả tài A N/A N/A Tạo mới tài liệu 1.0
liệu
2
Contents
Contents...........................................................................................................................................3
I. Tổng quan.................................................................................................................................5
2. Phạm vi..............................................................................................................................5
3
Xem chi tiết CTQC - getProg.................................................................................................41
4
I. Tổng quan
2. Phạm vi
- Lưu hành nội bộ giữa AMS và đối tác.
5
II.Mô hình thiết kế - triển khai
Thông tin WS
http://203.190.170.48:8005/adapi/Service.asmx?wsdl
http://ams.tinnhanthuonghieu.vn:8005/adapi/Service.asmx?wsdl
Request
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
6
<soapenv:Header/>
<soapenv:Body>
<tem:getAliases>
<tem:authen cpCode="CP_TEST" name="quangdh" pass="123"/>
</tem:getAliases>
</soapenv:Body>
</soapenv:Envelope>
Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:getAliasesResponse xmlns:ns2="http://tempuri.org/">
<return>
<aliases>1313</aliases>
<aliases>ADSVIETTEL</aliases>
<aliases>AMS VIETTEL</aliases>
<aliases>COOPMART</aliases>
<aliases>DATXANH</aliases>
<aliases>KPLUS</aliases>
<aliases>LCS</aliases>
<aliases>METRO</aliases>
<aliases>QCVIETTEL</aliases>
7
<aliases>VNPAY</aliases>
<status>1</status>
</return>
</ns2:getAliasesResponse>
</S:Body>
</S:Envelope>
Bảng mô tả mã lỗi
Mã lỗi Mô tả
0 Thất bại
1 Thành công
Request
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:getProgs>
<tem:authen cpCode="CP_TEST" name="quangdh" pass="123"/>
</tem:getProgs>
8
</soapenv:Body>
</soapenv:Envelope>
Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:getProgsResponse xmlns:ns2="http://tempuri.org/">
<return>
<progs>CP_TEST123</progs>
<progs>CP_TEST124</progs>
...
<progs>CP_TEST81</progs>
<status>1</status>
</return>
</ns2:getProgsResponse>
</S:Body>
</S:Envelope>
9
status Integer Trạng thái trả về
Bảng mô tả mã lỗi
Mã lỗi Mô tả
0 Thất bại
1 Thành công
Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:getCategories>
<tem:authen cpCode="CP_TEST" name="quangdh" pass="123"/>
</tem:getCategories>
</soapenv:Body>
</soapenv:Envelope>
pass String Mất khẩu đăng nhập Giống như mật khẩu
vào web
10
Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:getCategoriesResponse xmlns:ns2="http://tempuri.org/">
<return>
<categories catCode="BD" catName="B¿t d¿ng s¿n - Xây d¿ng"/>
<categories catCode="CK" catName="Ngân hàng, b¿o hi¿m, ch¿ng khoán"/>
<categories catCode="DL" catName="Du l¿ch "/>
<categories catCode="DT" catName="Ði¿n tho¿i di d¿ng"/>
<categories catCode="ET" catName="Giai tri"/>
<categories catCode="GD" catName="Giáo d¿c - Ðào t¿o"/>
<categories catCode="GT" catName="Giao thông v¿n t¿i"/>
<categories catCode="HM" catName="Hóa m¿ ph¿m- Làm d¿p"/>
<categories catCode="KM" catName="Khuy¿n m¿i"/>
<categories catCode="NH" catName="Ngân hàng"/>
<categories catCode="OT" catName="Oto - Xe máy"/>
<categories catCode="PHIM" catName="Phim ¿nh"/>
<categories catCode="TH" catName="Th¿i trang"/>
<categories catCode="TP" catName="Th¿c ph¿m - п u¿ng"/>
<categories catCode="VT" catName="CNTT- Ði¿n t¿ vi¿n thông"/>
<categories catCode="YT" catName="Y t¿ - Du¿c"/>
<status>1</status>
</return>
</ns2:getCategoriesResponse>
</S:Body>
</S:Envelope>
11
status Integer Trạng thái trả về
Bảng mô tả mã lỗi
Mã lỗi Mô tả
0 Thất bại
1 Thành công
Request
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:getZones>
<tem:authen cpCode="CP_TEST" name="quangdh" pass="123"/>
</tem:getZones>
</soapenv:Body>
</soapenv:Envelope>
pass String Mất khẩu đăng nhập Giống như mật khẩu
vào web
12
Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:getZonesResponse xmlns:ns2="http://tempuri.org/">
<return>
<status>1</status>
<zones zoneCode="AGG" zoneName="An Giang"/>
<zones zoneCode="BDG" zoneName="Bình Duong"/>
..
<zones zoneCode="VTU" zoneName="Vung Tàu"/>
<zones zoneCode="YBI" zoneName="Yên Bái"/>
</return>
</ns2:getZonesResponse>
</S:Body>
</S:Envelope>
Bảng mô tả mã lỗi
Mã lỗi Mô tả
0 Thất bại
1 Thành công
pass String Mất khẩu đăng nhập Giống như mật khẩu
vào web
Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
14
<ns2:searchUserResponse xmlns:ns2="http://tempuri.org/">
<return>
<status>1</status>
<users>
<username>userxxx1</username>
<description>user dessc</description>
<account>userxxx</account>
<status>1</status>
<recycle>1</recycle>
</users>
<users>
<username>userbb1</username>
<description>user dessc</description>
<account>userxxx1</account>
<status>0</status>
<recycle>1</recycle>
</users>
<users>
<username>userbb1</username>
<description>user dessc</description>
<account>userkk</account>
<status>0</status>
<recycle>1</recycle>
</users>
<users>
<username>userbb1</username>
<description>user dessc</description>
<account>userkk1</account>
<status>0</status>
<recycle>1</recycle>
</users>
15
</return>
</ns2:searchUserResponse>
</S:Body>
</S:Envelope>
Bảng mô tả mã lỗi
Mã lỗi Mô tả
0 Thất bại
1 Thành công
Request
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
16
<tem:createUser>
<!--Optional:-->
<tem:authen cpCode="CP_TEST" name="quangdh" pass="123"/>
<tem:userName>quangdhx</tem:userName>
<tem:description>quangdhx</tem:description>
<tem:account>quangdhx</tem:account>
<tem:password>quangdhx</tem:password>
</tem:createUser>
</soapenv:Body>
</soapenv:Envelope>
Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:createUserResponse xmlns:ns2="http://tempuri.org/">
<return>1</return>
</ns2:createUserResponse>
</S:Body>
</S:Envelope>
Mã lỗi Mô tả
0 Thất bại
1 Thành công
Request
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:updateUser>
<tem:authen cpCode="CP_TEST" name="quangdh" pass="123"/>
<tem:userName>quangdhx1</tem:userName>
<tem:description>quangdhx1</tem:description>
<tem:account>quangdhx</tem:account>
</tem:updateUser>
</soapenv:Body>
</soapenv:Envelope>
18
password String Mật khẩu đăng nhập
Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:updateUserResponse xmlns:ns2="http://tempuri.org/">
<return>1</return>
</ns2:updateUserResponse>
</S:Body>
</S:Envelope>
Bảng mô tả mã lỗi
Mã lỗi Mô tả
Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:deleteUser>
<tem:authen cpCode="CP_TEST" name="quangdh" pass="123"/>
19
<tem:account>quangdhx</tem:account>
</tem:deleteUser>
</soapenv:Body>
</soapenv:Envelope>
Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:deleteUserResponse xmlns:ns2="http://tempuri.org/">
<return>1</return>
</ns2:deleteUserResponse>
</S:Body>
</S:Envelope>
Bảng mô tả mã lỗi
Mã lỗi Mô tả
20
Thay đổi mật khẩu – resetPass
- Mô tả: Reset mật khẩu cho người dùng.
Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:resetPass>
<tem:authen cpCode="CP_TEST" name="quangdh" pass="123"/>
<tem:account>quangdhx</tem:account>
</tem:resetPass>
</soapenv:Body>
</soapenv:Envelope>
Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:resetPassResponse xmlns:ns2="http://tempuri.org/">
<return>
<newPass>2039107</newPass>
<status>1</status>
</return>
</ns2:resetPassResponse>
</S:Body>
</S:Envelope>
21
result Int Kết quả trả về
Bảng mô tả mã lỗi
Mã lỗi Mô tả
0 Thất bại
1 Thành công
22
sentStartDate String Ngày bắt đầu – yyyyMMdd
Mã lỗi Mô tả
0 Thất bại
1 Thành công
2 Lỗi
3 Không rõ lỗi
4 Prog null
5 Category không hợp lệ
6 Nội dung null
24
7 StartDate null
8 StartDate không hợp lệ
9 FinishDate null
10 FinishDate không hợp lệ
11 Alias không hợp lệ
12 MaxSms không hợp lệ
13 ToTalSub không hợp lệ
Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:searchProgs>
<tem:authen cpCode="CP_TEST" name="quangdh" pass="123"/>
<tem:progCode>CP</tem:progCode>
<tem:category>KM</tem:category>
<tem:status>1</tem:status>
<tem:createdDate>20110510</tem:createdDate>
<tem:startDate>20110518</tem:startDate>
</tem:searchProgs>
</soapenv:Body>
</soapenv:Envelope>
25
catCode String Mã Category
Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:searchProgsResponse xmlns:ns2="http://tempuri.org/">
<return>
<progs>
<progCode>CP_TEST230</progCode>
<category>BD</category>
<content>ZZZ</content>
<sentStartDate>20110529</sentStartDate>
<sentFinishDate>20110529</sentFinishDate>
<maxSms>1</maxSms>
<alias>1313</alias>
<sentSchedule>1234567</sentSchedule>
26
<sentTimeZone>0</sentTimeZone>
<createdUser>quangdh</createdUser>
<createdDate>20110529</createdDate>
<priority>0</priority>
<status>1</status>
<sentType>2</sentType>
<zoneList>HNI,DNG,HCM,KTM,QNM,BDH,GLI,SLA,DLK,YBI,KHA,BNH,QNI,LCI,TTH,LCU,
GG,LSN,TGG,NAN,STG,BKN,DBN,TVH,BGG,PTO,HGG</zoneList>
<catList>ET,KM,VT,YT,GD,HM,TH,CK,TP,GT,DL,BD,DT,OT,PHIM,NH</catList>
<totalSub>10</totalSub>
<gender>0</gender>
<minYear>0</minYear>
<maxYear>0</maxYear>
<job>0</job>
<income>0</income>
<processStatus>0</processStatus>
</progs>
<status>1</status>
</return>
</ns2:searchProgsResponse>
</S:Body>
</S:Envelope>
Bảng mô tả mã lỗi
Mã lỗi Mô tả
0 Thất bại
1 Thành công
30
exceptionDa String Ngày ngoại lệ không gửi tin 20150116
y yyyyMMdd
Response
CTQC thuê bao do CP cung cấp
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:createProgResponse xmlns:ns2="http://tempuri.org/">
<return>
<progCode>CP_TEST305</progCode>
<category>KM</category>
<content>TEST SUCCESS</content>
<sentStartDate>20110101</sentStartDate>
<sentFinishDate>20110101</sentFinishDate>
<maxSms>1</maxSms>
<alias>1313</alias>
31
<sentSchedule>1</sentSchedule>
<exceptionDay>20110101</exceptionDay>
<sentTimeZone>1</sentTimeZone>
<createdUser>quangdh</createdUser>
<createdDate>20110531</createdDate>
<priority>1</priority>
<status>1</status>
<sentType>0</sentType>
<zoneList/>
<catList/>
<totalSub>0</totalSub>
<gender>0</gender>
<minYear>0</minYear>
<maxYear>0</maxYear>
<job>0</job>
<income>0</income>
<processStatus>1</processStatus>
</return>
</ns2:createProgResponse>
</S:Body>
</S:Envelope>
32
<sentFinishDate>20110101</sentFinishDate>
<maxSms>1</maxSms>
<alias>1313</alias>
<sentSchedule>1</sentSchedule>
<exceptionDay>20110101</exceptionDay>
<sentTimeZone>1</sentTimeZone>
<createdUser>quangdh</createdUser>
<createdDate>20110531</createdDate>
<priority>1</priority>
<status>1</status>
<sentType>1</sentType>
<zoneList>HNI</zoneList>
<catList/>
<totalSub>1</totalSub>
<gender>0</gender>
<minYear>0</minYear>
<maxYear>100</maxYear>
<job>0</job>
<income>0</income>
<processStatus>1</processStatus>
</return>
</ns2:createProgResponse>
</S:Body>
</S:Envelope>
33
<category>KM</category>
<content>TEST SUCCESS</content>
<sentStartDate>20110101</sentStartDate>
<sentFinishDate>20110101</sentFinishDate>
<maxSms>1</maxSms>
<alias>1313</alias>
<sentSchedule>1</sentSchedule>
<exceptionDay>20110101</exceptionDay>
<sentTimeZone>1</sentTimeZone>
<createdUser>quangdh</createdUser>
<createdDate>20110531</createdDate>
<priority>1</priority>
<status>1</status>
<sentType>2</sentType>
<zoneList>HNI</zoneList>
<catList>KM</catList>
<totalSub>1</totalSub>
<gender>1</gender>
<minYear>11</minYear>
<maxYear>15</maxYear>
<job>1</job>
<income>1</income>
<processStatus>1</processStatus>
</return>
</ns2:createProgResponse>
</S:Body>
</S:Envelope>
34
Bảng mô tả mã lỗi
Mã lỗi Mô tả
0 Thất bại
1 Thành công
Request
CTQC có tập thuê bao của CP
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:updateProg>
<tem:authen cpCode="CP_TEST" name="quangdh" pass="123"/>
<tem:tmpProg>
<progCode>CP_TEST315</progCode>
<category>KM</category>
<content>TEST SUCCESS 1</content>
<sentStartDate>20110101</sentStartDate>
<sentFinishDate>20110101</sentFinishDate>
<maxSms>1</maxSms>
<alias>1313</alias>
<sentSchedule>1</sentSchedule>
<exceptionDay>20110101</exceptionDay>
<sentTimeZone>1</sentTimeZone>
<createdUser>quangdh</createdUser>
<createdDate>20110601</createdDate>
<priority>1</priority>
<status>1</status>
<sentType>0</sentType>
35
</tem:tmpProg>
</tem:updateProg>
</soapenv:Body>
</soapenv:Envelope>
38
minYear Int Độ tuổi nhỏ nhất
Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:updateProgResponse xmlns:ns2="http://tempuri.org/">
<return>
<progCode>CP_TEST312</progCode>
<category>KM</category>
<content>TEST SUCCESS</content>
<sentStartDate>20110101</sentStartDate>
<sentFinishDate>20110101</sentFinishDate>
<maxSms>1</maxSms>
<alias>1313</alias>
<sentSchedule>1</sentSchedule>
<exceptionDay>20110101</exceptionDay>
<sentTimeZone>1</sentTimeZone>
<createdUser>quangdh</createdUser>
<createdDate>20110531</createdDate>
<priority>1</priority>
<status>1</status>
<sentType>2</sentType>
<zoneList>HNI,HCM</zoneList>
39
<catList>KM</catList>
<totalSub>1</totalSub>
<gender>1</gender>
<minYear>11</minYear>
<maxYear>15</maxYear>
<job>1</job>
<income>1</income>
<processStatus>1</processStatus>
</return>
</ns2:updateProgResponse>
</S:Body>
</S:Envelope>
Bảng mô tả mã lỗi
Mã lỗi Mô tả
Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:deleteProg>
40
<tem:authen cpCode="CP_TEST" name="quangdh" pass="123"/>
<tem:progCode>CP_TEST312</tem:progCode>
</tem:deleteProg>
</soapenv:Body>
</soapenv:Envelope>
cpCode String Mã CP
Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:deleteProgResponse xmlns:ns2="http://tempuri.org/">
<return>1</return>
</ns2:deleteProgResponse>
</S:Body>
</S:Envelope>
Bảng mô tả mã lỗi
41
Mã lỗi Mô tả
Request
<soapenv:Header/>
<soapenv:Body>
<tem:acceptProg>
<!--Optional:-->
<tem:authen cpCode="CP_TEST" name="cp_test" pass="123">
<isAdmin>?</isAdmin>
</tem:authen>
<!--Optional:-->
<tem:progCode>CP_TEST1</tem:progCode>
<tem:priority>3</tem:priority>
</tem:acceptProg>
</soapenv:Body>
</soapenv:Envelope>
cpCode String Mã CP
42
Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:acceptProgResponse xmlns:ns2="http://tempuri.org/">
<return>1</return>
</ns2:acceptProgResponse>
</S:Body>
</S:Envelope>
Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:testProg>
<!--Optional:-->
<tem:authen cpCode="CP_TEST" name="cp_test" pass="123">
<isAdmin>?</isAdmin>
</tem:authen>
<!--Optional:-->
<tem:progCode>CP_TEST111</tem:progCode>
<!--Optional:-->
<tem:startTest>20130620</tem:startTest>
<!--Optional:-->
43
<tem:finishTest>20130621</tem:finishTest>
<!--Zero or more repetitions:-->
<tem:msisdns>84972218325</tem:msisdns>
<tem:msisdns>84972218326</tem:msisdns>
</tem:testProg>
</soapenv:Body>
</soapenv:Envelope>
cpCode String Mã CP
Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:testProgResponse xmlns:ns2="http://tempuri.org/">
<return>1</return>
</ns2:testProgResponse>
</S:Body>
</S:Envelope>
44
Tham số Kiểu dữ liệu Mô tả Ví dụ
Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:getProg>
<tem:authen cpCode="CP_TEST" name="quangdh" pass="123"/>
<tem:progCode>CP_TEST181</tem:progCode>
</tem:getProg>
</soapenv:Body>
</soapenv:Envelope>
cpCode String Mã CP
Response
45
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:getProgResponse xmlns:ns2="http://tempuri.org/">
<return>
<progCode>CP_TEST181</progCode>
<category>GT</category>
<content>1</content>
<sentStartDate>20110518</sentStartDate>
<sentFinishDate>20110518</sentFinishDate>
<maxSms>10</maxSms>
<alias>1313</alias>
<sentSchedule>1234567</sentSchedule>
<sentTimeZone>0</sentTimeZone>
<createdUser>quangdh</createdUser>
<createdDate>20110510</createdDate>
<priority>0</priority>
<status>1</status>
<sentType>1</sentType>
<zoneList>HNI,DNG,HCM,KTM,QNM,BDH,GLI,SLA,DLK,YBI,KHA,BNH,QNI,LCI,TTH,LCU,
GG,LSN,TGG,NAN,STG,BKN,DBN,TVH,BGG,PTO,HGG</zoneList>
<catList/>
<totalSub>100</totalSub>
<gender>0</gender>
<minYear>0</minYear>
<maxYear>0</maxYear>
<job>1</job>
<income>0</income>
<processStatus>0</processStatus>
</return>
</ns2:getProgResponse>
</S:Body>
46
</S:Envelope>
Bảng mô tả mã lỗi
Mã lỗi Mô tả
Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:getAllMsisdns>
<tem:authen cpCode="CP_TEST" name="quangdh" pass="123"/>
<tem:progCode>CP_TEST313</tem:progCode>
</tem:getAllMsisdns>
</soapenv:Body>
</soapenv:Envelope>
cpCode String Mã CP
47
name String User đăng nhập
Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:getAllMsisdnsResponse xmlns:ns2="http://tempuri.org/">
<return>
<msisdns>84984350452</msisdns>
<msisdns>84984350451</msisdns>
<msisdns>84984350450</msisdns>
<status>1</status>
</return>
</ns2:getAllMsisdnsResponse>
</S:Body>
</S:Envelope>
Bảng mô tả mã lỗi
Mã lỗi Mô tả
48
Thêm thuê bao – uploadMsisdns
- Mô tả: Add thêm các thuê bao cần gửi tin.
Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:uploadMsisdns>
<tem:authen cpCode="CP_TEST" name="quangdh" pass="123"/>
<tem:progCode>CP_TEST313</tem:progCode>
<tem:msisdns>84984350450</tem:msisdns>
<tem:msisdns>84984350451</tem:msisdns>
<tem:msisdns>84984350452</tem:msisdns>
</tem:uploadMsisdns>
</soapenv:Body>
</soapenv:Envelope>
cpCode String Mã CP
Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
49
<S:Body>
<ns2:uploadMsisdnsResponse xmlns:ns2="http://tempuri.org/">
<return>1</return>
</ns2:uploadMsisdnsResponse>
</S:Body>
</S:Envelope>
Bảng mô tả mã lỗi
Mã lỗi Mô tả
Request
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:removeMsisdns>
<tem:authen cpCode="CP_TEST" name="quangdh" pass="123"/>
<tem:progCode>CP_TEST313</tem:progCode>
<tem:msisdns>84984350451</tem:msisdns>
</tem:removeMsisdns>
</soapenv:Body>
50
</soapenv:Envelope>
cpCode String Mã CP
Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:removeMsisdnsResponse xmlns:ns2="http://tempuri.org/">
<return>1</return>
</ns2:removeMsisdnsResponse>
</S:Body>
</S:Envelope>
Bảng mô tả mã lỗi
Mã lỗi Mô tả
51
5. Nhóm chức năng báo cáo
Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:getDailySmsReport>
<tem:authen cpCode="CP_TEST" name="quangdh" pass="123"/>
<tem:progCode>CP_TEST314</tem:progCode>
<tem:catCode>KM</tem:catCode>
<tem:fromDate>20110529</tem:fromDate>
<tem:toDate>20110530</tem:toDate>
</tem:getDailySmsReport>
</soapenv:Body>
</soapenv:Envelope>
Response
52
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:getDailySmsReportResponse xmlns:ns2="http://tempuri.org/">
<return>
<smsRecords>
<date>20110529</date>
<moReply>0</moReply>
<mt1Error>0</mt1Error>
<mt1NotSend>0</mt1NotSend>
<mt1Success>0</mt1Success>
<mt2Success>0</mt2Success>
<numOder>0</numOder>
<sms1Success>0</sms1Success>
<sms2Success>0</sms2Success>
<subUnReg>0</subUnReg>
</smsRecords>
<smsRecords>
<date>20110530</date>
<moReply>0</moReply>
<mt1Error>0</mt1Error>
<mt1NotSend>0</mt1NotSend>
<mt1Success>0</mt1Success>
<mt2Success>0</mt2Success>
<numOder>0</numOder>
<sms1Success>0</sms1Success>
<sms2Success>0</sms2Success>
<subUnReg>0</subUnReg>
</smsRecords>
<status>1</status>
</return>
</ns2:getDailySmsReportResponse>
53
</S:Body>
</S:Envelope>
Bảng mô tả mã lỗi
Mã lỗi Mô tả
0 Thất bại
1 Thành công
Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
54
<soapenv:Header/>
<soapenv:Body>
<tem:getMonthSmsReport>
<tem:authen cpCode="CP_TEST" name="quangdh" pass="123"/>
<tem:progCode>CP_TEST314</tem:progCode>
<tem:catCode>KM</tem:catCode>
<tem:month>201105</tem:month>
</tem:getMonthSmsReport>
</soapenv:Body>
</soapenv:Envelope>
Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:getMonthSmsReportResponse xmlns:ns2="http://tempuri.org/">
<return>
<smsRecords>
<date>20110501</date>
<moReply>0</moReply>
<mt1Error>0</mt1Error>
<mt1NotSend>0</mt1NotSend>
55
<mt1Success>0</mt1Success>
<mt2Success>0</mt2Success>
<numOder>0</numOder>
<sms1Success>0</sms1Success>
<sms2Success>0</sms2Success>
<subUnReg>0</subUnReg>
</smsRecords>
...
<smsRecords>
<date>20110531</date>
<moReply>0</moReply>
<mt1Error>0</mt1Error>
<mt1NotSend>0</mt1NotSend>
<mt1Success>0</mt1Success>
<mt2Success>0</mt2Success>
<numOder>0</numOder>
<sms1Success>0</sms1Success>
<sms2Success>0</sms2Success>
<subUnReg>0</subUnReg>
</smsRecords>
<status>1</status>
</return>
</ns2:getMonthSmsReportResponse>
</S:Body>
</S:Envelope>
Bảng mô tả mã lỗi
56
Mã lỗi Mô tả
0 Thất bại
1 Thành công
Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:getYearSmsReport>
<tem:authen cpCode="CP_TEST" name="quangdh" pass="123"/>
<tem:progCode>CP_TEST314</tem:progCode>
<tem:catCode>KM</tem:catCode>
<tem:year>2011</tem:year>
</tem:getYearSmsReport>
</soapenv:Body>
</soapenv:Envelope>
Response
57
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:getYearSmsReportResponse xmlns:ns2="http://tempuri.org/">
<return>
<smsRecords>
<date>201101</date>
<moReply>0</moReply>
<mt1Error>0</mt1Error>
<mt1NotSend>0</mt1NotSend>
<mt1Success>0</mt1Success>
<mt2Success>0</mt2Success>
<numOder>0</numOder>
<sms1Success>0</sms1Success>
<sms2Success>0</sms2Success>
<subUnReg>0</subUnReg>
</smsRecords>
...
<smsRecords>
<date>201112</date>
<moReply>0</moReply>
<mt1Error>0</mt1Error>
<mt1NotSend>0</mt1NotSend>
<mt1Success>0</mt1Success>
<mt2Success>0</mt2Success>
<numOder>0</numOder>
<sms1Success>0</sms1Success>
<sms2Success>0</sms2Success>
<subUnReg>0</subUnReg>
</smsRecords>
<status>1</status>
</return>
58
</ns2:getYearSmsReportResponse>
</S:Body>
</S:Envelope>
Bảng mô tả mã lỗi
Mã lỗi Mô tả
0 Thất bại
1 Thành công
Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:getDailyProgReport>
<tem:authen cpCode="CP_TEST" name="quangdh" pass="123"/>
<tem:catCode>KM</tem:catCode>
<tem:fromDate>20100501</tem:fromDate>
<tem:toDate>20100502</tem:toDate>
</tem:getDailyProgReport>
</soapenv:Body>
</soapenv:Envelope>
59
Tham số Kiểu dữ liệu Mô tả Ví dụ
Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:getDailyProgReportResponse xmlns:ns2="http://tempuri.org/">
<return>
<progSmsRecords>
<date>20100501</date>
<mt1Success>0</mt1Success>
<mt2Success>0</mt2Success>
<progComplete>0</progComplete>
<progCreate>0</progCreate>
<progFinish>0</progFinish>
<sms1Success>0</sms1Success>
<sms2Success>0</sms2Success>
</progSmsRecords>
<progSmsRecords>
<date>20100502</date>
<mt1Success>0</mt1Success>
<mt2Success>0</mt2Success>
<progComplete>0</progComplete>
<progCreate>0</progCreate>
<progFinish>0</progFinish>
<sms1Success>0</sms1Success>
<sms2Success>0</sms2Success>
</progSmsRecords>
60
<status>1</status>
</return>
</ns2:getDailyProgReportResponse>
</S:Body>
</S:Envelope>
Bảng mô tả mã lỗi
Mã lỗi Mô tả
0 Thất bại
1 Thành công
Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:getMonthProgReportResponse xmlns:ns2="http://tempuri.org/">
<return>
<progSmsRecords>
<date>20110501</date>
<mt1Success>0</mt1Success>
<mt2Success>0</mt2Success>
<progComplete>0</progComplete>
<progCreate>0</progCreate>
<progFinish>0</progFinish>
62
<sms1Success>0</sms1Success>
<sms2Success>0</sms2Success>
</progSmsRecords>
...
<progSmsRecords>
<date>20110601</date>
<mt1Success>0</mt1Success>
<mt2Success>0</mt2Success>
<progComplete>0</progComplete>
<progCreate>0</progCreate>
<progFinish>0</progFinish>
<sms1Success>0</sms1Success>
<sms2Success>0</sms2Success>
</progSmsRecords>
<status>1</status>
</return>
</ns2:getMonthProgReportResponse>
</S:Body>
</S:Envelope>
Bảng mô tả mã lỗi
Mã lỗi Mô tả
0 Thất bại
1 Thành công
63
Thống kê CTQC theo năm – getYearProgReport
- Mô tả: Báo cáo chương trình nhắn tin theo năm.
Request
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:getYearProgReport>
<tem:authen cpCode="CP_TEST" name="quangdh" pass="123"/>
<tem:catCode>KM</tem:catCode>
<tem:year>2011</tem:year>
</tem:getYearProgReport>
</soapenv:Body>
</soapenv:Envelope>
Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:getYearProgReportResponse xmlns:ns2="http://tempuri.org/">
<return>
<progSmsRecords>
<date>201101</date>
<mt1Success>0</mt1Success>
<mt2Success>0</mt2Success>
<progComplete>0</progComplete>
64
<progCreate>0</progCreate>
<progFinish>0</progFinish>
<sms1Success>0</sms1Success>
<sms2Success>0</sms2Success>
</progSmsRecords>
...
<progSmsRecords>
<date>201112</date>
<mt1Success>0</mt1Success>
<mt2Success>0</mt2Success>
<progComplete>0</progComplete>
<progCreate>0</progCreate>
<progFinish>0</progFinish>
<sms1Success>0</sms1Success>
<sms2Success>0</sms2Success>
</progSmsRecords>
<status>1</status>
</return>
</ns2:getYearProgReportResponse>
</S:Body>
</S:Envelope>
Bảng mô tả mã lỗi
Mã lỗi Mô tả
0 Thất bại
65
1 Thành công
Request
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:searchBanlance>
<tem:authen cpCode="CP_TEST" name="quangdh" pass="123"/>
<tem:startDate>20110501</tem:startDate>
<tem:endDate>20110530</tem:endDate>
</tem:searchBanlance>
</soapenv:Body>
</soapenv:Envelope>
Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:searchBanlanceResponse xmlns:ns2="http://tempuri.org/">
<return>
<balance>1133</balance>
<minusBalances>
66
<cpCode>CP_TEST</cpCode>
<cpName>CP_TEST</cpName>
<minusTime>2011-05-11T00:00:00+07:00</minusTime>
<progCode>CP_TEST191</progCode>
<smsMinus>30</smsMinus>
<type>0</type>
</minusBalances>
<minusBalances>
<cpCode>CP_TEST</cpCode>
<cpName>CP_TEST</cpName>
<minusTime>2011-05-30T00:00:00+07:00</minusTime>
<progCode>CP_TEST284</progCode>
<smsMinus>3</smsMinus>
<type>0</type>
</minusBalances>
<minusBalances>
<cpCode>CP_TEST</cpCode>
<cpName>CP_TEST</cpName>
<minusTime>2011-05-30T00:00:00+07:00</minusTime>
<progCode>CP_TEST294</progCode>
<smsMinus>3</smsMinus>
<type>0</type>
</minusBalances>
<minusBalances>
<cpCode>CP_TEST</cpCode>
<cpName>CP_TEST</cpName>
<minusTime>2011-05-11T00:00:00+07:00</minusTime>
<progCode>CP_TEST190</progCode>
<smsMinus>10</smsMinus>
<type>0</type>
</minusBalances>
67
<minusBalances>
<cpCode>CP_TEST</cpCode>
<cpName>CP_TEST</cpName>
<minusTime>2011-05-11T00:00:00+07:00</minusTime>
<progCode>CP_TEST187</progCode>
<smsMinus>20</smsMinus>
<type>0</type>
</minusBalances>
<status>1</status>
</return>
</ns2:searchBanlanceResponse>
</S:Body>
</S:Envelope>
<progCode>CP_TEST191</
progCode>
68
<smsMinus>30</smsMinus>
<type>0</type>
</minusBalances>
Bảng mô tả mã lỗi
Mã lỗi Mô tả
0 Thất bại
1 Thành công
69