3
Answers

How to call a service using ajax

Malik Danish Habib

Malik Danish Habib

Jul 17
351
1

Dear All I would like to ask I have a scenior where I need to call a service using ajax which will open my windows service interface I have done it using javascript ajax but the issue is 

$.Ajax({

uri:my service URL ;

type:POST 

 

})

my ajax code works fine it call the serive and open up the windows service interface as well , The issue is I would like to post this data as well but for posting data I need to provide URL (specifiying the controller and action name ) but how I will do that as I am already using URI attribute to call windows service so how to call another URL to post this service data in controller  means two URL 

Answers (3)