锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久久青草青青国产亚洲免观,久久精品亚洲综合,亚洲精品无码专区http://m.tkk7.com/zqli/category/28420.html涓哄鏃ョ泭錛屼負閬撴棩鎹熴?/description>zh-cnMon, 24 Mar 2008 10:58:05 GMTMon, 24 Mar 2008 10:58:05 GMT60[杞琞Axis1.2 涓婼OAPMonitor闂鐨勮В鍐?http://m.tkk7.com/zqli/archive/2008/03/24/188268.html鏀炬按鑰佸?/dc:creator>鏀炬按鑰佸?/author>Mon, 24 Mar 2008 08:04:00 GMThttp://m.tkk7.com/zqli/archive/2008/03/24/188268.htmlhttp://m.tkk7.com/zqli/comments/188268.htmlhttp://m.tkk7.com/zqli/archive/2008/03/24/188268.html#Feedback0http://m.tkk7.com/zqli/comments/commentRss/188268.htmlhttp://m.tkk7.com/zqli/services/trackbacks/188268.htmlAxis1.2錛婮dk1.5錛婽omcat5.5.12 錛屽畨瑁呮垚鍔熶互鍚庯紝SOAPMonitor鑳藉惎鍔紝浣嗘槸綰㈠瓧鐨勪竴涓蹭俊鎭細The SOAPMonitor is unable to communicate with the server. 灝辮〃紺哄惎鍔ㄤ笉鎴愬姛錛屾姌鑵懼嚑澶╋紝google鏌ユ壘浜嗗ソ澶氫俊鎭紝涔熸病鏈変竴涓‘鍒囩殑璇存硶錛屽浗鍐呮湁浜鴻鐗堟湰闂錛屼技涔巃xis1.2鍙傜敤浜巎dk1.4鎴栨槸tomcat5.0鐗堟湰錛岃繕鐪熻瘯榪囨敼浜嗭紝涔熸病鏈夋晥鏋滐紝鍦╦ava鎺у埗鍙頒笂鏈夋彁紺洪潪娉曠殑鏈湴涓繪満鍦板潃銆備竴嬈″伓鐒剁殑鏈轟細錛岃鎴戠煡閬撹鏀瑰摢涓暟鎹簡銆傦紙鍚屼竴鍙版満鍣ㄤ笂瀹夎澶氫釜tomcat錛岀浉鍚岀殑绔彛鍐嶇幇鍐茬獊鏃跺氨闇瑕佸绔彛榪涜鏇存敼錛?br /> 鍙兘鏄粯璁ょ殑5001绔彛琚崰鐢紝灝哸xis\WEB-INF涓嬬殑web.xml鏂囦歡涓殑SOAPMonitor鐨勭鍙i粯璁ょ殑5001鏀逛負鍏朵粬鐨勪笉浼氬嚭鐜板啿紿佺殑绔彛錛岄棶棰樿В鍐熾?br /> 鍞夛紝鏈夋椂涓涓笉璧風溂鐨勯棶棰樹篃鑳芥姌鑵炬浜猴紝瑙e喅鍚庡彧浼氫竴澹板徆鎭?/font>

 鍦╰omcat瀹瑰櫒涓嬭嚜鍒涘緩鐨剋eb搴旂敤涓篃鍚姩axis鏈嶅姟錛屾兂瑕佹坊鍔燬OAPMonitor鐨勬柟娉曟槸錛?br /> 1銆佺紪璇?br />  灝哸xis鏍圭洰褰曚笅鐨凷OAPMonitorApplet.java鏂囦歡澶嶅埗鍒皐eb搴旂敤鐨勬牴鐩綍涓嬶紝緙栬瘧姝ゆ枃浠跺悓鏃跺皢鐢熸垚鐨勭被鏂囦歡澶嶅埗鍒板簲鐢ㄦ牴鐩綍涓嬬殑WEB-INF鐩綍涓嬨?br /> 2銆佷慨鏀箇eb.xml鏂囦歡
淇敼WEB-INF鐩綍涓嬬殑web.xml鏂囦歡錛屾坊鍔犱袱涓厓绱?lt;servlet>鍜?lt;servlet-mapping>錛屽叿浣撳唴瀹瑰涓嬶細
<servlet>
    <servlet-name>SOAPMonitorService</servlet-name>
    <display-name>SOAPMonitorService</display-name>
    <servlet-class>
        org.apache.axis.monitor.SOAPMonitorService
    </servlet-class>
    <init-param>
      <param-name>SOAPMonitorPort</param-name>
      <param-value>5005</param-value>
    </init-param>
    <load-on-startup>100</load-on-startup>
  </servlet>
 <servlet-mapping>
    <servlet-name>SOAPMonitorService</servlet-name>
    <url-pattern>/SOAPMonitor</url-pattern>
  </servlet-mapping>
3銆佷慨鏀箂erver-config.wsdd鏂囦歡
閰嶇疆鏂囦歡涓坊鍔爏oapmonitor鐨勯厤緗俊鎭錛?br /> <handler name="soapmonitor" type="java:org.apache.axis.handlers.SOAPMonitorHandler">
  <service name="SOAPMonitorService" provider="java:RPC">
  <parameter name="allowedMethods" value="publishMessage"/>
  <parameter name="scope" value="Application"/>
  <parameter name="className" value="org.apache.axis.monitor.SOAPMonitorService"/>
 </service>
瀵逛簬闇瑕佽soapmonitor鐩戞帶鐨剋eb鏈嶅姟錛屽湪鍏舵湇鍔¤緗腑娣誨姞淇℃伅濡備笅
<service name="TestAdding" provider="java:RPC">
  <parameter name="allowedMethods" value="getAdd"/>
  <parameter name="className" value="test.TestAdding"/>
   <requestFlow>
    <handler type="soapmonitor"/>
   </requestFlow>
   <responseFlow>
    <handler type="soapmonitor"/>
   </responseFlow>
 </service>
