How Do I call A WCF Web Service from jQuery?

前端 未结 1 1186

How can i call a wcf service from jquery (i am using asp.net mvc). This is what i used to do with asmx webservices :

$.ajax({
    type: \"POST\",
    url: \"         


        
相关标签:
1条回答
  • 2021-01-07 01:28

    Yassir,

    The precise details of how you call a specific WCF service will depend on the service. For instance, is it a SOAP service, or a REST service? JSON or Plain XML.

    The good news is that if your WCF service is exactly the same as your ASMX service, then you can call it in exactly the same way.

    The bad news is that, if your WCF service is different, then calling it will be different.

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