锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲色偷拍另类无码专区,亚洲日本一线产区和二线 ,亚洲风情亚Aⅴ在线发布http://www.tkk7.com/zqli/category/28420.html涓哄鏃ョ泭錛屼負(fù)閬撴棩鎹熴?/description>zh-cnMon, 24 Mar 2008 10:58:05 GMTMon, 24 Mar 2008 10:58:05 GMT60[杞琞Axis1.2 涓婼OAPMonitor闂鐨勮В鍐?http://www.tkk7.com/zqli/archive/2008/03/24/188268.html鏀炬按鑰佸?/dc:creator>鏀炬按鑰佸?/author>Mon, 24 Mar 2008 08:04:00 GMThttp://www.tkk7.com/zqli/archive/2008/03/24/188268.htmlhttp://www.tkk7.com/zqli/comments/188268.htmlhttp://www.tkk7.com/zqli/archive/2008/03/24/188268.html#Feedback0http://www.tkk7.com/zqli/comments/commentRss/188268.htmlhttp://www.tkk7.com/zqli/services/trackbacks/188268.htmlAxis1.2錛婮dk1.5錛婽omcat5.5.12 錛屽畨瑁呮垚鍔熶互鍚庯紝SOAPMonitor鑳藉惎鍔紝浣嗘槸綰㈠瓧鐨勪竴涓蹭俊鎭細(xì)The SOAPMonitor is unable to communicate with the server. 灝辮〃紺哄惎鍔ㄤ笉鎴愬姛錛屾姌鑵懼嚑澶╋紝google鏌ユ壘浜?jiǎn)濂藉淇℃伅锛屼篃娌℃湁涓涓‘鍒囩殑璇存硶錛屽浗鍐呮湁浜鴻鐗堟湰闂錛屼技涔巃xis1.2鍙傜敤浜巎dk1.4鎴栨槸tomcat5.0鐗堟湰錛岃繕鐪熻瘯榪囨敼浜?jiǎn)锛屼篃娌℃湁鏁堟灉锛屽湪java鎺у埗鍙頒笂鏈夋彁紺洪潪娉曠殑鏈湴涓繪満鍦板潃銆備竴嬈″伓鐒剁殑鏈轟細(xì)錛岃鎴戠煡閬撹鏀瑰摢涓暟鎹簡(jiǎn)銆傦紙鍚屼竴鍙版満鍣ㄤ笂瀹夎澶氫釜tomcat錛岀浉鍚岀殑绔彛鍐嶇幇鍐茬獊鏃跺氨闇瑕佸绔彛榪涜鏇存敼錛?br /> 鍙兘鏄粯璁ょ殑5001绔彛琚崰鐢紝灝哸xis\WEB-INF涓嬬殑web.xml鏂囦歡涓殑SOAPMonitor鐨勭鍙i粯璁ょ殑5001鏀逛負(fù)鍏朵粬鐨勪笉浼?xì)鍑虹幇鍐步H佺殑绔彛錛岄棶棰樿В鍐熾?br /> 鍞夛紝鏈夋椂涓涓笉璧風(fēng)溂鐨勯棶棰樹(shù)篃鑳芥姌鑵炬浜猴紝瑙e喅鍚庡彧浼?xì)涓澹板徆鎭?/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>錛屽叿浣撳唴瀹瑰涓嬶細(xì)
<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
鍛靛懙錛屽ソ涓嶅鏄撴姌鑵懼ソ浜?jiǎn)锛岀湅鏉ュ師鏉ョ殑鎯虫硶杩樻槸瀵圭殑锛屽彧涓崢q囧湪閰嶇疆鏂囦歡鏃跺嚭浜?jiǎn)闂銆?/font>

]]>
鍊熷姪WSE3.0鐮旂┒WS-Addressing瑙勮寖銆?/title><link>http://www.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://www.tkk7.com/zqli/archive/2008/01/11/174521.html</guid><wfw:comment>http://www.tkk7.com/zqli/comments/174521.html</wfw:comment><comments>http://www.tkk7.com/zqli/archive/2008/01/11/174521.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/zqli/comments/commentRss/174521.html</wfw:commentRss><trackback:ping>http://www.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>錛夛紝瀵逛簬瀛︿範(fàn)WS-Addressing鏄瘒涓嶉敊鐨勫笘瀛愩傛寜鐓ф璐寸殑鏂規(guī)硶榪涜錛屽湪榪借釜Soap娑堟伅鏃訛紝鎶涘嚭寮傚父銆傚湪鏈紑鍚疌lient绔疻SE鍔熻兘鏃訛紝Soap Toolkit 3.0鑳借拷韙埌soap娑堟伅錛岃屼笖錛宺esponse鏄劇ず浜?jiǎn)wse鐨勭壒鎬с?br /> <br />    <br />       涓轟簡(jiǎn)浣跨敤Soap Toolkit 3.0錛屾垜浠湪WS client绔緭鍏ョ殑鐩爣鍦板潃涓猴細(xì)<a href="http://localhost:8080/WSEWebService/Service.asmx">http://localhost:8080/WSEWebService/Service.asmx</a>銆?br />       Soap Toolkit 3.0璁劇疆涓猴細(xì)<br />        <br />        Listen<br />        Local port:8080<br /> <br />        Forward to<br />        Destination:localhost<br />        Destination:80<br />        涔嬫墍浠ヨ繖鏍瘋緗紝鍥犱負(fù)鍦↖IS閲岃緗殑鏈満Web Services涓猴細(xì)<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="jvfhbpv" class="t">wsa:To</span><span id="fttbxbt" class="m">></span><span id="npnjfjj" class="tx"><a href="http://localhost/WSEWebService/Service.asmx">http://localhost:8080/WSEWebService/Service.asmx</a></span><span id="vhlrnpr" class="m"></</span><span id="vbndhzp" class="t">wsa:To</span><span id="rtxdpxx" class="m">></span> 錛岃屼笉鏄?span class="m"><</span><span id="xtflxhr" class="t">wsa:To</span><span id="frnjxtj" class="m">></span><span id="ntptxhj" class="tx"><a href="http://localhost/WSEWebService/Service.asmx">http://localhost:80/WSEWebService/Service.asmx</a></span><span id="jvtxllv" class="m"></</span><span id="lzfrvfp" class="t">wsa:To</span><span id="npvtvph" class="m">>.鍥犳錛宒estination涓嶅彲杈撅紝鎶涘嚭濡備笂寮傚父銆?br />          鍦ㄧ綉涓婃煡浜?jiǎn)璧勬枡鍙戠帋图?xì)<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 />          涓嶈繃錛屽ソ鐨勬秷鎭槸錛學(xué)SE浠?.0寮濮嬪氨鎻愪緵浜?jiǎn)鍙互杩巾t埌SOAP娑堟伅鐨勮瘖鏂伐鍏楓?br /> <img height="553" alt="" src="http://www.tkk7.com/images/blogjava_net/zqli/16464/o_Diagnostics-WSE.jpg" width="513" border="0" /><br /> <br /> 鍕鵑塃nable Message Trace錛屽湪璋冭瘯榪囩▼涓紝灝嗙敓鎴怚nputTrace.webinfo鍜孫utputTrace.webinfo鏂囦歡錛岄噷闈㈣褰曚簡(jiǎn)鎴戜滑鎯寵鐨勪俊鎭紝鍒版錛屼笉闇瑕佸熷姪鍏朵粬Trace宸ュ叿渚垮彲榪借釜鍒癝oap娑堟伅銆?br />          </span> <img src ="http://www.tkk7.com/zqli/aggbug/174521.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/zqli/" target="_blank">鏀炬按鑰佸?/a> 2008-01-11 10:17 <a href="http://www.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://www.tkk7.com/zqli/archive/2008/01/08/173553.html鏀炬按鑰佸?/dc:creator>鏀炬按鑰佸?/author>Tue, 08 Jan 2008 02:32:00 GMThttp://www.tkk7.com/zqli/archive/2008/01/08/173553.htmlhttp://www.tkk7.com/zqli/comments/173553.htmlhttp://www.tkk7.com/zqli/archive/2008/01/08/173553.html#Feedback0http://www.tkk7.com/zqli/comments/commentRss/173553.htmlhttp://www.tkk7.com/zqli/services/trackbacks/173553.html        Destination   host:localhost
       Destination   port:80 

       Soap Toolkit鏄鎴風(fēng)鍜屾湇鍔″櫒涓殑涓搴фˉ錛宭ocal   port鏄疭oap   Toolkit鐨勭洃鍚鍙o紙鎵浠?0绔彛涓鑸笉鑳戒嬌鐢紝闄ら潪鐗規(guī)畩璁懼畾錛夛紝鍑℃槸緇忚繃local   port鐨勮姹傞兘浼?xì)琚埅涓嬫潵锛岀劧鍚庣敱Soap   Toolkit杞彂鍒癉estination   host錛欴estination   port鍘匯?br />        鎵浠ワ紝W(xué)eb Services Client瑕佸皢绔彛鎸囧畾鍒癟race   Utility鐨刲ocal   port(浠繪剰璁懼畾涓涓鍙?錛孴race   Utility鐨凞estination   port鎸囧畾鍒癢ebService鐨勭鍙c傝繖鏍鳳紝灝卞彲浠ユ埅鑾稴oap娑堟伅浜?jiǎn)銆?

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

