是否可以从 jquery 调用 wcf net.pipe://<<hostname>>?

Is it possible to call wcf net.pipe://<<hostname>> from jquery?

我有一种情况:-

像 Test.html 这样的页面托管在服务器上并且该页面有 jquery ajax 调用并且 jquery ajax 调用用于调用 REST服务和本地主机中的该服务主机。

这是在本地机器上托管的服务,因此页面会自动调用在本地机器上托管的服务。

当我们使用 Web API 和 WCF REST webhttps 绑定服务时,这个高级是可能的,但我想要来自 net.pipe 绑定.

所以我有两个问题如下

是否可以为 net.pipe://<< 主机名 >> 创建 WCF 休息服务?

所以如果是,那么是否可以创建使用 wcf net.pipe://<< 主机名 >> 服务的客户端 html jquery ajax打电话?

如果以上两种情况可能发生,请分享 link 或示例。

使用JQuery?

没有

使用 DotNet 客户端(是)。 (下面的示例)。

JQuery 是 "web traffic" 的抽象。因此,您的 WCF 终结点需要是 Web 友好的终结点。

命名管道与"the internet"无关。

"Host"(服务器)

    <service name="Wcf.BusinessServices.DepartmentBusinessService">


        <endpoint
              address  = "net.pipe://localhost/LocalDepartmentBusinessService"
              binding  = "netNamedPipeBinding" bindingConfiguration="NamedPipeBindingName1"
              contract = "ServiceInterfaces.Managers.IDepartmentManager"    >
        </endpoint>

    </service>

"Client"

<client>

  <endpoint name="NamedPipeEndPointName"
    address  = "net.pipe://localhost/LocalDepartmentBusinessService"
    binding  = "netNamedPipeBinding" bindingConfiguration="NamedPipeBindingName1"
    contract = "ServiceInterfaces.Managers.IDepartmentManager"  >
  </endpoint>

双方都存在(Host/Server 和客户端)

<bindings>


  <netNamedPipeBinding>
    <binding name="NamedPipeBindingName1"
                 hostNameComparisonMode="StrongWildcard"
                 maxBufferSize="9000000"
                 maxConnections="10"
                 maxReceivedMessageSize="9000000"
                 receiveTimeout="00:30:00"
                 transactionFlow="false">
      <security mode="Transport">
      </security>
    </binding>
  </netNamedPipeBinding>