Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
When using jQuery ajax inside a .NET website and i'm returning things like JSON, should you use a standard aspx page or should it be a web service?
I know web services are used for external interfaces etc... I just wondered what was normal practice?
Thanks
A web service is an exposed end point that is normally used as an API, or in other words its end user is typically another application rather than a user interface.
On the other hand, Static System.Web.Services.WebMethod can be used in any .aspx page or more typically in a .asmx (web service) file.
If your function requires a call from another application then use Web Services. In other cases use Web-Methods.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have a website which calls web API https://www.dreamtrips.com/
How can I find the web APIs used by this website to call different data?
Will fiddler give you the list of web API URLs called by this website?
You can use network tab in developer tools (F12) in browser to monitor all network calls. However, if the site does not have a public web API, the methods that are called will most likely be protected by CORS policy.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
how can I create app with Ionic2-Angular2 front-end and ASP.NET core Back-end? in same server. Also I what about multi-platform application.
Yes, you can. In ASP.NET you'll create a web API, that will be consumed from angular code. Here is how you create a web API: https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-web-api
Angular, more precisely the JavaScript which will be generated, does not "know" what kind of back end is used. There just will be an URL and the method how to access it. Your communication will probably embrace HTTP GETs and POSTs.
As long as the resource is accessible with one of the methods,
it does not matter if it is
a static file (post would not make sense in this case)
a PHP script
or ASP.NET Backend
or something else.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
Environment:
.Net Framework 3.5 SP1
WebForms Application
What would be the best way to mimic url routing in a web form application with authentication in mind?
I've researched things like: WebClient class, URL Rewriting, Custom HTTP Handlers. Any insights?
I think this might help you
ASP.NET FriendlyUrls - cleaner URLs, easier Routing, and Mobile Views for ASP.NET Web Forms
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I know ASP.NET Web API is the big thing now, but isn't it mainly for client consumed services (browser apps, mobile apps etc.)? I need to develop a server side API that is called by other servers in my app to perform operations, not retrieve models of data, but RPC calls, for example, UpdateCache(), CalculateAtomicExplosion(), SendNotification(), FindTheRabbit(). I used to do these things with WCF, but I see it's slowly becomes replaced by Web API, but is Web API designed for that task? Will I be able to bind a remote service and call it with a proxy class like I used to with WCF / asmx? Communicate with CLR objects? etc..
What's the best practice on completing this task with current technologies?
Thanks!
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
Let's assume I have some sort of user data, like list of user messages and some metadata (coordinates and etc.)
Right now I have to expose some API for Android clients to get/filter user data. So I am wondering what are the best practices to do that? Should I use WCF Data Services, REST WCF or Atom Feed WCF? or something else? What I need is to create really easy to use API (which is supported by some libraries) in terms of developing for Android clients and for other mobile platform in the future, like WP7.
Thanks
This can be done using KSoap2.
See this tutorial:
http://seesharpgears.blogspot.com/2010/10/ksoap-android-web-service-tutorial-with.html
As Dyonisos said ksoap2, and in the server side ASP.NET web services, it should do the job. BTW there is a lot of examples on the Internet for using those two techs.
http://sarangasl.blogspot.com/2010/09/create-simple-web-service-in-visual.html
How to call a .NET web service from android?
http://bimbim.in/post/2010/10/08/Android-Calling-Web-Service-with-complex-types.aspx