4銆佽繍琛屾祴璇?br /> http://localhost:8080/TestAdding/SOAPMonitor 
Test_soapmonitor.bmp
鍛靛懙錛屽ソ涓嶅鏄撴姌鑵懼ソ浜嗭紝鐪嬫潵鍘熸潵鐨勬兂娉曡繕鏄鐨勶紝鍙笉榪囧湪閰嶇疆鏂囦歡鏃跺嚭浜嗛棶棰樸?/font>

]]>
鍊熷姪WSE3.0鐮旂┒WS-Addressing瑙勮寖銆?/title><link>http://m.tkk7.com/zqli/archive/2008/01/11/174521.html</link><dc:creator>鏀炬按鑰佸?/dc:creator><author>鏀炬按鑰佸?/author><pubDate>Fri, 11 Jan 2008 02:17:00 GMT</pubDate><guid>http://m.tkk7.com/zqli/archive/2008/01/11/174521.html</guid><wfw:comment>http://m.tkk7.com/zqli/comments/174521.html</wfw:comment><comments>http://m.tkk7.com/zqli/archive/2008/01/11/174521.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/zqli/comments/commentRss/174521.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/zqli/services/trackbacks/174521.html</trackback:ping><description><![CDATA[     cnblogs閲屾湁綃囧笘瀛?a >http://idior.cnblogs.com/articles/436801.html</a>錛?a class="singleposttitle" id="AjaxHolder_ctl01_TitleUrl" >Applied WSE 3.0 to Web Service Project </a>錛夛紝瀵逛簬瀛︿範WS-Addressing鏄瘒涓嶉敊鐨勫笘瀛愩傛寜鐓ф璐寸殑鏂規硶榪涜錛屽湪榪借釜Soap娑堟伅鏃訛紝鎶涘嚭寮傚父銆傚湪鏈紑鍚疌lient绔疻SE鍔熻兘鏃訛紝Soap Toolkit 3.0鑳借拷韙埌soap娑堟伅錛岃屼笖錛宺esponse鏄劇ず浜唚se鐨勭壒鎬с?br /> <br />    <br />       涓轟簡浣跨敤Soap Toolkit 3.0錛屾垜浠湪WS client绔緭鍏ョ殑鐩爣鍦板潃涓猴細<a href="http://localhost:8080/WSEWebService/Service.asmx">http://localhost:8080/WSEWebService/Service.asmx</a>銆?br />       Soap Toolkit 3.0璁劇疆涓猴細<br />        <br />        Listen<br />        Local port:8080<br /> <br />        Forward to<br />        Destination:localhost<br />        Destination:80<br />        涔嬫墍浠ヨ繖鏍瘋緗紝鍥犱負鍦↖IS閲岃緗殑鏈満Web Services涓猴細<a href="http://localhost:8080/WSEWebService/Service.asmx">http://localhost:80/WSEWebService/Service.asmx</a>銆係oap Toolkit 鍦?080绔彛鐩戝惉鏉ヨ嚜client绔殑娑堟伅錛屽茍灝嗘秷鎭掍氦鍒癐IS鐩戝惉鐨?0绔彛銆?br /> <br />        鍙綋寮鍚痗lient绔痺se鍔熻兘鏃訛紝鎶涘嚭濡備笅寮傚父錛? <fieldset style="width: 1026px; height: 171px"> <p style="margin: 0in 0in 0pt"><span style="font-size: 8pt; font-family: 'Courier New'">Microsoft.Web.Services3.Addressing.AddressingFault: Destination Unreachable ---&gt; System.Exception: </span></p> <p style="margin: 0in 0in 0pt"><span style="font-size: 8pt; font-family: 'Courier New'">WSE816: </span></p> <p style="margin: 0in 0in 0pt"><span style="font-size: 8pt; font-family: 'Courier New'">The &lt;To&gt; header must match the value of an incoming message's HTTP Request Url if the soap receiver does not have an actor name. </span></p> <p style="margin: 0in 0in 0pt"><span style="font-size: 8pt; font-family: 'Courier New'">The &lt;To&gt; header received contained "http://localhost:8080/WSEWebService/Service.asmx" </span></p> <p style="margin: 0in 0in 0pt"><span style="font-size: 8pt; font-family: 'Courier New'">while the HTTP Request Url was "http://localhost/WSEWebService/Service.asmx".</span></p> </fieldset><br />         鏌ョ湅 Soap Toolkit 鐩戝惉鍒扮殑SOAP娑堟伅鍙互鍙戠幇錛孯equest娑堟伅鐨凷oapHeader涓? 鐩爣鍦板潃浠嶇劧涓?span class="m"><</span><span id="xniemcn" class="t">wsa:To</span><span id="tdarqag" class="m">></span><span id="ephnbqm" class="tx"><a href="http://localhost/WSEWebService/Service.asmx">http://localhost:8080/WSEWebService/Service.asmx</a></span><span id="tfyrzaf" class="m"></</span><span id="sxfynoa" class="t">wsa:To</span><span id="lunvoif" class="m">></span> 錛岃屼笉鏄?span class="m"><</span><span id="efcrrwx" class="t">wsa:To</span><span id="jdwttbu" class="m">></span><span id="pnvsabh" class="tx"><a href="http://localhost/WSEWebService/Service.asmx">http://localhost:80/WSEWebService/Service.asmx</a></span><span id="ndhaijv" class="m"></</span><span id="jltqjkh" class="t">wsa:To</span><span id="fngzhzw" class="m">>.鍥犳錛宒estination涓嶅彲杈撅紝鎶涘嚭濡備笂寮傚父銆?br />          鍦ㄧ綉涓婃煡浜嗚祫鏂欏彂鐜幫細<br />           “ <p style="margin: 0in 0in 0pt">WS-Addressing moves the destination URL of the message into the message to enable routing and scenarios where messages are delivered over multiple protocols. Before WS-Addressing the URL of the destination was only available in the protocol part of the message. Is you were sending a SOAP message over HTTP, the URL was stored in the HTTP part of the message. You had no access to the URL from within your SOAP processor – unless your Web server vendor chose to give you access to the HTTP headers.</p> <p style="margin: 0in 0in 0pt">Now with WS-Addressing built into WSE, the Web service platform can actually determine if a message was indeed intended for the service that received it because WSE adds the <to> element to the header of the SOAP message:</p> <p style="margin: 0in 0in 0pt"><span style="font-size: 8pt; font-family: 'Courier New'">      <wsa:To xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"></span></p> <p style="margin: 0in 0in 0pt 0.5in"><span style="font-size: 8pt; font-family: 'Courier New'"><a href="http://myserver/MyService/Service.asmx%3c/wsa:To"><span style="color: windowtext">http://MyServer/MyService/Service.asmx</wsa:To</span></a>></span></p> <p style="margin: 0in 0in 0pt">WSE is actually being smart about the header and rejects messages where the destination in the <wsa:To> header and the URL in the HTTP header do not match.</p> <p style="margin: 0in 0in 0pt">One unfortunate consequence of this behavior is that you cannot use transparent tracing tools like <a >tcpTrace</a> and <a >MSSoapT</a> for message debugging. These tools act like an intermediary receiver and they do cause the URLs in the <To> header and in the HTTP header to not match.</p> ”錛屽ぇ姒傛剰鎬濅篃灝辨槸MSSoapt(Soap Toolkit )涓嶆敮鎸乄SE涓璚S-Addressing<wsa:To>銆傛墍浠ュ湪璋冭瘯WSE鎻愪緵鐨勭壒鎬ф椂錛屼笉鑳藉啀鐢?nbsp;<a >tcpTrace</a>鎴栬?a >MSSoapT</a>榪欐牱鐨勫伐鍏鋒潵榪借釜Soap娑堟伅銆?br /> <br />          涓嶈繃錛屽ソ鐨勬秷鎭槸錛學SE浠?.0寮濮嬪氨鎻愪緵浜嗗彲浠ヨ拷韙埌SOAP娑堟伅鐨勮瘖鏂伐鍏楓?br /> <img height="553" alt="" src="http://m.tkk7.com/images/blogjava_net/zqli/16464/o_Diagnostics-WSE.jpg" width="513" border="0" /><br /> <br /> 鍕鵑塃nable Message Trace錛屽湪璋冭瘯榪囩▼涓紝灝嗙敓鎴怚nputTrace.webinfo鍜孫utputTrace.webinfo鏂囦歡錛岄噷闈㈣褰曚簡鎴戜滑鎯寵鐨勪俊鎭紝鍒版錛屼笉闇瑕佸熷姪鍏朵粬Trace宸ュ叿渚垮彲榪借釜鍒癝oap娑堟伅銆?br />          </span> <img src ="http://m.tkk7.com/zqli/aggbug/174521.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/zqli/" target="_blank">鏀炬按鑰佸?/a> 2008-01-11 10:17 <a href="http://m.tkk7.com/zqli/archive/2008/01/11/174521.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>浣跨敤Soap Toolkit 3.0 Trace Utility璺熻釜SOAP娑堟伅http://m.tkk7.com/zqli/archive/2008/01/08/173553.html鏀炬按鑰佸?/dc:creator>鏀炬按鑰佸?/author>Tue, 08 Jan 2008 02:32:00 GMThttp://m.tkk7.com/zqli/archive/2008/01/08/173553.htmlhttp://m.tkk7.com/zqli/comments/173553.htmlhttp://m.tkk7.com/zqli/archive/2008/01/08/173553.html#Feedback0http://m.tkk7.com/zqli/comments/commentRss/173553.htmlhttp://m.tkk7.com/zqli/services/trackbacks/173553.html        Destination   host:localhost
       Destination   port:80 

       Soap Toolkit鏄鎴風鍜屾湇鍔″櫒涓殑涓搴фˉ錛宭ocal   port鏄疭oap   Toolkit鐨勭洃鍚鍙o紙鎵浠?0绔彛涓鑸笉鑳戒嬌鐢紝闄ら潪鐗規畩璁懼畾錛夛紝鍑℃槸緇忚繃local   port鐨勮姹傞兘浼氳鎴笅鏉ワ紝鐒跺悗鐢盨oap   Toolkit杞彂鍒癉estination   host錛欴estination   port鍘匯?br />        鎵浠ワ紝Web Services Client瑕佸皢绔彛鎸囧畾鍒癟race   Utility鐨刲ocal   port(浠繪剰璁懼畾涓涓鍙?錛孴race   Utility鐨凞estination   port鎸囧畾鍒癢ebService鐨勭鍙c傝繖鏍鳳紝灝卞彲浠ユ埅鑾稴oap娑堟伅浜嗐?

]]>
銆愯漿銆慦S-Addressing 浠庣悊璁哄埌瀹炶返 --- SOA鍩虹瑙勮寖浠嬬粛http://m.tkk7.com/zqli/archive/2007/12/27/170969.html鏀炬按鑰佸?/dc:creator>鏀炬按鑰佸?/author>Thu, 27 Dec 2007 10:37:00 GMThttp://m.tkk7.com/zqli/archive/2007/12/27/170969.htmlhttp://m.tkk7.com/zqli/comments/170969.htmlhttp://m.tkk7.com/zqli/archive/2007/12/27/170969.html#Feedback0http://m.tkk7.com/zqli/comments/commentRss/170969.htmlhttp://m.tkk7.com/zqli/services/trackbacks/170969.html

