I have sybase stored procedures that I have written which we use in our c# application and all is working well. Now I am trying to use an IPAD and be able to call those stored procedures. From what I understand I will need to build a webservice and expose those stored procedures. I have become very familiar with IPHONE ( developed an app). I learned how to call a web service from an IPHONE by posting some questions here and getting some tutorials.
I need to know how to build a web service in c# or if mac has an equivalent then so be it. Are there documentation on how to build a web service around a stored procedure or even a sql? I gladly read any books or documentations but I can’t find any that is worth while.
Thanks
Saro
I would definately recommend looking at WCF based web services rather than the old asmx web services. If you use WCF creating a service communicating in json is as easy as doing proper attribute decoration. What you need to look for is the
WebHttpBindingand adecorator on your methods. You can also use uri matching to get parameters etc.
(Here the
{username}is matched with the input parameter.)http://msdn.microsoft.com/en-us/library/bb412178.aspx