Call WCF service from JavaScript HTML within service

前端 未结 1 1698
没有蜡笔的小新
没有蜡笔的小新 2021-01-26 12:42

I currently have a WCF service that operates on a database. I\'d like to be able to use JavaScript (specifically AngularJS) to call the service methods and display them in a web

相关标签:
1条回答
  • 2021-01-26 13:19

    It's actually rather simple, really just a matter of adding the files to your project. You just need to make sure the references within the JavaScript/HTML files all still point to the right spot. If you're using AngularJS specifically, add that to the project first, then add your custom files.

    Also, if you're looking to show an HTML file when running the service in Visual Studio, have a look here: Displaying web page when running WCF service.

    0 讨论(0)
提交回复
热议问题