English 中文(简体)
如何在使用净额时添加周转基金的参考资料
原标题:How to add WCF Service Reference when using net.msmq

How do you start a WCF client when using the service is only available on net.msmq
- when you use the "Add Service Reference", you get an error ...

The MetadataExchangeClient instance could not be initialized because no Binding is available for scheme net.msmq . You can supply a Binding in the constructor, or specify a configurationName. Parameter name: scheme If the service is defined in the current solution, try building the solution and adding the service reference again.

例如,I ve got the BizTalk example WcfNetAdapter Publishing fromMSDN up and operation, and it includes a console testuser that used at ...

net.msmq://localhost/private/WcfNetMsmqAdapterPublishing

看来这是可能的,但我看不到任何开端?

最佳回答

你可以把同样的服务合同和数据合同置于另一个终点的<代码>basicHttpBled之上,利用这一终点(和为其交换元数据)创建服务参考,然后人工调整你的备份,以使用netMsmqBled

或者,你只能与您的服务和数据合同在服务器和客户项目之间签订合同,用<代码>ChannelFactory<T>,以人工方式创建客户代理。 由于你已经重新使用<代码>netMsmqBled,你无限期使用。 电话网的两端——这样,技术就只能做罚款。

问题回答

您需要增加一个基面地址(除你拥有的净额外)的序号是<代码>http://。 因此,有净额。 阁下的榜样是:

http://localhost/private/WcfNetMsmqAdapterPublishing ... 

之后,您需要增加<代码>mex的终点。 同样:

<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />

然后开始服务(视力演播室外面),然后在<条码>上添加参考资料:http://。 页: 1

这里的一个例子是:

<service name="Services.Archiver" behaviorConfiguration="FacebookArchiver">
      <endpoint address="" 
                binding="netMsmqBinding" 
                bindingConfiguration="msmq" 
                contract="Services.IArchiver" 
                behaviorConfiguration="validator" />
      <endpoint address="mex" 
                binding="mexHttpBinding" 
                contract="IMetadataExchange" />
      <host>
        <baseAddresses>
          <add baseAddress="net.msmq://localhost/private/Archiver" />
          <add baseAddress="http://localhost/private/Archiver" />
        </baseAddresses>
      </host>
    </service>

在这个例子中,你只想在以下网站添加服务内容:http:// localhost/ private/Archiver"rel=“nofollow”http:// localhost/ private/Archiver。





相关问题
BizTalk server problem

we have a biztalk server (a virtual one (1!)...) at our company, and an sql server where the data is being kept. Now we have a lot of data traffic. I m talking about hundred of thousands. So I m ...

Create key pair for BizTalk AS2 connection

I need to create an AS2 connection in BizTalk Server 2006 R2 to communicate with a business partner. I ve worked with BizTalk AS2 config before and the BizTalk docs have pretty good walkthroughs about ...

BizTalk mapper and the [ThreadStatic] attribute

I ve recently encountered an issue with the multi-threaded nature of the BizTalk Mapper and how it handles external assemblies. As this quote from MSDN indicates: Important Any code written in an ...

女士们:

我正在分析一项BizTalk(ka orchestration)申请,该申请正在由MSMQ与一个WCF服务机构进行沟通。 我不禁要问,为什么世界气候基金的一个服务执行项目有一个小参数。

热门标签