标签:meta ebs spring 命名空间 class str mod XML local
我们项目与其他系统集成的目录结构,这里的都是提供给对外系统调用的webService接口。
下面,把关于这些内容de文件一一贴出来:
module-ws.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd">
<import resource="classpath*:META-INF/cxf/cxf.xml"/>
<import resource="classpath*:META-INF/cxf/cxf-servlet.xml"/>
<import resource="classpath*:META-INF/cxf/cxf-extension-xml.xml"/>
<bean id="mdsBaseLineImportWsServiceImpl" class="avicit.mms.pdm.mdsbaselineimportws.ws.impl.MdsBaseLineImportWsServiceImpl"></bean>
<jaxws:endpoint id="mdsBaseLineImportWsService" implementor="#mdsBaseLineImportWsServiceImpl" address="/mdsBaseLineImportWsService">
</jaxws:endpoint>
<!--测试访问地址 http://localhost:9080/mms/ws/mdsBaseLineImportWsService?wsdl-->//这里是别的系统调用的地址
</beans>
MdsBaseLineImportWsService.java
package avicit.mms.pdm.mdsbaselineimportws.ws;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
@WebService(targetNamespace = "http://ws.mdsbaselineimportws.pdm") //webService接口的命名空间,不过不一定需要,本次接口集成的过程中,没用到
public interface MdsBaseLineImportWsService {
@WebMethod(operationName = "addBaseLine")
@WebResult(name = "result")
public String addBaseLine(@WebParam(name = "baseLineInfoXml") String baseLineInfoXml) throws Exception;
}
MdsBaseLineImportWsServiceImpl.java
标签:meta ebs spring 命名空间 class str mod XML local
原文地址:https://www.cnblogs.com/1012hq/p/11170961.html