涓轟簡璁?/span>SOA鐨勫簲鐢ㄨ兘澶熸洿鍔犵殑鎴愮啛錛屼竴浜涙爣鍑嗗寲緇勭粐(涓昏鏈?/span>W3C錛?/span>OASIS)瀵?/span>Web Services鐨勫姛鑳借繘琛屼簡鎵╁睍錛屼負姝ゅ埗瀹氫簡涓緋誨垪鐨?/span>WS-*瑙勮寖銆傞氳繃榪欎簺瑙勮寖錛屼嬌寰?/span>Web Services鍦ㄥ疄闄呭簲鐢ㄤ腑鐨勮兘鍔涘緱鍒頒簡寰堝ぇ鐨勫寮猴紝榪欎簺鑳藉姏涓昏浣撶幇鍦ㄥ鏈嶅姟璐ㄩ噺鐨勪繚闅滀笂錛屼緥濡傚畨鍏紝鍙潬鎬э紝浜嬪姟絳夌瓑銆傚叾涓紝WS-Addressing瑙勮寖浣滀負涓涓熀紜錛屼負鍏朵綑鐨勮鑼冩彁渚涗簡閲嶈鐨勬敮鎸佸姛鑳斤紝鍥犳鏈夊繀瑕佸湪浜嗚В鍏朵粬瑙勮寖鍓嶏紝棣栧厛娣卞叆浜嗚ВWS-Addressing瑙勮寖銆傛湰鏂囧皢浠庢蹇典笂浠嬬粛璇ヨ鑼冿紝騫跺笇鏈涢氳繃WSE3.0鐨勫疄渚嬫潵鐪嬬湅璇ヨ鑼冩槸濡備綍琚疄璺電殑銆?br />
        鐞嗚綃?br />         WS-Addressing 闂鐨勫紩鍑?br />         WS-Addressing EndpointReference
        WS-Addressing Message Addressing Properties

        瀹炶返綃?/strong>
        Applied WSE 3.0 to Web Service Project   
        Use Web Service Thought Message --- SoapClient

