Making my first steps in trying to use all these technologies together.. I\'m having some toubles..
Here is my Server side:
[WebMethod(EnableSession = true)]
Your code looks like good with one suspected place: url
. You should replace url
to something like "TAPI.asmx/simplestMethod"
or "/d2/TAPI.asmx/simplestMethod"
.
Moreover if you want study to how to call web method with parameters or return more complex data from the web method look at How do I build a JSON object to send to an AJAX WebService? and asmx web service, json, javascript/jquery?, Can I return JSON from an .asmx Web Service if the ContentType is not JSON?. How to decode error messages from the exception inside of web method see Get xhr object in vb.net while ajax calling fails.