WCF Configuration Hell?

前端 未结 7 937
一生所求
一生所求 2021-02-08 01:07

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:36

    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:

    
    
      
    
    
    

提交回复
热议问题