JSON Object Example
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
{
"Timeout": 0,
"Server": "https://api.example.com/clientcreate.asmx",
"Action": "http://api.example.com/CreateC",
"PostXML": "<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><req:CreateC xmlns:req=\"http://api.example.com/\"><NAME xsi:type=\"xsd:string\">str</Name></req:CreateC></soap:Body></soap:Envelope>",
"Keyword1": "",
"Keyword2": "",
"Keyword3": "",
"UserName": "",
"UserPassword": "",
"AdditionalHeaders": "",
"DNSResolveMode": "Device Cached",
"DNSserverIP": "",
"CustomDNSHosts": null,
"Device_Id": 112457,
"Id": 991330,
"Task_Type_Id": 10,
"Name": "SOAP test"
}
{ "Timeout": 0, "Server": "https://api.example.com/clientcreate.asmx", "Action": "http://api.example.com/CreateC", "PostXML": "<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><req:CreateC xmlns:req=\"http://api.example.com/\"><NAME xsi:type=\"xsd:string\">str</Name></req:CreateC></soap:Body></soap:Envelope>", "Keyword1": "", "Keyword2": "", "Keyword3": "", "UserName": "", "UserPassword": "", "AdditionalHeaders": "", "DNSResolveMode": "Device Cached", "DNSserverIP": "", "CustomDNSHosts": null, "Device_Id": 112457, "Id": 991330, "Task_Type_Id": 10, "Name": "SOAP test" }
{
    "Timeout": 0,
    "Server": "https://api.example.com/clientcreate.asmx",
    "Action": "http://api.example.com/CreateC",
    "PostXML": "<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><req:CreateC xmlns:req=\"http://api.example.com/\"><NAME xsi:type=\"xsd:string\">str</Name></req:CreateC></soap:Body></soap:Envelope>",
    "Keyword1": "",
    "Keyword2": "",
    "Keyword3": "",
    "UserName": "",
    "UserPassword": "",
    "AdditionalHeaders": "",
    "DNSResolveMode": "Device Cached",
    "DNSserverIP": "",
    "CustomDNSHosts": null,
    "Device_Id": 112457,
    "Id": 991330,
    "Task_Type_Id": 10,
    "Name": "SOAP test"
}

字段描述

领域 类型 必需/可选 描述

Server

字符串

必填

提供 Web 服务的地址 (URL)。

例子:
"Server" : "https://api.example.com/clientcreate.asmx"

行动

字符串

必填

请求 URI。

后XML

字符串

必填

XML 请求的主体。

关键 字

字符串

自选

关键字 键中,您可以指定您希望在响应中搜索的一个或多个单词或短语。

用户

字符串

自选

此字段包含 SOAP 认证的用户名。

例子:
"UserName": "demo_username"

用户密码

字符串

自选

此字段包含 SOAP 认证密码。

例子:
"Password": "demo_password"

附加头

字符串

自选

有关 SOAP 消息的特定应用信息。

DNS 解析模式 字符串 自选 可能的值:

  • 设备缓存
  • 非缓存
  • TTL 缓存
  • 外部 DNS 服务器

有关详细解释,请参阅 “DNS 模式选项” 文章。

DNSserverIP 字符串 自选 自定义 DNS 服务器 IP 地址的字段。

有关详细解释,请参阅 “DNS 模式选项” 文章。

Device_Id

Int32

必填

只读字段。 唯一设备 ID。

例子:
"Device_Id": 8550

Id

Int32

必填

*仅用于编辑操作

只读字段。 唯一的任务 ID。

例子:
"Id": 17714

Task_Type_Id

Int32

必填

任务 类型的ID。

例子:
"Task_Type_Id": 10

名字

字符串

自选

任务名称。

例子:
"Name": "SOAP"

超时

Int32

自选

此字段定义任务执行的最大时间值(以毫秒为单位)。

例子:
"Timeout": 0