Last post Dec 24, 2015 08:39 AM by Shaikh Ansar
Dec 15, 2015 12:04 PM|Shaikh Ansar|LINK
Can anybody help me in solving the problem of architectural design for a website.
where i am having the below requirements.
1. Asp.net website using the c# language for managing the required things in the sql express database.
2.Expose the service to the IPad client for some sort of operation.
3.Whether to separate the web services or if how to use web services within the website itself and not making the separate project or application.
Kindly help me in this.
Dec 15, 2015 12:24 PM|XIII|LINK
if the iPad application is a separate application then I would opt for putting the services in a separate assembly which exposes your business and data logic to the app. You can then either decide to call these also from your ASP.NET web application or directly
plug it together with the business and data logic without a webservice in between. Both approaches might work for you but you need to determine for your project which works out best.
Dec 15, 2015 12:45 PM|PatriceSc|LINK
There is rarely a "best" option. Most often it is a choice that depends on what you actually need or want. For example does it make sense to keep the api site up and running even if the main web site is down for maintenance?
In short the point is not to just apply a "best" practice but rather to see which benefits you want and use the corresponding approach. I believe that using a "best" practice (with most often some added complexity) without ever taking advantage of its benefit
is actually a bad thing. Also you are allowed to start a way and then possibly change your mind based on future circumstances (ie avoid
Dec 24, 2015 07:24 AM|Shaikh Ansar|LINK
Yes the IPad application is the separate application and which will interact with the centralized database.
also one more thing to ask , how to make web services for ipad application.
Dec 24, 2015 07:44 AM|XIII|LINK
how to make web services for ipad application.
Please in the future make a new thread for a new question.
You don't make webservices for iPad, you make webservices. It's up to the other party to generate the needed proxies to interact with it. Nowadays I would rather suggest you make use of Web API and make REST calls to the server which return json or xml depending
on what your app needs/understands.
Dec 24, 2015 08:39 AM|Shaikh Ansar|LINK
Thanks for your suggestion.
i thought it will be easier to use the same thread so i asked this point as well.
Anyway i will take care of it in the future.