java怎么测试webservice接口测试
3 回答

繁花不似锦
TA贡献1851条经验 获得超4个赞
发个HTTP请求,看看返回结果。
String url = "wsurl...?wsdl";
HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();
if(HttpURLConnection.HTTP_OK == connection.getResponseCode()){
//通了
}
添加回答
举报
0/150
提交
取消