http协议
xml
<request>
<customer>
<customerName>chendj</customerName>
<cstType>1</cusType>
<headPortrait></headPortrait>
<cert>342422200001010123</cert>
<addr>上海</addr>
<contactInfo>
<phone>13111111111</phone>
<weichat>sato</weichat>
<qq>9642918</qq>
<email>9642918@qq.com</email>
<SpareContact>
<name></name>
<phone></phone>
</SpareContact>
</contactInfo>
</customer>
</request>
json
{
"request": {
"parsererror": {
"-style": "display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black",
"h3": [
"This page contains the following errors:",
"Below is a rendering of the page up to the first error."
],
"div": {
"-style": "font-family:monospace;font-size:12px",
"#text": "error on line 4 at column 24: Opening and ending tag mismatch: cstType line 0 and cusType
"
}
},
"customer": { "customerName": "chendj" }
}
}
xml和json可以在线转换
接口测试流程
接口规范类型
接口属性
接口属性
网友评论