閴翠簬SOA鐨勬蹇靛茍娌℃湁涓哄ぇ瀹舵墍騫挎硾鐞嗚В錛屽湪閫傚綋鐨勬椂鍊欐湁蹇呰鍐欎竴涓?span style="color: #333399;">SOA涔卞脊銆?/span>
涓嶈繃鍏堣浣犺浣忎互涓嬪嚑鍙ヨ瘽錛?br />
SOA is an integration solution.
SOA is message oriented first.
The Key character of SOA is loosely coupled.
SOA is enriched
by creating composite apps.

鐩稿叧璧勬簮錛?br /> Web Services鐨勮璁′笌妯″紡
Web Services Security緋誨垪

鍙傝冭祫鏂欙細WS-Addressing Specification



]]>
[杞琞WSDL(Web鏈嶅姟鎻忚堪璇█)璇︾粏瑙f瀽http://m.tkk7.com/zqli/archive/2007/12/27/170967.html鏀炬按鑰佸?/dc:creator>鏀炬按鑰佸?/author>Thu, 27 Dec 2007 10:34:00 GMThttp://m.tkk7.com/zqli/archive/2007/12/27/170967.htmlhttp://m.tkk7.com/zqli/comments/170967.htmlhttp://m.tkk7.com/zqli/archive/2007/12/27/170967.html#Feedback0http://m.tkk7.com/zqli/comments/commentRss/170967.htmlhttp://m.tkk7.com/zqli/services/trackbacks/170967.html涓錛歐SDL瀹氫箟

    WSDL鏄竴涓敤浜庣簿紜弿榪癢eb鏈嶅姟鐨勬枃妗o紝WSDL鏂囨。鏄竴涓伒寰猈SDL XML妯″紡鐨刋ML鏂囨。銆俉SDL 鏂囨。灝哤eb鏈嶅姟瀹氫箟涓烘湇鍔¤闂偣鎴栫鍙g殑闆嗗悎銆傚湪 WSDL 涓紝鐢變簬鏈嶅姟璁塊棶鐐瑰拰娑堟伅鐨勬娊璞″畾涔夊凡浠庡叿浣撶殑鏈嶅姟閮ㄧ講鎴栨暟鎹牸寮忕粦瀹氫腑鍒嗙鍑烘潵錛屽洜姝ゅ彲浠ュ鎶借薄瀹氫箟榪涜鍐嶆浣跨敤錛氭秷鎭紝鎸囧浜ゆ崲鏁版嵁鐨勬娊璞℃弿榪幫紱鑰岀 鍙g被鍨嬶紝鎸囨搷浣滅殑鎶借薄闆嗗悎銆傜敤浜庣壒瀹氱鍙g被鍨嬬殑鍏蜂綋鍗忚鍜屾暟鎹牸寮忚鑼冩瀯鎴愪簡鍙互鍐嶆浣跨敤鐨勭粦瀹氥傚皢Web璁塊棶鍦板潃涓庡彲鍐嶆浣跨敤鐨勭粦瀹氱浉鍏寵仈錛屽彲浠ュ畾涔変竴 涓鍙o紝鑰岀鍙g殑闆嗗悎鍒欏畾涔変負鏈嶅姟銆?/p>

   涓涓猈SDL鏂囨。閫氬父鍖呭惈7涓噸瑕佺殑鍏冪礌錛屽嵆types銆乮mport銆乵essage銆乸ortType銆乷peration銆乥inding銆? service鍏冪礌銆傝繖浜涘厓绱犲祵濂楀湪definitions鍏冪礌涓紝definitions鏄疻SDL鏂囨。鐨勬牴鍏冪礌銆傛枃绔犵殑涓嬩竴閮ㄥ垎灝嗕細璇︾粏浠嬬粛WSDL 鐨勫熀鏈粨鏋勩?/p>

浜岋細WSDL鐨勫熀鏈粨鏋?-姒傝堪

濡傜涓閮ㄥ垎鏈鍚庢弿榪扮殑閭f牱錛屼竴涓熀鏈殑WSDL鏂囨。鍖呭惈7涓噸瑕佺殑鍏冪礌銆備笅闈㈠皢鍒嗗埆浠嬬粛榪欏嚑涓厓绱犱互鍙婁粬浠殑浣滅敤銆?/p>

WSDL 鏂囨。鍦╓eb鏈嶅姟鐨勫畾涔変腑浣跨敤涓嬪垪鍏冪礌錛?/p>

  • Types - 鏁版嵁綾誨瀷瀹氫箟鐨勫鍣紝瀹冧嬌鐢ㄦ煇縐嶇被鍨嬬郴緇?涓鑸湴浣跨敤XML Schema涓殑綾誨瀷緋葷粺)銆?
  • Message - 閫氫俊娑堟伅鐨勬暟鎹粨鏋勭殑鎶借薄綾誨瀷鍖栧畾涔夈備嬌鐢═ypes鎵瀹氫箟鐨勭被鍨嬫潵瀹氫箟鏁翠釜娑堟伅鐨勬暟鎹粨鏋勩?
  • Operation - 瀵規湇鍔′腑鎵鏀寔鐨勬搷浣滅殑鎶借薄鎻忚堪錛屼竴鑸崟涓狾peration鎻忚堪浜嗕竴涓闂叆鍙g殑璇鋒眰/鍝嶅簲娑堟伅瀵廣?
  • PortType - 瀵逛簬鏌愪釜璁塊棶鍏ュ彛鐐圭被鍨嬫墍鏀寔鐨勬搷浣滅殑鎶借薄闆嗗悎錛岃繖浜涙搷浣滃彲浠ョ敱涓涓垨澶氫釜鏈嶅姟璁塊棶鐐規潵鏀寔銆?
  • Binding - 鐗瑰畾绔彛綾誨瀷鐨勫叿浣撳崗璁拰鏁版嵁鏍煎紡瑙勮寖鐨勭粦瀹氥?
  • Port - 瀹氫箟涓哄崗璁?鏁版嵁鏍煎紡緇戝畾涓庡叿浣揥eb璁塊棶鍦板潃緇勫悎鐨勫崟涓湇鍔¤闂偣銆?
  • Service- 鐩稿叧鏈嶅姟璁塊棶鐐圭殑闆嗗悎銆?

  鍙互鍙傝冧笅鍥炬潵鐞嗚В涓涓媁SDL鐨勬枃妗g粨鏋勫浘錛?img alt="WSDL鏂囨。鍏冪礌鐨勭粨鏋勫浘" src="http://p.blog.csdn.net/images/p_blog_csdn_net/juxtapose/wsdl-01.gif" />

