<mexHttpBinding>

指定用於 HTTP 上 WS-MetadataExchange (WS-MEX) 訊息交換之繫結的設定。

<<system.serviceModel>>
  <bindings>
    <mexHttpBinding>

<mexHttpBinding>
   <binding 
       closeTimeout="TimeSpan" 
       name="string" 
       openTimeout="TimeSpan" 
       receiveTimeout="TimeSpan"
       sendTimeout="TimeSpan">
   </binding>
</mexHttpBinding>

屬性和項目

屬性

屬性 描述

closeTimeout

指定關閉作業完成其作業之時間間隔的 TimeSpan 值。這個值應該大於或等於 Zero。預設為 00:01:00。

name

包含此繫結之組態名稱的字串。這個值應該是唯一的,因為它會當做繫結的識別。每一個繫結都有一個 namenamespace 屬性,兩者結合在一起便可在服務的中繼資料中唯一識別各個繫結。此外,這個名稱在相同型別的繫結中也是唯一的。

openTimeout

指定開啟作業完成其作業之時間間隔的 TimeSpan 值。這個值應該大於或等於 Zero。預設為 00:01:00。

receiveTimeout

指定接收作業完成其作業之時間間隔的 TimeSpan 值。這個值應該大於或等於 Zero。預設為 00:10:00。

sendTimeout

指定傳送作業完成其作業之時間間隔的 TimeSpan 值。這個值應該大於或等於 Zero。預設為 00:01:00。

子項目

無。

父項目

項目 描述

<bindings>

這個項目會保存標準和自訂繫結的集合。每一個項目都是由它的唯一 name 所識別。服務會使用 name 來連結繫結,以便利用繫結。

備註

這個繫結實質上是停用安全性的 WSHttpBinding 繫結。它支援大部分的中繼資料要求。

請參閱

參考

CreateMexHttpBinding
MexHttpBindingElement

概念

<binding>

其他資源

How to: Publish Metadata for a Service Using a Configuration File
Publishing and Retrieving Metadata Over a Custom Binding
Metadata
Windows Communication Foundation Bindings
Configuring System-Provided Bindings
Using Bindings to Configure Services and Clients