涓轟簡(jiǎn)璁?/span>SOA鐨勫簲鐢ㄨ兘澶熸洿鍔犵殑鎴愮啛錛屼竴浜涙爣鍑嗗寲緇勭粐(涓昏鏈?/span>W3C錛?/span>OASIS)瀵?/span>Web Services鐨勫姛鑳借繘琛屼簡(jiǎn)鎵╁睍錛屼負(fù)姝ゅ埗瀹氫簡(jiǎn)涓緋誨垪鐨?/span>WS-*瑙勮寖銆傞氳繃榪欎簺瑙勮寖錛屼嬌寰?/span>Web Services鍦ㄥ疄闄呭簲鐢ㄤ腑鐨勮兘鍔涘緱鍒頒簡(jiǎn)寰堝ぇ鐨勫寮猴紝榪欎簺鑳藉姏涓昏浣撶幇鍦ㄥ鏈嶅姟璐ㄩ噺鐨勪繚闅滀笂錛屼緥濡傚畨鍏紝鍙潬鎬э紝浜嬪姟絳夌瓑銆傚叾涓紝WS-Addressing瑙勮寖浣滀負(fù)涓涓熀紜錛屼負(fù)鍏朵綑鐨勮鑼冩彁渚涗簡(jiǎn)閲嶈鐨勬敮鎸佸姛鑳斤紝鍥犳鏈夊繀瑕佸湪浜?jiǎn)瑙e叾浠栬鑼冨墠锛岄鍏堟繁鍏ヤ簡(jiǎn)瑙?/span>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緋誨垪

