测试前辈们,小弟刚步入测试行业,请问下关于webservice怎么测试哦
例如:打开待测试http://192.168.1.254/st/webservice出现一下代码:
POST /rt/webservice/service_Public.asmx HTTP/1.1
Host: 192.168.1.254
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://map.dstfe.cn/GetLocations"
<?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>
<GetLocations xmlns="http://map.dstfe.cn/">
<KeyCode>string</KeyCode>
<UserID>string</UserID>
<CityCode>int</CityCode>
<KeyWord>string</KeyWord>
</GetLocations>
</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>
<GetLocationsResponse xmlns="http://map.dstfe.cn/">
<GetLocationsResult>string</GetLocationsResult>
</GetLocationsResponse>
</soap:Body>
</soap:Envelope>望高位高手回复,谢谢,在这里有礼了
soapui,看一下使用说明就知道了。 找接口,测试 先用wsdl生成个客户端,然后写测试代码吧 soupui不错的 加油 先把web语言学会
页:
[1]