package com.vci.ubcs.example.config; import com.vci.ubcs.example.service.UniversalInterface; import com.vci.ubcs.example.service.impl.UniversalInterfaceImplServiceLocator; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import javax.xml.rpc.ServiceException; /** * @author ludc * @date 2024/3/21 17:32 */ @Configuration public class WebServiceConfig { @Bean public UniversalInterface getAppAcctServices() { UniversalInterfaceImplServiceLocator locator = new UniversalInterfaceImplServiceLocator(); UniversalInterface service = null; try { service = locator.getUniversalInterfaceImplPort(); } catch (ServiceException e) { throw new RuntimeException(e); } return service; } }