猿问

请问java怎么测试webservice接口测试?

java怎么测试webservice接口测试


慕哥6287543
浏览 2445回答 3
3回答

繁花不似锦

发个HTTP请求,看看返回结果。String url = "wsurl...?wsdl";HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();if(HttpURLConnection.HTTP_OK == connection.getResponseCode()){//通了}
随时随地看视频慕课网APP
我要回答