How to access a database view with an Azure Mobile Service? - web-services

I have an Azure Mobile Service running connected to a database with 3 tables, on the management portal of the database I can create Views based on them...the question is...how can I access the view through the Mobile Service? is this possible with Azure Mobile Services? or should I be using a regular web Service?
What I'm looking for is a way to access it like I would do with a table...for the table I just go to the URL and I get a JSON, that's what I would like to achieve.

you should use regular web services. Windows Azure Mobile services is meant to be very simple in simple cases rather than an all purpose tool.
Still, you could override the read operation on a table to return other results. You may want to use http://msdn.microsoft.com/en-us/library/jj631631.aspx and http://msdn.microsoft.com/en-us/library/jj613353.aspx as starting points.

If you go to the portal and just add the name of the view that you have created it seems to work.
eg.
My Mobile Web Services service is called 'PTView'
create view PTView.vwMcPeople as
select * from Person where surname like 'Mc%'
on the Data tab of your web service create a table with the same name as the view.

Use/ Download the SDK for Azure mobile service and then you can access your data using API provided.
Azure mobile service is not accessible directly from URL.

Related

Embed AWS QuickSight dashboards in native or hybrid mobile applications

Is there a way that I can embed QuickSight dashboards in a native or hybrid mobile application? I had embed it in my web application but I don't know how I can do the same for mobile applications.
Answer from AWS support team:
Unfortunately, as such QuickSight doesn’t support mobile embedding natively. I sincerely apologize on behalf of AWS for any inconvenience caused due to the limitations of the service.
However, using any one of the below workarounds, you should be able to achieve your use case of embedding QuickSight dashboard(s) in Hybrid mobile application(s).
Option 1
Embed via web view and the web view is within the app. However please note that in using this approach, you might not be able to use the JS SDK that is available to interact with the embedded dashboard from the parent website.
OR
Option 2
Embed via web view and the web view is in a iframe which is within the mobile app. please note that in using this approach, you might be able to use the JS SDK but can have performance lag due to the chain: dashboard in a web view in iframe in a mobile app.

Creating a Mult-Tenant OAuth Client App

Essentially, I'm wanting to create an Oauth Client as an App so I can get data from Dynamics for multiple customers. Does anyone know if this is possible to do in AppSource or do you know of another way?
I have a service that will be served in a cloud different than Azure so there really isn't anything for me to submit as an App and I really don't want every customer to have to setup their own App that gives my service the privileges/access it needs, but it's looking like I may have to.
It sounds like you'll want to register an app with Azure AD (the OAuth2.0 service/identity provider for work and school accounts), and create a multi-tenant app. Then you can configure this app in the Azure Portal to get permissions to the APIs the app wants tokens to call (in your case Dynamics or the Microsoft Graph).
Once this app is written, you can code up your app using one of the Azure AD Auth Libraries. Here's some sample code for a .NET web API. You can find more code samples on Github and search active directory. Moreover, the Azure Active Directory Developer Landing Page is a great place to look for more resources on doing all of this.

Call Azure DB SQL stored procedure using web service, api, .. from mobile app

I am trying to build a mobile application that needs data from an Azure SQL DB. Best practice looks like building a web service in between.
However I am getting lost in the number of solutions.
Which specific Azure component do I need to use to have a future-proof solid solution?
How to handle security between this component and the Azure SQL DB?
How to handle security between the mobile application and the Azure Component?
The best way forward is to use an ASP.NET Web API with ADO Entity Frameworks and publish the API to an Azure website. Use REST services to call the Web Api from your mobile app.
So basically:
1) Fire up VS and build a Web Api that will handle your database using ADO Entity Framework and the controller for your API. Check this: http://www.tutorialsteacher.com/webapi/web-api-tutorials
2) Publish the Web Api to an Azure website/app through VS. Make sure you have Azure services installed on your VS.
3) Call the Web Api from your mobile app using REST services to work with the SQL database. You will need an HttpClient class to do this, you can get it from NuGet.
For security of your Web API, check this: https://www.asp.net/web-api/overview/security

Automatically add users to API Manager

I am looking for a way to automatically add users to WSO2 API Manager. I have a basic install with the H2 database, but someday I might move to postgres or something like that. What is the best way to add users from say a script?
In Carbon products (APIM, IS), All user store operations can be exposed via web services. External application can use these web services to add/delete/update/get in to user store users and groups. Please note, H2 is not recommended for products`
REST web service according to the SCIM provisioning specification.
SOAP based Web service. You can find more detail from here

Web services invocation from mobile devices

We are developing a dashboard application. In the home screen it has four charts and list view. The data for these charts and list view are stored in different tables in the backend database. We are planning to create web services for fetching the data from server.
My question is, do we need to write separate web services (in this case 5 web services) for fetching the data or can we create a single web services that returns all the data in a single call?
If we write different services, then we need to invoke five services from the mobile device (iPad/Android Tablet). If we write single service, the response time will be delayed due to the joining table in the server side.
We are creating our application using Sencha touch framework. Our app is a cross platform mobile application. The web services are writing using restful wcf services and it returns JSON.
Please give ur your suggestions