WSDL鐨剎ml schema鍙互鍙傜収濡備笅緗戝潃錛?a target="_blank">http://schemas.xmlsoap.org/wsdl/

涓夛細WSDL鐨勫熀鏈粨鏋?-璇﹁堪

鏈妭灝嗛氳繃涓涓緥瀛愯緇嗘弿榪癢SDL鏂囨。姣忎釜鍏冪礌鐨勪綔鐢ㄣ備笅闈竴涓緥瀛愭槸涓涓畝鍗曠殑WSDL鏂囨。鐨勫唴瀹癸紝璇ユ枃妗g殑浜х敓鍙互鍙傝鎴戠殑鍙﹀涓綃囨枃绔狅細xfire寮鍙戝疄渚?-HelloWorld綃?/a> 銆?/p>

涓涓畝鍗曠殑Web Service鐨刉SDL鏂囨。錛岃鏈嶅姟鏀寔鍚嶄負sayHello鐨勫敮涓鎿嶄綔錛岃鎿嶄綔閫氳繃鍦╤ttp涓婅繍琛?a target="_blank" >SOAP鍗忚鏉ュ疄鐜扮殑銆傝璇鋒眰鎺ュ彈涓涓瓧絎︿覆name錛岀粡榪囧鐞嗗悗榪斿洖涓涓畝鍗曠殑瀛楃涓層傛枃妗e涓嬶細

<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions
    
targetNamespace="http://com.liuxiang.xfireDemo/HelloService"
    xmlns:tns
="http://com.liuxiang.xfireDemo/HelloService"
    xmlns:wsdlsoap
="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:soap12
="http://www.w3.org/2003/05/soap-envelope"
    xmlns:xsd
="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenc11
="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:soapenc12
="http://www.w3.org/2003/05/soap-encoding"
    xmlns:soap11
="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:wsdl
="http://schemas.xmlsoap.org/wsdl/">
    
<wsdl:types>
        
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            attributeFormDefault
="qualified" elementFormDefault="qualified"
            targetNamespace
="http://com.liuxiang.xfireDemo/HelloService">
            
<xsd:element name="sayHello">
                
<xsd:complexType>
                    
<xsd:sequence>
                        
<xsd:element maxOccurs="1" minOccurs="1"
                            name
="name" nillable="true" type="xsd:string" />
                    
</xsd:sequence>
                
</xsd:complexType>
            
</xsd:element>
            
<xsd:element name="sayHelloResponse">
                
<xsd:complexType>
                    
<xsd:sequence>
                        
<xsd:element maxOccurs="1" minOccurs="1"
                            name
="out" nillable="true" type="xsd:string" />
                    
</xsd:sequence>
                
</xsd:complexType>
            
</xsd:element>
        
</xsd:schema>
    
</wsdl:types>
    
<wsdl:message name="sayHelloResponse">
        
<wsdl:part name="parameters" element="tns:sayHelloResponse" />
    
</wsdl:message>
    
<wsdl:message name="sayHelloRequest">
        
<wsdl:part name="parameters" element="tns:sayHello" />
    
</wsdl:message>
    
<wsdl:portType name="HelloServicePortType">
        
<wsdl:operation name="sayHello">
            
<wsdl:input name="sayHelloRequest"
                message
="tns:sayHelloRequest" />
            
<wsdl:output name="sayHelloResponse"
                message
="tns:sayHelloResponse" />
        
</wsdl:operation>
    
</wsdl:portType>
    
<wsdl:binding name="HelloServiceHttpBinding"
        type
="tns:HelloServicePortType">
        
<wsdlsoap:binding style="document"
            transport
="http://schemas.xmlsoap.org/soap/http" />
        
<wsdl:operation name="sayHello">
            
<wsdlsoap:operation soapAction="" />
            