鍙傝冭祫鏂欙細(xì)WS-Addressing Specification



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

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

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

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

濡傜涓閮ㄥ垎鏈鍚庢弿榪扮殑閭f牱錛屼竴涓熀鏈殑WSDL鏂囨。鍖呭惈7涓噸瑕佺殑鍏冪礌銆備笅闈㈠皢鍒嗗埆浠嬬粛榪欏嚑涓厓绱犱互鍙?qiáng)浠栦滑鐨勪綔鐢ㄣ?/p>

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

  • Types - 鏁版嵁綾誨瀷瀹氫箟鐨勫鍣紝瀹冧嬌鐢ㄦ煇縐嶇被鍨嬬郴緇?涓鑸湴浣跨敤XML Schema涓殑綾誨瀷緋葷粺)銆?
  • Message - 閫氫俊娑堟伅鐨勬暟鎹粨鏋勭殑鎶借薄綾誨瀷鍖栧畾涔夈備嬌鐢═ypes鎵瀹氫箟鐨勭被鍨嬫潵瀹氫箟鏁翠釜娑堟伅鐨勬暟鎹粨鏋勩?
  • Operation - 瀵規(guī)湇鍔′腑鎵鏀寔鐨勬搷浣滅殑鎶借薄鎻忚堪錛屼竴鑸崟涓狾peration鎻忚堪浜?jiǎn)涓涓闂叆鍙g殑璇鋒眰/鍝嶅簲娑堟伅瀵廣?
  • PortType - 瀵逛簬鏌愪釜璁塊棶鍏ュ彛鐐圭被鍨嬫墍鏀寔鐨勬搷浣滅殑鎶借薄闆嗗悎錛岃繖浜涙搷浣滃彲浠ョ敱涓涓垨澶氫釜鏈嶅姟璁塊棶鐐規(guī)潵鏀寔銆?
  • 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/

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

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

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

<?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妯″紡鐨勫唴緗被鍨嬨佸鏉傜被鍨嬫垨鍏冪礌鎻忚堪浜?jiǎn)娑堟伅鐨勬湁鏁堣礋铦插Q?/p>

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

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

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

1銆乨efinitions鍏冪礌

