wsimport后如何为jax-ws设置timeout


		webservice = new S***WebserviceService().get***WebservicePort();
		   ((BindingProvider) webservice).getRequestContext().put(
		            BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
		            /*"http://localhost:8080/service"*/"http://1.2.3.4:8888/Service");
		    ((BindingProvider) webservice).getRequestContext().put(
		            BindingProviderProperties.CONNECT_TIMEOUT,
		            30000);
		    ((BindingProvider) webservice).getRequestContext().put(
		            BindingProviderProperties.REQUEST_TIMEOUT,
		            30000);
		

阅读更多
个人分类: android 开发
想对作者说点什么? 我来说一句
相关热词

没有更多推荐了,返回首页

关闭
关闭
关闭