0

私の WCF は wsbinding では動作しませんでしたが、basic に切り替えると問題なく動作しました。

wsbinding を機能させるにはどうすればよいですか?

アップデート

うまくいかなかったと言うのは、クライアントがサービス エンドポイントを消費できなかったことを意味します。

ユーザー名/パスワードをどこかに追加する必要がありますか?

4

1 に答える 1

1

まず、Visual Studio 2005または2008を使用していますか?次に、VS2005を使用している場合、2006年にリリースされたWCF/WF用の.NET3.0CTPツールをインストールしましたか?クライアントでプロキシクラスを設定する方法を知りたかったので、これらの質問をします。右クリックして「サービス参照の追加」または「Web参照の追加」を実行しましたか

また、WCF構成ファイルは次のようになりますか?これは、BasicバインディングとWsHttpバインディングの両方のデュアルセットアップを示しています。

  <system.serviceModel>
    <bindings>
      <wsHttpBinding>
        <binding name="wsHttp">
          <security mode="None">
            <transport clientCredentialType="None" />
            <message clientCredentialType="None" negotiateServiceCredential="false" establishSecurityContext="false" />
          </security>
        </binding>
      </wsHttpBinding>
      <basicHttpBinding>
        <binding name="basicHttp"/>
      </basicHttpBinding>
    </bindings>
    <behaviors>
      <serviceBehaviors>
        <behavior name="NorthwindBehavior">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <services>
      <service behaviorConfiguration="NorthwindBehavior" name="SampleApplicationWCF.Library.SupplierService">
        <endpoint binding="wsHttpBinding" bindingConfiguration="wsHttp" name="wsHttpSupplierService" contract="SampleApplicationWCF.Library.ISupplierService" />
      </service>
    </services>
  </system.serviceModel>
于 2008-11-19T17:34:03.733 に答える