鎵鏈夌殑WSDL鏂囨。鐨勬牴鍏冪礌鍧囨槸definitions鍏冪礌銆傝鍏冪礌灝佽浜?jiǎn)鏁翠釜鏂囨。锛屽悓鏃堕氳繃鍏秐ame鎻愪緵浜?jiǎn)涓涓猈SDL鏂囨。銆傞櫎浜?jiǎn)鎻愪緵涓涓懡鍚嶇┖闂村錛岃鍏冪礌娌℃湁鍏朵粬浣滅敤錛屾晠涓嶄綔璇︾粏鎻忚堪銆?/p>

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

<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閲囩敤浜?jiǎn)W3C XML妯″紡鍐呯疆綾誨瀷浣滀負(fù)鍏跺熀鏈被鍨嬬郴緇熴倀ypes鍏冪礌鐢ㄤ綔涓涓鍣紝鐢ㄤ簬瀹氫箟XML妯″紡鍐呯疆綾誨瀷涓病鏈夋弿榪扮殑鍚勭鏁版嵁綾誨瀷銆傚綋澹版槑娑堟伅閮ㄥ垎鐨勬湁鏁堣礋杞? 鏃訛紝娑堟伅瀹氫箟浣跨敤浜?jiǎn)鍦╰ypes鍏冪礌涓畾涔夌殑鏁版嵁綾誨瀷鍜屽厓绱犮傚湪鏈枃鐨刉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>

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

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

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

3銆乮mport鍏冪礌

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

import鐨勬牸寮忓涓嬶細(xì)

蹇呴』鏈塶amespace灞炴у拰location灞炴э細(xì)

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

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

4銆乵essage鍏冪礌

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

<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>

璇ラ儴鍒嗘槸娑堟伅鏍煎紡鐨勬娊璞″畾涔夛細(xì)瀹氫箟浜?jiǎn)涓や釜娑堟伅sayHelloResponse鍜宻ayHelloRequest錛?/p>

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

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

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

5銆乸ortType鍏冪礌

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

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

    <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瀹氫箟浜?jiǎn)鏈嶅姟鐨勮皟鐢ㄦā寮忕殑绫诲瀷锛寴q欓噷鍖呭惈涓涓搷浣渟ayHello鏂規(guī)硶錛屽悓鏃跺寘鍚玦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鏉ヨ闂寜鐓у墠闈㈡弿榪扮殑璁塊棶鍏ュ彛鐐圭被鍨嬮儴緗茬殑璁塊棶鍏ュ彛銆傚叾涓瀹氫簡(jiǎn)鍦ㄥ叿浣?a target="_blank" 銆?/p>

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

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

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

    <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鏈嶅姟涓紝鎻愪緵浜?jiǎn)涓涓湇鍔¤闂叆鍙o紝璁塊棶鍦板潃鏄?a href="http://localhost:8080/xfire/services/HelloService" target="_blank">http://localhost:8080/xfire/services/HelloService錛屼嬌鐢ㄧ殑娑堟伅妯″紡鏄敱鍓嶉潰鐨刡inding鎵瀹氫箟鐨勩?/p>

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

]]>
主站蜘蛛池模板: 色噜噜的亚洲男人的天堂| 免费看一级做a爰片久久| 国产国拍精品亚洲AV片| 色欲aⅴ亚洲情无码AV| 四虎影在线永久免费四虎地址8848aa | 亚洲国产精品无码久久一线| 五月天婷婷免费视频| 亚洲?V乱码久久精品蜜桃| 精品韩国亚洲av无码不卡区| 免费一级毛片在级播放| 亚洲成a人片在线观看天堂无码 | 最近最好的中文字幕2019免费| 亚洲啪啪免费视频| 美女被cao免费看在线看网站| 亚洲一级特黄特黄的大片| 成人爱做日本视频免费| 精品亚洲福利一区二区| 久久亚洲中文字幕精品一区| 久久久久久一品道精品免费看| 亚洲男人电影天堂| 性色av免费观看| jizz免费观看视频| 亚洲AV日韩AV高潮无码专区| a毛片基地免费全部视频| 亚洲精品无码不卡在线播放| 亚洲一区二区视频在线观看| 青青草无码免费一二三区| 亚洲a视频在线观看| 男人的天堂亚洲一区二区三区 | 亚洲理论片在线观看| 女人18特级一级毛片免费视频| 黄色三级三级三级免费看| 久久九九亚洲精品| 最新仑乱免费视频| 国产99久久久国产精免费| 久久久久亚洲AV无码观看| 国产猛烈高潮尖叫视频免费| 国偷自产一区二区免费视频 | 成人免费观看男女羞羞视频| 久久久久久久久亚洲| 精品久久久久久久免费加勒比|