Get Country List

Request Service

  • getCountry

Request Method:

  • POST

Request Sample:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.example.org/">
    <SOAP-ENV:Body>
        <ns1:callService>
            <paramsJson>
                {
                  "pageSize":1,
                  "page":1
                }
            </paramsJson>
            <appToken>appToken</appToken>
            <appKey>appKey</appKey>
            <service>getCountry</service>
        </ns1:callService>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Request Parameter:

Parameter Type Required Remark
pageSize int Y Page size
page int Y Current page

Response Sample:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<SOAP-ENV:Envelope xmlns:ns1="http://www.example.org/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Body>
        <ns1:callServiceResponse>
            <response>
                {
                  "ask":"Success",
                  "count":"2",
                  "data":[
                    {
                      "country_code":"GB",
                      "country_id":242,
                      "country_name":"英国",
                      "country_name_en":"UNITED KINGDOM"
                    },
                    {
                      "country_code":"US",
                      "country_id":243,
                      "country_name":"美国",
                      "country_name_en":"UNITED STATES"
                    }
                  ],
                  "message":"Success",
                  "nextPage":false,
                  "pagination":{
                    "page":2,
                    "pageSize":237
                  }
                }
            </response>
        </ns1:callServiceResponse>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Response Parameter:

Parameter Type Remark
country_code String Country Code
country_id int Country Id
country_name String Country Name In Chinese
country_name_en String Country Name In English
作者:WesternPost  创建时间:2021-06-30 00:31
 更新时间:2024-12-31 02:56