Microsoft workdflow custom connector - asp.net

I am trying to develop a simple customer connector for my website on microsoft flow and so far I can't see how to use a web API that is hosted on my website every article tutorial I am coming by require APIs to be hosted on Azure, also an Azure account is a prerequisite .. is it true Only azure APIs to be used for custom connectors ?

Azure is not a prerequisite for Custom Connector. I agree that most of the tutorials talk about connecting Azure hosted apps.
Microsoft flow currently supports creating custom connector with Swagger API output or postman exported data. I created a Postman collection with the API and gave the exported data as input to Microsoft flow for creating the connector.
Detailed Tutorial is available here
https://flow.microsoft.com/en-us/documentation/postman-collection/

I have the same issue, I have configured a custom connector for testing to go against this test / mock API
POST -> https://jsonplaceholder.typicode.com/posts
In the connector test it keep on hitting this URL:
https://msmanaged-na.azure-apim.net/apim/zoom.2dtest.2d002.5f43ed1d930148619c.5f4fd64f4beaca2b60/51136e9557bf4e128e0d7552ff624ebd/posts
I have never configure it to go there. No document explains how or why this would happen.

Related

Authentication using OAuth in Web API

I'm working on a project using ASP.Net MVC5 which also includes a Web API. The API will be for internal use only. I'm using the OWIN library to provider authentication.
I'm having a difficult time figuring out how to correctly implement authentication through the API. I was planning on using OAuth 2.0 but the problem with OAuth is that the user needs to login through a browser page instead of a native login screen. So I was wondering if it is possible to somehow skip the browser.
I've found this example which creates it's own OAuth Authorization Server. But it doesn't show how to make the login native.
If it's a highly trusted client, then you can use the OAuth2 resource owner password flow. You can look at the VS2013 SPA template and/or read on this post:
http://leastprivilege.com/2013/11/13/embedding-a-simple-usernamepassword-authorization-server-in-web-api-v2/
You could use Thinktecture.IdentityServer v2 as a light-weight security token service.
https://github.com/thinktecture/Thinktecture.IdentityServer.v2
You will need to create a WOPI host, which is basically a software solution that can take advantage of the browser-based Office(office web).
Create a custom WOPI host and configure it to use Office Web Apps Server to provide the browser-based file viewing and editing for Office files.
Nice sample on Microsoft MSDN

symfony2 project for web and mobile app

I want to build an application for web and also for android. The application will have a database, and users should be able to login and perform some actions.
In Symfony2 documentation you can find all the information about how to create a web site, also there is information about how to create a symfony2 REST API.
However it is not clear for me, how to create a symfony2 web site that consumes a symfony2 REST API, and also (as it is a web service) be able to use the same REST API to consume from my android app
Any idea will be really appreciated
I am new using symfony2
Thanks
You can build your REST API easily with FOSRestBundle. There is a nice tutorial on the subject here.
In building your website, you have some options.
You can query the database directly in your controllers.
You can query your REST API in your controllers using cURL.
You can query your REST API in your views use jQuery or just AJAX.

asp.net application integrated with QuickBooks

