|
|
|
@ -2,6 +2,8 @@ package com.docus.bgts.config;
|
|
|
|
|
|
|
|
|
|
import com.docus.bgts.handler.ITBasicWebService;
|
|
|
|
|
import com.docus.bgts.handler.TBasicWebService;
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
@ -11,6 +13,8 @@ import javax.xml.ws.Endpoint;
|
|
|
|
|
@Configuration
|
|
|
|
|
public class WebServiceConfig {
|
|
|
|
|
|
|
|
|
|
private final Logger log = LoggerFactory.getLogger(getClass());
|
|
|
|
|
|
|
|
|
|
@Value("${system.code}")
|
|
|
|
|
private String systemCode;
|
|
|
|
|
@Value("${system.prop}")
|
|
|
|
@ -24,11 +28,11 @@ public class WebServiceConfig {
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
|
public Endpoint endpoint() {
|
|
|
|
|
System.out.println("-----------------------web service服务已发布-------------------------");
|
|
|
|
|
// String address = "http://"+"0.0.0.0"+":" + Codes.EXTERNAL.getCode()+"/" + Codes.EXTERNAL.getMessage();
|
|
|
|
|
String address = "http://"+"0.0.0.0"+":" + systemProp+"/" + systemCode;
|
|
|
|
|
|
|
|
|
|
log.info(" web service服务已发布 ");
|
|
|
|
|
String address = "http://" + "0.0.0.0" + ":" + systemProp + "/" + systemCode;
|
|
|
|
|
Endpoint publish = Endpoint.publish(address, tBasicWebService());
|
|
|
|
|
System.out.println(" "+address);
|
|
|
|
|
log.info(" " + address);
|
|
|
|
|
return publish;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|