JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
factory.setAddress(SERVICE_ADDRESS);
factory.setServiceClass(DemoService.class);
DemoService service = (DemoService) factory.create();
测试:第一步,需要花费2秒,第4步需要花费7-10秒。
请问大神是否有调优方案?
这个和你的网络有关吧。
本机测试的数据,应该不存在网络问题
Creating Service {http://interfaces.interfaces.module.sap.com/}LoginServiceService from class com.sap.module.interfaces.interfaces.LoginService
新建 -实例3[loginService]结束,总计时间:15.339秒
Creating Service {http://interfaces.interfaces.module.sap.com/}LoginServiceService from class com.sap.module.interfaces.interfaces.LoginService
新建 -实例3[loginService]结束,总计时间:15.339秒