暂时注释掉webservice

tags/yfai-pcn-ext-v2.3
臧学普 9 months ago
parent f3e2254e45
commit c45b5724f6

@ -1,59 +1,59 @@
/** ///**
* Licensed to the Apache Software Foundation (ASF) under one // * Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file // * or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information // * distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file // * regarding copyright ownership. The ASF licenses this file
* to you under the Apache ImppLicense, Version 2.0 (the // * to you under the Apache ImppLicense, Version 2.0 (the
* "ImppLicense"); you may not use this file except in compliance // * "ImppLicense"); you may not use this file except in compliance
* with the ImppLicense. You may obtain a copy of the ImppLicense at // * with the ImppLicense. You may obtain a copy of the ImppLicense at
* // *
* http://www.apache.org/licenses/LICENSE-2.0 // * http://www.apache.org/licenses/LICENSE-2.0
* // *
* Unless required by applicable law or agreed to in writing, // * Unless required by applicable law or agreed to in writing,
* software distributed under the ImppLicense is distributed on an // * software distributed under the ImppLicense is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the ImppLicense for the // * KIND, either express or implied. See the ImppLicense for the
* specific language governing permissions and limitations // * specific language governing permissions and limitations
* under the ImppLicense. // * under the ImppLicense.
*/ // */
package cn.estsh.i3plus.ext.mes.pcn.apiservice.config; //package cn.estsh.i3plus.ext.mes.pcn.apiservice.config;
//
//
//
import cn.estsh.i3plus.ext.mes.pcn.apiservice.serviceimpl.webservice.DcsForEquipmentServer; //import cn.estsh.i3plus.ext.mes.pcn.apiservice.serviceimpl.webservice.DcsForEquipmentServer;
import org.apache.cxf.Bus; //import org.apache.cxf.Bus;
import org.apache.cxf.jaxws.EndpointImpl; //import org.apache.cxf.jaxws.EndpointImpl;
import org.apache.cxf.transport.servlet.CXFServlet; //import org.apache.cxf.transport.servlet.CXFServlet;
import org.springframework.beans.factory.annotation.Autowired; //import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.web.servlet.ServletRegistrationBean; //import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean; //import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; //import org.springframework.context.annotation.Configuration;
//
import javax.xml.ws.Endpoint; //import javax.xml.ws.Endpoint;
//
/** ///**
* @Description : WebService Server // * @Description : WebService Server 服务配置
* WSDL URL: /block/softswitch/server/web-service?wsdl // * WSDL URL: /block/softswitch/server/web-service?wsdl
* @Reference : // * @Reference :
* @Author : wei.peng // * @Author : wei.peng
* @CreateDate : 2019/9/10 3:13 // * @CreateDate : 2019/9/10 下午3:13
* @Modify: // * @Modify:
**/ // **/
@Configuration //@Configuration
public class WebServiceConfig { //public class WebServiceConfig {
//
@Autowired // @Autowired
private Bus bus; // private Bus bus;
//
@Bean("cxfServletRegistration") // @Bean("cxfServletRegistration")
public ServletRegistrationBean dispatcherServlet() { // public ServletRegistrationBean dispatcherServlet() {
return new ServletRegistrationBean(new CXFServlet(), "/*"); // return new ServletRegistrationBean(new CXFServlet(), "/*");
} // }
//
@Bean // @Bean
public Endpoint endpoint() { // public Endpoint endpoint() {
EndpointImpl endpoint = new EndpointImpl(bus, new DcsForEquipmentServer()); // EndpointImpl endpoint = new EndpointImpl(bus, new DcsForEquipmentServer());
endpoint.publish("/DCSForEquipmentService"); // endpoint.publish("/DCSForEquipmentService");
return endpoint; // return endpoint;
} // }
} //}

Loading…
Cancel
Save