如何在SOAPConnection调用上设置连接和读取超时?

时间:2015-10-31 17:01:20

标签: java web-services soap

标题说明了一切。相关代码如下所示:

SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance();
SOAPConnection soapConnection = soapConnectionFactory.createConnection();
URL endpoint = new URL("http://*******/webservice.asmx?WSDL");
SOAPMessage soapACK = soapConnection.call(createSOAPLink(dataID), endpoint);

0 个答案:

没有答案