i'm trying to create a restful webservice and deploy it to Azure.
I can't figure out how this should be done. The MS documentation is huge and doesn't say much on how to achieve this.
I created a Cloud Service Azure Project and included a ASP.NET MVC4 WEB API WebRole and Visual Studio automatically created a website.
WebRole is the entry point for the service right? I don't see how the WebRole is connected with anything in the project. I guess i'm totally missing some parts of this architecture.
Can you please tell me what's the best way to achieve this or point me to some helpful tutorials?
When should one choose to create a WCF Cloud Service?
Thank you!
Step-by-step instructions for creating a RESTful API in MVC in Windows Azure are here. You should not be thinking about hosting a RESTful API in WCF - while possible there is a lot of unnecessary overhead.
If you are into Node.js, you might want to look at the new Custom API feature in Windows Azure Mobile Services.
Related
I have my domain on namecheap and website on azure app service. I need to know if azure provide any api or any method by which i can add custom domain to my app service (where my website is) by not going on portal by doing some code. My website is on c#, so if c# provide any such sdk's or something where i can achieve this thing will be great
Not really sure what you are intending here, in my opinion the custom domains need to be configured on the namecheap side not the azure side, but just in case I am wrong have a look at these
https://github.com/uglide/azure-content/blob/master/articles/app-service-web/web-sites-custom-domain-name.md
https://github.com/uglide/azure-content/blob/master/articles/dns/dns-web-sites-custom-domain.md
Looking into options for starting the migration of an existing application with both MVC web pages and Web Api components to Service Fabric.
We have gotten the Web Api components running under ServiceFabric, but not the MVC web pages.
Based on what little I have seen out there, there does not seem to be a definitive way to run an existing MVC application under service fabric. Is this correct or am I missing something?
NOTE - by MVC app, I mean a web site built using MVC 6, not Web API services.
Thanks in advance.
Yes you can take an MVC 6 application and run it on Service Fabric. Here is an example from the official Azure Sample gallery: https://github.com/Azure-Samples/service-fabric-dotnet-iot/tree/master/src/Iot.Tenant.WebService
If you are planning to develop new application then you can follow below link service-fabric-add-a-web-frontend
IF you have an existing application you and you don't want to change any code you can deploy your application as Guest executable. follow below link service-fabric-deploy-existing-app
If you have an existing application (MVC 5 and IIS based) and you want to deploy in Service Fabric you and host with help of container. MVC5 app does not support self-host and tightly coupled with IIS. check below link iis-based-applications-to-service-fabric-using-docker-container
I'm new to azure, and I'm trying to setup a single page website(web api 2). How can I limit access to my services so only my website can use it?
I know that I can use app services to setup my web applications/services but as far as i understand it will be open to everyone.
I also read about APIs, but Api management service seems very expensive and advanced for such a simple task. Is there any options? Am I in the wrong track?
Update
Ok, I saw the link for filtering based on IP. But as I've mentioned that single page application also is hosted on Azure. There is no static IP. If that is the way, I still need to know how you will find out about the IPRange.
App Service to use different authentication providers Azure Active Directory,Facebook,Google,Microsoft,Twitter.
We can set any type of Authentication/Authorization in the Azure Portal.More info about how to use authentication for API Apps in Azure App Service, please refer to document.
I am new to APIs development and have to start building a REST API for the e-commerce website to be built and can be used by 3rd party: mobile app development company.
The eCommerce site is written in C#, ASP.net.
I have read about SOAP, REST, RESTFul on google.
My doubts are :
Where do I start? I have never created any API's before. Please mention the steps to start over.
The REST API is to be used with both Android and iOS mobile app. So, do we have to create a different client application for both?
Do we use some frameworks? If yes, then which frameworks to use?
As the website is written in dot net. Do we use Java or dotnet for REST API development?
What is the best way to create the REST API for mobile apps?
Please help me with my doubts.
Thanks in advance.
Here is Tutorial to build RESTFUL API in .NET.
My knowledge is in ASP.NET so I leave the Java guide for experts in that field.
RESTful API provided by Microsoft - which is called Web API - is a part of ASP.NET MVC, so you should start learning ASP.NET MVC, it's pretty easy for ASP.NET guys to learn ASP.NET MVC.
No, when you developed your Web Service, both iOS and Android would be able to communicate with your Web Service.
For Authentication, you gonna need libraries like Owin.
Since your main website is in .NET and not MVC, you should keep the Web Service files separate, for this, you can put Web Service file in a separate folder on the same host which the main website is, then create a sub domain to access the Web Service. By the way, you can create your Web Service using Java too, since it is separate from the main website, it makes no difference which technology you use.
The best way to create a REST API for a mobile app is if it is done by an expert! ;) There are many tools and frameworks out there that can be used to create RESTful Web Services, each one of them has some pros and cons, I prefer to use the one I know the best, which is Microsoft ASP.NET Web API, you should choose based on your current expertise.
P.S. If you gonna start learning ASP.NET MVC, I recommend to learn ASP.NET Core, which is the latest version of ASP.NET MVC, and is the future of this technology.
I am developing an android application to accommodate some desktop software that I created. I would like for the user of the mobile app to have to verify their identity through authentication. Basically the web service will have to act as a central hub to both authenticate and hold information that the android app will need. The way I think it should work is to
-Set up a central web service
-Allow user to create account from desktop client using email/password
-The desktop client will send the information to the webservice that the android app will need.
-when android app is authenticated it will then retrieve the data it needs that was posted from the client.
So basically the service will need to be able to send and receive data.
I will only be using .net (either C# or vb.net ) for the service, so this leads me to a couple of questions:
Should I be using WCF for this? If so should I create a WCF Service library or WCF Service application?
Should I be using the Sign Sign on service approach?
The web service doesn't need to be fancy it just needs to get the job done. Is their any boilerplate project templates or projects out their I could use to help build a foundation?
I recently discovered SudzC.com which generates classes and methods for Objective-C from the wsdl data of a .net web service, and I'm fairly sure it also does Android.
I have a huge catalog of fairly 'old' web services which pre-date WCF and they are currently working perfectly.
I should point out though that the SudzC service only shows you what it can do for you for free - to get the code you have to pay ~£20 for a one year pass.
We had something similar where I worked. We had to put together an Android app for the company. If you are on .net 4.0 or newer, you can take advantage of theWebApi. It can return json or xml. So, that means any platform can utilize it (desktiop, android, etc...). I found it extremely easy to use, with very little overhead.