Spring+hebinate+xfire整合的web services服务器例子

  • c6_982097
    了解作者
  • 71.6KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-14 00:01
    上传日期
完整的整合示例,架包请自己导入,希望对 用框架做web services的人有所帮助 需要架包的米我 303743000
Spring+Hebinate+xfire整合web services服务与客户端测试.rar
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/626d8b4b7b37011214d445fc/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/626d8b4b7b37011214d445fc/bg1.jpg"><div class="c x0 y1 w2 h2"><div class="t m0 x1 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0">&#37197;&#32622;<span class="_ _0"> </span><span class="ff2">web services<span class="_"> </span></span>&#26381;&#21153;&#22120;<span class="_ _0"> </span><span class="ff2">s<span class="_ _1"></span>pring +hebinate</span></div><div class="t m0 x2 h3 y3 ff1 fs0 fc0 sc0 ls0 ws0">&#19968; &#39318;&#20808;&#37197;&#32622;&#19968;&#20010;<span class="_ _0"> </span><span class="ff2">web services </span>&#30340;&#24037;&#31243;&#65292;&#27969;&#31243;&#21487;&#21442;&#32771;&#32593;&#19978;&#31034;&#20363;</div><div class="t m0 x2 h3 y4 ff1 fs0 fc0 sc0 ls0 ws0">&#20108; &#23548;&#20837;&#24037;&#31243;&#38656;&#35201;&#30340;<span class="_ _0"> </span><span class="ff2">spring<span class="_"> </span></span>&#26694;&#26550;&#21644;<span class="_ _0"> </span><span class="ff2">he<span class="_ _1"></span>binate<span class="_ _0"> </span><span class="ff1">&#26694;&#26550;</span></span></div><div class="t m0 x2 h3 y5 ff1 fs0 fc0 sc0 ls0 ws0">&#19977; &#37197;&#32622;<span class="_ _0"> </span><span class="ff2">W<span class="_ _1"></span>eb.xml</span></div><div class="t m0 x2 h4 y6 ff3 fs1 fc1 sc0 ls0 ws0">&lt;?<span class="fc2">xml<span class="fc0"> <span class="fc3">version</span>=<span class="ff4 fc4">"1.0"</span> <span class="fc3">encoding</span>=<span class="ff4 fc4">"UTF-8"</span></span></span>?&gt;</div><div class="t m0 x2 h4 y7 ff3 fs1 fc1 sc0 ls0 ws0">&lt;<span class="fc2">web-app<span class="fc0"> <span class="fc3">xmlns</span>=<span class="ff4 fc4">"http://java.sun.com/xml/ns/javaee"</span> </span></span></div><div class="t m0 x2 h4 y8 ff3 fs1 fc3 sc0 ls0 ws0">xmlns:xsi<span class="fc0">=<span class="ff4 fc4">"http://www.w3.org/2001/XMLSchema-instance"</span> </span>version<span class="fc0">=<span class="ff4 fc4">"2.5"</span> </span></div><div class="t m0 x2 h4 y9 ff3 fs1 fc3 sc0 ls0 ws0">xsi:schemaLocation<span class="fc0">=<span class="ff4 fc4">"http://java.sun.com/xml/ns/javaee </span></span></div><div class="t m0 x2 h4 ya ff4 fs1 fc4 sc0 ls0 ws0">http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"<span class="ff3 fc1">&gt;</span></div><div class="t m0 x2 h4 yb ff3 fs1 fc0 sc0 ls0 ws0"> </div><div class="t m0 x2 h5 yc ff3 fs1 fc0 sc0 ls0 ws0"> <span class="_ _2"> </span><span class="fc5">&lt;!-- begin Spring<span class="_ _0"> </span><span class="ff1">&#37197;&#32622; </span>--&gt;</span> </div><div class="t m0 x2 h4 yd ff3 fs1 fc1 sc0 ls0 ws0">&lt;<span class="fc2">context-param</span>&gt;<span class="fc0"> </span></div><div class="t m0 x2 h4 ye ff3 fs1 fc0 sc0 ls0 ws0"> <span class="fc1">&lt;<span class="fc2">param-name</span>&gt;</span>contextConfigLocation<span class="fc1">&lt;/<span class="fc2">param-name</span>&gt;</span> </div><div class="t m0 x2 h4 yf ff3 fs1 fc0 sc0 ls0 ws0"> <span class="fc1">&lt;<span class="fc2">param-value</span>&gt;</span>/WEB-INF/applicationContext.xml,/WEB-INF/xfire-</div><div class="t m0 x2 h4 y10 ff3 fs1 fc0 sc0 ls0 ws0">servlet.xml<span class="fc1">&lt;/<span class="fc2">param-value</span>&gt;</span> </div><div class="t m0 x2 h4 y11 ff3 fs1 fc1 sc0 ls0 ws0">&lt;/<span class="fc2">context-param</span>&gt;<span class="fc0"> </span></div><div class="t m0 x2 h4 y12 ff3 fs1 fc1 sc0 ls0 ws0">&lt;<span class="fc2">listener</span>&gt;<span class="fc0"> </span></div><div class="t m0 x2 h4 y13 ff3 fs1 fc0 sc0 ls0 ws0"> <span class="fc1">&lt;<span class="fc2">listener-</span></span></div><div class="t m0 x2 h4 y14 ff3 fs1 fc2 sc0 ls0 ws0">class<span class="fc1">&gt;<span class="fc0">org.springframework.web.context.ContextLoaderListener</span>&lt;/</span></div><div class="t m0 x2 h4 y15 ff3 fs1 fc2 sc0 ls0 ws0">listener-class<span class="fc1">&gt;<span class="fc0"> </span></span></div><div class="t m0 x2 h4 y16 ff3 fs1 fc1 sc0 ls0 ws0">&lt;/<span class="fc2">listener</span>&gt;<span class="fc0"> </span></div><div class="t m0 x2 h4 y17 ff3 fs1 fc0 sc0 ls0 ws0"> <span class="fc1">&lt;<span class="fc2">listener</span>&gt;</span> </div><div class="t m0 x2 h4 y18 ff3 fs1 fc0 sc0 ls0 ws0"> <span class="fc1">&lt;<span class="fc2">listener-</span></span></div><div class="t m0 x2 h4 y19 ff3 fs1 fc2 sc0 ls0 ws0">class<span class="fc1">&gt;<span class="fc0">org.springframework.web.util.IntrospectorCleanupListener</span>&lt;/</span></div><div class="t m0 x2 h4 y1a ff3 fs1 fc2 sc0 ls0 ws0">listener-class<span class="fc1">&gt;<span class="fc0"> </span></span></div><div class="t m0 x2 h4 y1b ff3 fs1 fc1 sc0 ls0 ws0">&lt;/<span class="fc2">listener</span>&gt;<span class="fc0"> </span></div><div class="t m0 x2 h5 y1c ff3 fs1 fc5 sc0 ls0 ws0">&lt;!-- end Spring<span class="_ _0"> </span><span class="ff1">&#37197;&#32622; </span>--&gt;<span class="fc0"> </span></div><div class="t m0 x2 h4 y1d ff3 fs1 fc0 sc0 ls0 ws0"> </div><div class="t m0 x2 h5 y1e ff3 fs1 fc5 sc0 ls0 ws0">&lt;!-- begin XFire <span class="ff1">&#37197;&#32622; </span>--&gt;<span class="fc0"> </span></div><div class="t m0 x2 h4 y1f ff3 fs1 fc1 sc0 ls0 ws0">&lt;<span class="fc2">servlet</span>&gt;<span class="fc0"> </span></div><div class="t m0 x2 h4 y20 ff3 fs1 fc0 sc0 ls0 ws0"> <span class="fc1">&lt;<span class="fc2">servlet-name</span>&gt;</span>xfire<span class="fc1">&lt;/<span class="fc2">servlet-name</span>&gt;</span> </div><div class="t m0 x2 h4 y21 ff3 fs1 fc0 sc0 ls0 ws0"> <span class="fc1">&lt;<span class="fc2">servlet-</span></span></div><div class="t m0 x2 h4 y22 ff3 fs1 fc2 sc0 ls0 ws0">class<span class="fc1">&gt;<span class="fc0">org.springframework.web.servlet.DispatcherServlet</span>&lt;/</span>servlet-</div><div class="t m0 x2 h4 y23 ff3 fs1 fc2 sc0 ls0 ws0">class<span class="fc1">&gt;<span class="fc0"> </span></span></div><div class="t m0 x2 h4 y24 ff3 fs1 fc1 sc0 ls0 ws0">&lt;/<span class="fc2">servlet</span>&gt;<span class="fc0"> </span></div><div class="t m0 x2 h4 y25 ff3 fs1 fc1 sc0 ls0 ws0">&lt;<span class="fc2">servlet-mapping</span>&gt;<span class="fc0"> </span></div><div class="t m0 x2 h4 y26 ff3 fs1 fc0 sc0 ls0 ws0"> <span class="fc1">&lt;<span class="fc2">servlet-name</span>&gt;</span>xfire<span class="fc1">&lt;/<span class="fc2">servlet-name</span>&gt;</span> </div><div class="t m0 x2 h4 y27 ff3 fs1 fc0 sc0 ls0 ws0"> <span class="fc1">&lt;<span class="fc2">url-pattern</span>&gt;</span>*.ws<span class="fc1">&lt;/<span class="fc2">url-pattern</span>&gt;</span> </div><div class="t m0 x2 h4 y28 ff3 fs1 fc1 sc0 ls0 ws0">&lt;/<span class="fc2">servlet-mapping</span>&gt;<span class="fc0"> </span></div><div class="t m0 x2 h4 y29 ff3 fs1 fc1 sc0 ls0 ws0">&lt;<span class="fc2">servlet</span>&gt;<span class="fc0"> </span></div><div class="t m0 x2 h5 y2a ff3 fs1 fc0 sc0 ls0 ws0"> <span class="fc5">&lt;!-- <span class="ff1">&#37197;&#21512;<span class="_ _0"> </span></span>Spring<span class="_ _0"> </span><span class="ff1">&#23481;&#22120;&#20013;<span class="_ _3"> </span></span>XFire<span class="_ _3"> </span><span class="ff1">&#19968;&#36215;&#24037;&#20316;&#30340;<span class="_ _0"> </span></span>Servlet--&gt;</span> </div><div class="t m0 x2 h4 y2b ff3 fs1 fc0 sc0 ls0 ws0"> <span class="fc1">&lt;<span class="fc2">servlet-name</span>&gt;</span>xfireServlet<span class="fc1">&lt;/<span class="fc2">servlet-name</span>&gt;</span> </div><div class="t m0 x2 h4 y2c ff3 fs1 fc0 sc0 ls0 ws0"> <span class="fc1">&lt;<span class="fc2">servlet-</span></span></div><div class="t m0 x2 h4 y2d ff3 fs1 fc2 sc0 ls0 ws0">class<span class="fc1">&gt;<span class="fc0">org.codehaus.xfire.spring.XFireSpringServlet</span>&lt;/</span>servlet-class<span class="fc1">&gt;<span class="fc0"> </span></span></div></div></div><div class="pi" data-data='{"ctm":[1.611850,0.000000,0.000000,1.611850,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