spring cxf訪問遠端websevice接口

一:spring配置文件

<beans xmlns="http://www.springframework.org/schema/beans"

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://cxf.apache.org/jaxws   
        http://cxf.apache.org/schemas/jaxws.xsd">


<!-- 終端查詢WS-->
<jaxws:client id="terminalQueryFacade"
serviceClass="cn.linkea.tmsmng.common.service.facade.TerminalQueryFacade"
address="${tmsmng.server.url}/services/terminalQueryFacade?wsdl" />

<!-- 終端轉移操作客戶端 -->
<jaxws:client id="terminalShiftFacade"
serviceClass="cn.linkea.tmsmng.common.service.facade.TerminalShiftFacade"
address="${tmsmng.server.url}/services/terminalShiftFacadeImpl?wsdl" />

</beans>


二:引入接口直接調用

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章