I am using QuickBooks desktop version, i have created an asp.net application to integrate it with QuickBooks , but now i need to know how can i use the Web connector to integrate them.
do i need to create an asp.net webservice application? please advice.
The QuickBooks Web Connector is essentially a SOAP web service client that is installed alongside QuickBooks and polls your website asking "What have you got for me to do?". You feed it XML requests (e.g. <CustomerAdd>...</CustomerAdd> that it relays to QuickBooks. QuickBooks processes those requests and sends you back a response.
There's a good overview (and some technical details) on our QuickBooks integration wiki.
You should probably start by downloading the QuickBooks SDK. The SDK includes a few examples in this directory that would be helpful to you:
C:\Program Files (x86)\Intuit\IDN\QBSDK12.0\samples\qbdt\c-sharp\qbXML\WCWebService
Once you have the basic structure of your SOAP web service laid out, everything is pretty simple. Whenever the Web Connector connects you just feed it qbXML requests. Here are some sample qbXML requests to take a look at:
- QuickBooks qbXML for adding a customer
- QuickBooks qbXML for adding a received payment
A full reference of all available qbXML requests is available via the QuickBooks OSR guide.

How to get the tridion broker content through a webservice call?

I need to access the dynamic broker content through a web service call for html5 based mobile website. we are on SDL 2011 version build:6.1.0.55920.
Is broker content already available as a web service?
Is there any configuration setup that needs to be done ?
Can anyone provide the guidelines needed.
Thanks in advance.
There is a Content Delivery OData web service that can be used to retrieve dynamic content from the Broker. To install it check the docs at the following locations:
.Net installation:
http://sdllivecontent.sdl.com/LiveContent/content/en-US/SDL_Tridion_2011_SPONE/task_3E3A2FB1B4E34C20934B5A841C2E0930 (login needed)
Java installation:
http://sdllivecontent.sdl.com/LiveContent/content/en-US/SDL_Tridion_2011_SPONE/task_DC046ED58691440E92ED1A8672851427 (login needed)
This information is also provided in the Installation Guide PDF.
For information regarding implementing the service check the docs at http://sdllivecontent.sdl.com/LiveContent/content/en-US/SDL_Tridion_2011_SPONE/concept_DFBA3FF3977045F892ABB4FCF8DA38B1
First you need to modify the cd_storage_confe.xml file for querying the broker database. This file is present in bin\config folder of website.
Enable this tag:
<SearchFilter Name="SearchFilter" Class="com.tridion.broker.components.meta.MsSqlSearchFilterHome" defaultStorageId="defaultdb"/>
After this, you can use the Broker query mechanism to fetch the content from broker database and display the data dynamically.
More help on SdlLive website (login required)

ASP.NET Web Forms Applications on Azure (or any cloud hosting)

This is a pretty vague question but I'm struggling a bit to get my head around what is involved in cloud hosting.
Say for instance if I had an asp.net web app using:
- Webforms
- linq to sql
- an sql server database
- Calling some external restful webservices
What would need to be done to host it on a cloud service?
Are there specific code changes that would be required and do these need to be considered in the initial design?
Can sql server and linq to sql be used in this type of setup?
What platform if any would be best suited?
in it's most basic form, Azure is just a highly available web-hosting environment - if you have an ASP.Net web application, you can deploy it to cloupapp.net and it should work.
To try it out, get yourself a Vista/7 machine, download the Azure SDK and VS Tools, and create a new Azure application. There are 2 main parts at this point, the Cloud project, and an ASP.Net Web Application. The ASP.Net will have a "web-role" relationship with the Cloud project. This is as it sounds, it is the visual front-end to the Cloud application, that interacts with visitors.
You can, at this point, just leave it there - it's a normal ASP.Net application with very good hosting. Your SQL connection strings should work, though you may want to consider SQL Azure. You can also host WCF services.
As Manoj points out, Azure does have a different programming model which you can take advantage to produce very robust applications. Azure also has the concept of Worker Roles, which are similar to Managed Services, in that they perform processing without a public interface. Instead, your web-roles take the requests, place them on the Queues, and the worker-roles then pick them up, process and send back responses.
It's a very powerful system, which I haven't fully explored, but the good news is that you don't have to be an immediate expert in the whole system, but can create simple ASP.Net sites as web-roles, deploy those then expand from there.
Have a go, it's well worth it
Toby
AppHarbor is a .NET Platform-as-a-Service. We can host your ASP.NET websites more or less un-modified and without the Visual Studio plugins and other crud that Windows Azure requires.
It depends on what type of cloud hosting are you looking for. There is some cloud hosting which will just give you space for application data like Amazon. While Azure gives you complete application framework which supports your application to be hosted in cloud. But programming in cloud is different programming paradigm than in traditional web form. You will have some limited classes from .Net framework available but better resources for scalability.
You cant directly use sql server in azure application. What you can use SqlAzure services.
Just referring a book which i feel would provide you the answer
Cloud Computing Book
EDIT :
Check this microsoft link
Ramp Up
yes, it is supported and live demo of Asp.NET 4.5 Web Forms available on Microsoft azure websites... you can visit this link for detailed information
Create and deploy a secure ASP.NET Web Forms app with Membership, OAuth, and SQL Database to Azure App Service

Resources