WCF service host cannot find any service metadata

后端 未结 10 523
余生分开走
余生分开走 2020-12-16 13:01

I\'m just learning wcf and currently got this far.

CS File:

using System;
using System.Collections.Generic;
using System.Linq;
using         


        
10条回答
  •  隐瞒了意图╮
    2020-12-16 13:11

    By default, Visual Studio is going to try to setup a client/test ui for you to toy with your new service. To do this it needs to be made aware of the structure and methods your service offers. This is achieved by consuming a definition in the standard WSDL format. However, WCF won't publish this data by default.

    You have to setup a metadataexchange endpoint behavior to acehive.

    Either post your config file here and we can assist, or google/stack search for metadataexchange and wsdl in WCF

提交回复
热议问题