Consuming WCF service using jQuery

后端 未结 3 1536
自闭症患者
自闭症患者 2021-02-05 21:20

Up to now I have used Web services and it worked fine. I added a new WCF service.
I am calling the services using jQuery. This is how I used jQuery to consume the Web servic

3条回答
  •  日久生厌
    2021-02-05 22:00

    I have worked using this tutorial and it worked great.
    Beacuse I am using asp.net with wcf, I have needed to add:

    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    

    as an attribute to the class service.
    In addition add this line to the web.config:

    
    

    Hope this helps!

提交回复
热议问题