From c45b5724f6285f0fd6f0c096e5f26ec04a4872e0 Mon Sep 17 00:00:00 2001 From: "castle.zang" Date: Thu, 10 Oct 2024 19:35:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E6=B3=A8=E9=87=8A=E6=8E=89we?= =?UTF-8?q?bservice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pcn/apiservice/config/WebServiceConfig.java | 118 ++++++++++----------- 1 file changed, 59 insertions(+), 59 deletions(-) diff --git a/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/config/WebServiceConfig.java b/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/config/WebServiceConfig.java index edfdb17..a035b0a 100644 --- a/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/config/WebServiceConfig.java +++ b/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/config/WebServiceConfig.java @@ -1,59 +1,59 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache ImppLicense, Version 2.0 (the - * "ImppLicense"); you may not use this file except in compliance - * with the ImppLicense. You may obtain a copy of the ImppLicense at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the ImppLicense is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the ImppLicense for the - * specific language governing permissions and limitations - * under the ImppLicense. - */ -package cn.estsh.i3plus.ext.mes.pcn.apiservice.config; - - - -import cn.estsh.i3plus.ext.mes.pcn.apiservice.serviceimpl.webservice.DcsForEquipmentServer; -import org.apache.cxf.Bus; -import org.apache.cxf.jaxws.EndpointImpl; -import org.apache.cxf.transport.servlet.CXFServlet; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.web.servlet.ServletRegistrationBean; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -import javax.xml.ws.Endpoint; - -/** - * @Description : WebService Server 服务配置 - * WSDL URL: /block/softswitch/server/web-service?wsdl - * @Reference : - * @Author : wei.peng - * @CreateDate : 2019/9/10 下午3:13 - * @Modify: - **/ -@Configuration -public class WebServiceConfig { - - @Autowired - private Bus bus; - - @Bean("cxfServletRegistration") - public ServletRegistrationBean dispatcherServlet() { - return new ServletRegistrationBean(new CXFServlet(), "/*"); - } - - @Bean - public Endpoint endpoint() { - EndpointImpl endpoint = new EndpointImpl(bus, new DcsForEquipmentServer()); - endpoint.publish("/DCSForEquipmentService"); - return endpoint; - } -} +///** +// * Licensed to the Apache Software Foundation (ASF) under one +// * or more contributor license agreements. See the NOTICE file +// * distributed with this work for additional information +// * regarding copyright ownership. The ASF licenses this file +// * to you under the Apache ImppLicense, Version 2.0 (the +// * "ImppLicense"); you may not use this file except in compliance +// * with the ImppLicense. You may obtain a copy of the ImppLicense at +// * +// * http://www.apache.org/licenses/LICENSE-2.0 +// * +// * Unless required by applicable law or agreed to in writing, +// * software distributed under the ImppLicense is distributed on an +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// * KIND, either express or implied. See the ImppLicense for the +// * specific language governing permissions and limitations +// * under the ImppLicense. +// */ +//package cn.estsh.i3plus.ext.mes.pcn.apiservice.config; +// +// +// +//import cn.estsh.i3plus.ext.mes.pcn.apiservice.serviceimpl.webservice.DcsForEquipmentServer; +//import org.apache.cxf.Bus; +//import org.apache.cxf.jaxws.EndpointImpl; +//import org.apache.cxf.transport.servlet.CXFServlet; +//import org.springframework.beans.factory.annotation.Autowired; +//import org.springframework.boot.web.servlet.ServletRegistrationBean; +//import org.springframework.context.annotation.Bean; +//import org.springframework.context.annotation.Configuration; +// +//import javax.xml.ws.Endpoint; +// +///** +// * @Description : WebService Server 服务配置 +// * WSDL URL: /block/softswitch/server/web-service?wsdl +// * @Reference : +// * @Author : wei.peng +// * @CreateDate : 2019/9/10 下午3:13 +// * @Modify: +// **/ +//@Configuration +//public class WebServiceConfig { +// +// @Autowired +// private Bus bus; +// +// @Bean("cxfServletRegistration") +// public ServletRegistrationBean dispatcherServlet() { +// return new ServletRegistrationBean(new CXFServlet(), "/*"); +// } +// +// @Bean +// public Endpoint endpoint() { +// EndpointImpl endpoint = new EndpointImpl(bus, new DcsForEquipmentServer()); +// endpoint.publish("/DCSForEquipmentService"); +// return endpoint; +// } +//}