WCF Configuration Hell?

前端 未结 7 784
迷失自我
迷失自我 2021-02-08 01:20

I hate WCF setup with endpoints, behaviors etc. I believe all these things should be performed automatically. All I want to do is to return JSON result from my WCF service. Here

7条回答
  •  粉色の甜心
    2021-02-08 01:39

    Take a look at this SO question.

    Edit: Since you're not specifying an address for your service, try hitting: http://localhost:22059/ZombieService.svc/KnownZombies (with the .svc).

    I also think you need the behavior added to your specified endpoint behavior.

    Edit: Try changing your endpoint definition to this:

    
    
      
    
    
    

提交回复
热议问题