<wsdl:input name="sayHelloRequest">
                
<wsdlsoap:body use="literal" />
            
</wsdl:input>
            
<wsdl:output name="sayHelloResponse">
                
<wsdlsoap:body use="literal" />
            
</wsdl:output>
        
</wsdl:operation>
    
</wsdl:binding>
    
<wsdl:service name="HelloService">
        
<wsdl:port name="HelloServiceHttpPort"
            binding
="tns:HelloServiceHttpBinding">
            
<wsdlsoap:address
                
location="http://localhost:8080/xfire/services/HelloService" />
        
</wsdl:port>
    
</wsdl:service>
</wsdl:definitions>

♦ types鍏冪礌浣跨敤XML妯″紡璇█澹版槑鍦╓SDL鏂囨。涓殑鍏朵粬浣嶇疆浣跨敤鐨勫鏉傛暟鎹被鍨嬩笌鍏冪礌錛?/p>

♦ import鍏冪礌綾諱技浜嶺ML妯″紡鏂囨。涓殑import鍏冪礌錛岀敤浜庝粠鍏朵粬WSDL鏂囨。涓鍏SDL瀹氫箟錛?/p>

♦ message鍏冪礌浣跨敤鍦╓SDL鏂囨。鐨則ype鍏冪礌涓畾涔夋垨鍦╥mport鍏冪礌寮曠敤鐨勫閮╓SDL鏂囨。涓畾涔夌殑XML妯″紡鐨勫唴緗被鍨嬨佸鏉傜被鍨嬫垨鍏冪礌鎻忚堪浜嗘秷鎭殑鏈夋晥璐熻澆錛?/p>

♦ portType鍏冪礌鍜宱peration鍏冪礌鎻忚堪浜哤eb鏈嶅姟鐨勬帴鍙e茍瀹氫箟浜嗕粬鐨勬柟娉曘俻ortType鍏冪礌鍜宱peration鍏冪礌綾諱技浜? java鎺ュ彛鍜屾帴鍙d腑瀹氫箟鐨勬柟娉曞0鏄庛俹peration鍏冪礌浣跨敤涓涓垨鑰呭涓猰essage綾誨瀷鏉ュ畾涔変粬鐨勮緭鍏ュ拰杈撳嚭鐨勬湁鏁堣礋杞斤紱

♦ Binding鍏冪礌灝唒ortType鍏冪礌鍜宱peration鍏冪礌璧嬬粰涓涓壒孌婄殑鍗忚鍜岀紪鐮佹牱寮忥紱

♦ service鍏冪礌璐熻矗灝咺nternet鍦板潃璧嬬粰涓涓叿浣撶殑緇戝畾錛?/p>

1銆乨efinitions鍏冪礌

鎵鏈夌殑WSDL鏂囨。鐨勬牴鍏冪礌鍧囨槸definitions鍏冪礌銆傝鍏冪礌灝佽浜嗘暣涓枃妗o紝鍚屾椂閫氳繃鍏秐ame鎻愪緵浜嗕竴涓猈SDL鏂囨。銆傞櫎浜嗘彁渚涗竴涓懡鍚嶇┖闂村錛岃鍏冪礌娌℃湁鍏朵粬浣滅敤錛屾晠涓嶄綔璇︾粏鎻忚堪銆?/p>

涓嬮潰鐨勪唬鐮佹槸涓涓猟efinitions鍏冪礌鐨勭粨鏋勶細

<wsdl:definitions
    
targetNamespace="http://com.liuxiang.xfireDemo/HelloService"
    xmlns:tns
="http://com.liuxiang.xfireDemo/HelloService"
    xmlns:wsdlsoap
="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:soap12
="http://www.w3.org/2003/05/soap-envelope"
    xmlns:xsd
="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenc11
="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:soapenc12
="http://www.w3.org/2003/05/soap-encoding"
    xmlns:soap11
="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:wsdl
="http://schemas.xmlsoap.org/wsdl/">
</wsdl:definitions>

2銆乼ypes鍏冪礌

 WSDL閲囩敤浜哤3C XML妯″紡鍐呯疆綾誨瀷浣滀負鍏跺熀鏈被鍨嬬郴緇熴倀ypes鍏冪礌鐢ㄤ綔涓涓鍣紝鐢ㄤ簬瀹氫箟XML妯″紡鍐呯疆綾誨瀷涓病鏈夋弿榪扮殑鍚勭鏁版嵁綾誨瀷銆傚綋澹版槑娑堟伅閮ㄥ垎鐨勬湁鏁堣礋杞? 鏃訛紝娑堟伅瀹氫箟浣跨敤浜嗗湪types鍏冪礌涓畾涔夌殑鏁版嵁綾誨瀷鍜屽厓绱犮傚湪鏈枃鐨刉SDL鏂囨。涓殑types瀹氫箟錛?/p>

 

<wsdl:types>
        
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            attributeFormDefault
="qualified" elementFormDefault="qualified"
            targetNamespace
="http://com.liuxiang.xfireDemo/HelloService">
            
<xsd:element name="sayHello">
                
<xsd:complexType>
                    
<xsd:sequence>
                        
<xsd:element maxOccurs="1" minOccurs="1"
                            name
="name" nillable="true" type="xsd:string" />
                    
</xsd:sequence>
                
</xsd:complexType>
            
</xsd:element>
            
<xsd:element name="sayHelloResponse">
                
<xsd:complexType>
                    
<xsd:sequence>
                        
<xsd:element maxOccurs="1" minOccurs="1"
                            name
="out" nillable="true" type="xsd:string" />
                    
</xsd:sequence>
                
</xsd:complexType>
            
</xsd:element>
        
</xsd:schema>
    
</wsdl:types>

涓婇潰鏄暟鎹畾涔夐儴鍒嗭紝璇ラ儴鍒嗗畾涔変簡涓や釜鍏冪礌錛屼竴涓槸sayHello錛屼竴涓槸sayHelloResponse錛?/p>

