ludc
2024-03-22 96f493d717f7238e956c3e870ba5437cb6cf4ae4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;
    }
 
}