请问如下的post请求如何才能正确获取到数据?
GetTrack
获取位置
Test
The test form is only available for requests from the local machine.
SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /GnssService.asmx HTTP/1.1
Host: 127.0.0.1
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/GetTrack"
<?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>
<GetTrack xmlns="http://tempuri.org/">
<Plate>string</Plate>
</GetTrack>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
下面是正确返回的内容:
<?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>
<GetTrackResponse xmlns="http://tempuri.org/">
<GetTrackResult>
<D>int</D>
<Des>string</Des>
<Flag>boolean</Flag>
<T>string</T>
<V>int</V>
<X>float</X>
<Y>float</Y>
</GetTrackResult>
</GetTrackResponse>
</soap:Body>
</soap:Envelope>
2 个回复
DCloud_UNI_FXY
6***@qq.com
请问大佬这种请求用vue最后是怎么解决了~谢谢