sayHello錛氬畾涔変簡涓涓鏉傜被鍨嬶紝浠呬粎鍖呭惈涓涓畝鍗曠殑瀛楃涓詫紝灝嗘潵鐢ㄦ潵鎻忚堪鎿嶄綔鐨勫弬鍏ヤ紶鍏ラ儴鍒嗭紱

sayHelloResponse錛氬畾涔変簡涓涓鏉傜被鍨嬶紝浠呬粎鍖呭惈涓涓畝鍗曠殑瀛楃涓詫紝灝嗘潵鐢ㄦ潵鎻忚堪鎿嶄綔鐨勮繑鍥炲鹼紱

3銆乮mport鍏冪礌

import鍏冪礌浣垮緱鍙互鍦ㄥ綋鍓嶇殑WSDL鏂囨。涓嬌鐢ㄥ叾浠朩SDL鏂囨。涓寚瀹氱殑鍛藉悕絀洪棿涓殑瀹氫箟鍏冪礌銆傛湰渚嬪瓙涓病鏈変嬌鐢╥mport鍏冪礌銆傞氬父鍦ㄧ敤鎴峰笇鏈涙ā鍧楀寲WSDL鏂囨。鐨勬椂鍊欙紝璇ュ姛鑳芥槸闈炲父鏈夋晥鏋滅殑銆?/p>

import鐨勬牸寮忓涓嬶細

蹇呴』鏈塶amespace灞炴у拰location灞炴э細

namespace灞炴э細鍊煎繀欏諱笌姝e鍏ョ殑WSDL鏂囨。涓0鏄庣殑targetNamespace鐩稿尮閰嶏紱

location灞炴э細蹇呴』鎸囧悜涓涓疄闄呯殑WSDL鏂囨。錛屽茍涓旇鏂囨。涓嶈兘涓虹┖銆?/p>

4銆乵essage鍏冪礌

message鍏冪礌鎻忚堪浜哤eb鏈嶅姟浣跨敤娑堟伅鐨勬湁鏁堣礋杞姐俶essage鍏冪礌鍙互鎻忚堪杈撳嚭鎴栬呮帴鍙楁秷鎭殑鏈夋晥璐熻澆錛涜繕鍙互鎻忚堪SOAP鏂囦歡澶村拰閿欒detail鍏冪礌鐨勫唴瀹廣傚畾涔塵essage鍏冪礌鐨勬柟寮忓彇鍐充簬浣跨敤RPC鏍峰紡榪樻槸鏂囨。鏍峰紡鐨勬秷鎭紶閫掋傚湪鏈枃涓殑message鍏冪礌鐨勫畾涔夛紝鏈枃妗d嬌鐢ㄤ簡閲囩敤鏂囨。鏍峰紡鐨勬秷鎭紶閫掞細

<wsdl:message name="sayHelloResponse">
        
<wsdl:part name="parameters" element="tns:sayHelloResponse" />
    
</wsdl:message>
    
<wsdl:message name="sayHelloRequest">
        
<wsdl:part name="parameters" element="tns:sayHello" />
    
</wsdl:message>

璇ラ儴鍒嗘槸娑堟伅鏍煎紡鐨勬娊璞″畾涔夛細瀹氫箟浜嗕袱涓秷鎭痵ayHelloResponse鍜宻ayHelloRequest錛?/p>

sayHelloRequest錛歴ayHello鎿嶄綔鐨勮姹傛秷鎭牸寮忥紝鐢變竴涓秷鎭墖鏂粍鎴愶紝鍚嶅瓧涓簆arameters,鍏冪礌鏄垜浠墠闈㈠畾涔夌殑types涓殑鍏冪礌錛?/p>

sayHelloResponse錛歴ayHello鎿嶄綔鐨勫搷搴旀秷鎭牸寮忥紝鐢變竴涓秷鎭墖鏂粍鎴愶紝鍚嶅瓧涓簆arameters,鍏冪礌鏄垜浠墠闈㈠畾涔夌殑types涓殑鍏冪礌錛?/p>

 濡傛灉閲囩敤RPC鏍峰紡鐨勬秷鎭紶閫掞紝鍙渶瑕佸皢鏂囨。涓殑element鍏冪礌搴斾互淇敼涓簍ype鍗沖彲銆?/p>

5銆乸ortType鍏冪礌

portType鍏冪礌瀹氫箟浜哤eb鏈嶅姟鐨勬娊璞℃帴鍙c傝鎺ュ彛鏈夌偣綾諱技Java鐨勬帴鍙o紝閮芥槸瀹氫箟浜嗕竴涓娊璞$被鍨嬪拰鏂規硶錛屾病鏈夊畾涔夊疄鐜般傚湪WSDL涓紝 portType鍏冪礌鏄敱binding鍜宻ervice鍏冪礌鏉ュ疄鐜扮殑錛岃繖涓や釜鍏冪礌鐢ㄦ潵璇存槑Web鏈嶅姟瀹炵幇浣跨敤鐨処nternet鍗忚銆佺紪鐮佹柟妗堜互鍙? Internet鍦板潃銆?/p>

涓涓猵ortType涓彲浠ュ畾涔夊涓猳peration錛屼竴涓猳peration鍙互鐪嬩綔鏄竴涓柟娉曪紝鏈枃涓璚SDL鏂囨。鐨勫畾涔夛細

    <wsdl:portType name="HelloServicePortType">
        
<wsdl:operation name="sayHello">
            
<wsdl:input name="sayHelloRequest"
                message
="tns:sayHelloRequest" />
            
<wsdl:output name="sayHelloResponse"
                message
="tns:sayHelloResponse" />
        
</wsdl:operation>
    
</wsdl:portType>

