无法在IE中浏览net.Tcp URL [英] Cannot Browse the net.Tcp URL in IE

查看:52
本文介绍了无法在IE中浏览net.Tcp URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用netTcp绑定托管我的服务.

I am hosting my services using the netTcp Bindings.

下面是它在网络配置中的外观

Below is how it looks in the web config

<   = ServiceMetadataBehavior " 名称 &"; " < 主机 >
                      < >
                           < 添加 baseAddress = http://localhost:55505/XPlatformConfigurationManager/ConfigurationManagerForManagement />
            < 添加   ; baseAddress = " net.tcp://localhost: 55502/XPlatformConfigurationManager/ConfigurationManagerForManagement "   />
                      </ >
                </ 主机        < 端点 地址 "" "                   绑定 = " " 合同 " IMetadataExchange " />
       < 端点   ; 地址 = ""
                  绑定 = " " 名称 " "   bindingConfiguration = " "                   合同 = " " >
          < 身份 > ;
            < userPrincipalName   ; = " dev \ tcs-vut "          </ 身份 >
        </ 端点 >
              </ >

<service behaviorConfiguration="ServiceMetadataBehavior" name="SyncSoft.XPlatform.V1.ConfigurationManager.ConfigurationManagerForManagement">
<host>
                         <baseAddresses>
                              <add baseAddress="http://localhost:55505/XPlatformConfigurationManager/ConfigurationManagerForManagement" />
            <add baseAddress="net.tcp://localhost:55502/XPlatformConfigurationManager/ConfigurationManagerForManagement" />
                         </baseAddresses>
                    </host>
        <endpoint address="net.tcp://localhost:55509/XPlatformConfigurationManager/ConfigurationManagerForManagement/mex" 
                  binding="mexTcpBinding" contract="IMetadataExchange"/>
        <endpoint address=""
                  binding="netTcpBinding" name="ManagementEndPoint"  bindingConfiguration="ConfigurationManagerNetTCPBinding" 
                  contract="SyncSoft.XPlatform.V1.ConfigurationManager.IServicesForManagement">
          <identity>
            <userPrincipalName value="dev\tcs-vut" />
          </identity>
        </endpoint>
               </service>

通过浏览net.tcp URL,我看不到我的wsdl." 即使给出 IMetadataExchange mexTcpBinding

I cannot see my wsdl by browing with the net.tcp URL  "net.tcp://localhost:55509/XPlatformConfigurationManager/ConfigurationManagerForManagement/mex" in IE even after giving the IMetadataExchange and mexTcpBinding

我可以通过浏览查看我的wsdl使用http URL " http://localhost:55505/XPlatformConfigurationManager/ConfigurationManagerForManagement

I can see my wsdl by browsing with the http URL  "http://localhost:55505/XPlatformConfigurationManager/ConfigurationManagerForManagement" in IE

推荐答案

您不能.元数据交换端点不会创建WSDL文档-它实现了元数据交换模式,在该模式下,客户端和mex端点交换一些信息(使用net.tcp协议,包括其所有框架). IE浏览器不 知道如何使用net.tcp协议进行通信(它只知道如何使用HTTP进行对话"),因此它将无法与网络进行对话".到net.tcp端点.

You can't. The metadata exchange endpoint does not create a WSDL document - it implements a metadata exchange pattern in which the client and the mex endpoint exchange some information (using the net.tcp protocol, including all of its framing). IE doesn't know how to communicate using the net.tcp protocol (it only knows how to "talk" using HTTP), so it won't be able to "talk" to the net.tcp endpoint.

如果要在浏览器中查看WSDL文档,则需要做的事-在< serviceMetadata>中启用httpGetEnabled.行为,以便您可以使用HTTP看到它.

If you want to see a WSDL document in the browser, you need to do what you have - enable the httpGetEnabled in the <serviceMetadata> behavior, so that you can see it using HTTP.


这篇关于无法在IE中浏览net.Tcp URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