<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    靈魂-放水

    為學日益,為道日損。

    BlogJava 首頁 新隨筆 聯(lián)系 聚合 管理
      296 Posts :: 10 Stories :: 274 Comments :: 0 Trackbacks
         cnblogs里有篇帖子http://idior.cnblogs.com/articles/436801.htmlApplied WSE 3.0 to Web Service Project ),對于學習WS-Addressing是篇不錯的帖子。按照此貼的方法進行,在追蹤Soap消息時,拋出異常。在未開啟Client端WSE功能時,Soap Toolkit 3.0能追蹤到soap消息,而且,response顯示了wse的特性。

       
          為了使用Soap Toolkit 3.0,我們在WS client端輸入的目標地址為:http://localhost:8080/WSEWebService/Service.asmx
          Soap Toolkit 3.0設置為:
           
           Listen
           Local port:8080

           Forward to
           Destination:localhost
           Destination:80
           之所以這樣設置,因為在IIS里設置的本機Web Services為:http://localhost:80/WSEWebService/Service.asmx。Soap Toolkit 在8080端口監(jiān)聽來自client端的消息,并將消息遞交到IIS監(jiān)聽的80端口。

           可當開啟client端wse功能時,拋出如下異常:

    Microsoft.Web.Services3.Addressing.AddressingFault: Destination Unreachable ---&gt; System.Exception:

    WSE816:

    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.

    The &lt;To&gt; header received contained "http://localhost:8080/WSEWebService/Service.asmx"

    while the HTTP Request Url was "http://localhost/WSEWebService/Service.asmx".


            查看 Soap Toolkit 監(jiān)聽到的SOAP消息可以發(fā)現(xiàn),Request消息的SoapHeader中, 目標地址仍然為<wsa:To>http://localhost:8080/WSEWebService/Service.asmx</wsa:To> ,而不是<wsa:To>http://localhost:80/WSEWebService/Service.asmx</wsa:To>.因此,destination不可達,拋出如上異常。
             在網(wǎng)上查了資料發(fā)現(xiàn):
              “

    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.

    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:

          <wsa:To xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">

    http://MyServer/MyService/Service.asmx</wsa:To>

    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.

    One unfortunate consequence of this behavior is that you cannot use transparent tracing tools like tcpTrace and MSSoapT 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.

    ”,大概意思也就是MSSoapt(Soap Toolkit )不支持WSE中WS-Addressing<wsa:To>。所以在調(diào)試WSE提供的特性時,不能再用 tcpTrace或者MSSoapT這樣的工具來追蹤Soap消息。

             不過,好的消息是,WSE從2.0開始就提供了可以追蹤到SOAP消息的診斷工具。


    勾選Enable Message Trace,在調(diào)試過程中,將生成InputTrace.webinfo和OutputTrace.webinfo文件,里面記錄了我們想要的信息,到此,不需要借助其他Trace工具便可追蹤到Soap消息。
            
    posted on 2008-01-11 10:17 放水老倌 閱讀(1436) 評論(0)  編輯  收藏 所屬分類: Web Services&SOA
    主站蜘蛛池模板: 国产大片91精品免费观看男同| 久久亚洲国产精品123区| 国产产在线精品亚洲AAVV| 亚洲一区视频在线播放| 无人在线观看免费高清| 亚洲国产精品网站在线播放| 国产午夜亚洲精品| 免费无码黄动漫在线观看| 精品国产福利尤物免费| 亚洲Av无码一区二区二三区| 无码欧精品亚洲日韩一区夜夜嗨 | 十九岁在线观看免费完整版电影| 亚洲六月丁香六月婷婷色伊人| 免费一级特黄特色大片在线| 国产精品视频白浆免费视频| 亚洲6080yy久久无码产自国产| 亚洲AV午夜成人影院老师机影院| fc2免费人成在线| 免费的一级黄色片| 亚洲精品福利视频| 毛片无码免费无码播放| 亚洲第一页在线视频| 美女被免费喷白浆视频| 亚洲色精品三区二区一区| 亚洲AV伊人久久青青草原| 男的把j放进女人下面视频免费| 91在线亚洲精品专区| 免费观看大片毛片| 免费高清国产视频| 日本亚洲免费无线码| 中文字幕中韩乱码亚洲大片| 国产免费不卡视频| 国产成人高清精品免费观看| 亚洲免费观看在线视频| 亚洲综合色在线观看亚洲| 4399好看日本在线电影免费| 黄 色一级 成 人网站免费| 亚洲人成毛片线播放| 国产亚洲人成网站观看| 又色又污又黄无遮挡的免费视| 亚洲高清免费在线观看|