Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
クラスファイルにサービス参照を追加すると、app.configという別の構成ファイルがclass.soに追加されます。エンドポイントは、ソリューションの構成ファイルまたはクラスで作成された新しい構成ファイルのどこに定義する必要がありますか?
server(web.config)で定義されたエンドポイントは、Webサービスを他のユーザーに公開することです。 Client(app.config)で定義されたエンドポイントは、アプリが接続するサービスを指定することです。 したがって、クライアントとサーバー PSの両方でエンドポイントを定義する必要があり、バインディング構成はweb.configとapp.configの両方でIDである必要があります。
web.config
app.config