portType瀹氫箟浜嗘湇鍔$殑璋冪敤妯″紡鐨勭被鍨嬶紝榪欓噷鍖呭惈涓涓搷浣渟ayHello鏂規硶錛屽悓鏃跺寘鍚玦nput鍜宱utput琛ㄦ槑璇ユ搷浣滄槸涓涓姹傦紡鍝? 搴旀ā寮忥紝璇鋒眰娑堟伅鏄墠闈㈠畾涔夌殑sayHelloRequest錛屽搷搴旀秷鎭槸鍓嶉潰瀹氫箟鐨剆ayHelloResponse銆俰nput琛ㄧず浼犻掑埌Web鏈嶅姟 鐨勬湁鏁堣礋杞斤紝output娑堟伅琛ㄧず浼犻掔粰瀹㈡埛鐨勬湁鏁堣礋杞姐?/p>

錛栥乥inding

binding鍏冪礌灝嗕竴涓娊璞ortType鏄犲皠鍒頒竴緇勫叿浣撳崗璁?SOAO鍜孒TTP)銆佹秷鎭紶閫掓牱寮忋佺紪鐮佹牱寮忋傞氬父binding鍏冪礌涓庡崗璁笓鏈夌殑鍏冪礌鍜屽湪涓璧蜂嬌鐢紝鏈枃涓殑渚嬪瓙錛?/p>

    <wsdl:binding name="HelloServiceHttpBinding"
        type
="tns:HelloServicePortType">
        
<wsdlsoap:binding style="document"
            transport
="http://schemas.xmlsoap.org/soap/http" />
        
<wsdl:operation name="sayHello">
            
<wsdlsoap:operation soapAction="" />
            
<wsdl:input name="sayHelloRequest">
                
<wsdlsoap:body use="literal" />
            
</wsdl:input>
            
<wsdl:output name="sayHelloResponse">
                
<wsdlsoap:body use="literal" />
            
</wsdl:output>
        
</wsdl:operation>
    
</wsdl:binding>

榪欓儴鍒嗗皢鏈嶅姟璁塊棶鐐圭殑鎶借薄瀹氫箟涓?a target="_blank" >SOAP HTTP緇戝畾錛屾弿榪板浣曢氳繃SOAP/HTTP鏉ヨ闂寜鐓у墠闈㈡弿榪扮殑璁塊棶鍏ュ彛鐐圭被鍨嬮儴緗茬殑璁塊棶鍏ュ彛銆傚叾涓瀹氫簡鍦ㄥ叿浣?a target="_blank" 銆?/p>

鍏蜂綋鐨勪嬌鐢ㄩ渶瑕佸弬鑰冪壒瀹氬崗璁畾涔夌殑鍏冪礌銆?/p>

錛椼乻ervice鍏冪礌鍜宲ort鍏冪礌

service鍏冪礌鍖呭惈涓涓垨鑰呭涓猵ort鍏冪礌錛屽叾涓瘡涓猵ort鍏冪礌琛ㄧず涓涓笉鍚岀殑Web鏈嶅姟銆俻ort鍏冪礌灝哢RL璧嬬粰涓涓壒瀹氱殑binding錛岀敋鑷沖彲浠ヤ嬌涓や釜鎴栬呭涓猵ort鍏冪礌灝嗕笉鍚岀殑URL璧嬪肩粰鐩稿悓鐨刡inding銆傛枃妗d腑鐨勪緥瀛愶細

    <wsdl:service name="HelloService">
        
<wsdl:port name="HelloServiceHttpPort"
            binding
="tns:HelloServiceHttpBinding">
            
<wsdlsoap:address
                
location="http://localhost:8080/xfire/services/HelloService" />
        
</wsdl:port>
    
</wsdl:service>

榪欓儴鍒嗘槸鍏蜂綋鐨刉eb鏈嶅姟鐨勫畾涔夛紝鍦ㄨ繖涓悕涓篐elloService鐨刉eb鏈嶅姟涓紝鎻愪緵浜嗕竴涓湇鍔¤闂叆鍙o紝璁塊棶鍦板潃鏄?a href="http://localhost:8080/xfire/services/HelloService" target="_blank">http://localhost:8080/xfire/services/HelloService錛屼嬌鐢ㄧ殑娑堟伅妯″紡鏄敱鍓嶉潰鐨刡inding鎵瀹氫箟鐨勩?/p>

銆銆鏈枃綆鍗曚粙緇嶄簡WSDL瑙勮寖鐨勭敤閫旓紝鍩烘湰緇撴瀯鍜屼嬌鐢ㄦ柟娉曪紝甯屾湜瀵瑰ぇ瀹跺涔燱SDL鏈夊府鍔┿?/p>

]]>
主站蜘蛛池模板: 国产成人精品一区二区三区免费| 亚洲精品高清国产麻豆专区| 亚洲中文无码卡通动漫野外| 人妻无码一区二区三区免费| 亚洲女人18毛片水真多| 日本高清免费不卡在线| 日韩电影免费在线观看网站| 亚洲国产精彩中文乱码AV| 免费阿v网站在线观看g| 一级毛片a免费播放王色电影| 免费中文字幕不卡视频| 日本免费在线中文字幕| 亚洲精品GV天堂无码男同| 亚洲精品午夜无码电影网| 精品久久洲久久久久护士免费| A级毛片高清免费视频在线播放| 亚洲七久久之综合七久久| 国产v亚洲v天堂无码网站| 四虎免费在线观看| 久久成人免费播放网站| 美女被暴羞羞免费视频| 在线亚洲97se亚洲综合在线| 日韩a级无码免费视频| 亚洲A∨精品一区二区三区下载| 亚洲欧洲第一a在线观看| 4399影视免费观看高清直播| 男男黄GAY片免费网站WWW| 亚洲成人福利在线| 亚洲精品无码午夜福利中文字幕| 在线看片无码永久免费aⅴ| 18pao国产成视频永久免费| 三级网站在线免费观看| 国产成人综合亚洲| 亚洲乱码在线观看| 亚洲五月六月丁香激情| 亚洲线精品一区二区三区| 7723日本高清完整版免费| APP在线免费观看视频| 亚洲一区二区三区免费| 无码色偷偷亚洲国内自拍| 亚洲AV人无码激艳猛片|