【问题标题】:when using both the rest and soap end points. I need to make the soap as the default one?同时使用其余端点和肥皂端点时。我需要将肥皂设为默认值吗?
【发布时间】:2012-07-03 06:45:48
【问题描述】:

我需要使用soap端点作为默认端点,因为我不需要打扰现有用户。我应该在配置中做些什么更改?

我有两个端点,一个用于肥皂,一个用于休息服务。我尝试创建两个单独的服务,但仍然没有工作

【问题讨论】:

    标签: wcf web-services rest soap service


    【解决方案1】:

    这是一个示例:

    <endpoint address="json/mycontract" behaviorConfiguration="webBehavior" binding="webHttpBinding" contract="MyContract" />
    <endpoint address="soap/mycontract" binding="basicHttpBinding" contract="MyContract" />
    

    从客户端的角度来看,没有默认端点这样的东西。客户端确实使用所需的端点来使用服务合同。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-06-11
    • 2019-01-27
    • 2011-03-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多