web app for mobile - c#

So we already have a web service that was develop a long time ago. It's the legacy .net web service (not WCF)
I'm looking into how to build a web application that i'll be able to run on multiple different devices : IPhone, IPad, Android.
So far i've seen PhoneGap : http://www.phonegap.com/. This is interesting for us because it seems to allow us to use Native Device Features. Our app needs to use Scanning capabilities.
Since phonegap is based on HTML ... would it be possible to have it communicate with our legacy web service? How can this be achieved?
Let's say our app don't need to use any device native features, I guess just building a regular ASP.NET page should work right?
Do I have to make modification to our existing webservice? Like making it RESTful?
Any advice is appreciated,
Thanks,

You simply create an XMLHttpRequest in Javascript, pass in your GET/POST parameters, and handle the XML which the webservice returns. It's quite simple, really!
jQuery gives javascript developers $.get and $.post functions which make this extremely easy. Remember, you can use any javascript library and function supported by the devices webview within your phonegap application!

Titanium Appcelerator is another alternative.
The application is developed in javascript and native code generated for iPhone, Android and in the latest release for Blackberry as well.
EDIT: Here is a comparison of Phonegap and Titanium.
Related discussion on Stackoverflow:
Is Titanium appcelerator worth it for developing camera based application on ipad, iphone and android?

Related

C# Winform and ASP.Net and Xamarin

Right now, I'm in C# Winform and I would like to use my Windows Application with ASP.NET including with Xamarin. So, I need to know, what kind of program do people often use to make application run in all kind of devices (Computer + Web Browser + Smartphone)? And what should I use, WPF or UWP or which one?
This question is a bit broad/unclear, but you could consider porting your app to an ASP.NET frontend, and then load it with a wrapper on mobile phones and desktops.
Essentially create native apps that in turn load the ASP.NET web app. This is a quite common approach as it reduces development time.
If I understand you clearly, you want to make an ASP.NET Core application.
That is an webapp and if you use bootstrap it will scale on every device.
And because you use Core, you can host the webapp on every server (windows, linux etc.)

Build JSON REST api/webservices in vs2010 or vs2012 that will consumed by ajax clients in mobile devices

I have an Existing Web application builded two years ago with VS2010 ASP.NET Web Forms, C# and SQL SERVER 2008 .Now i want to build mobile version and install it in mobile devices. I want to develop it using JQuery Ajax, Jquery Mobile and Apache Cordova. My simple question is how can build serialize from database json REST api/webservices in vs2010 or vs2012 that will consumed by ajax clients in mobile devices ???
Thanks to all
I would recommend you for WebAPI. because of following reasons.
If we need a Web Service and don’t need SOAP, then ASP.Net Web API is best choice.
It is Used to build simple, non-SOAP-based HTTP Services on top of existing WCF message pipeline.
It doesn't have tedious and extensive configuration like WCF REST service.
Simple service creation with Web API. With WCF REST Services, service creation is difficult.
It is only based on HTTP and easy to define, expose and consume in a REST-ful way.
It is light weight architecture and good for devices which have limited bandwidth like smart phones.
It is open source.
Tutorial is here.
http://channel9.msdn.com/Events/Build/2014/3-603
Save yourself a lot of coding, and use SlashDB. http://www.slashdb.com/how-it-works/
It will automatically make a web API for an existing database. Your case is very typical because many websites use server-side templates to make dynamic HTML, which of course does not work well if you need a native app or a highly responsive HTML5 mobile page.
Disclosure: I am the founder and CEO of the company behind SlashDB, but you don't have to take my word it - just try it.

Is there anyway to invoke a native android function from a aspx website that is running in the web browser of the android phone?

I'm using ASP.NET to create a ASP.NET web site that will run in a android mobile web browsers and like to know if there anyway to invoke a native android function from a asp.net website? or do I have to create a native listener type app that queries a database to then invoke the native function? Any good ideas?
I believe that using android native device capabilities using ASP.NET is difficult. Over there is the possibility of using frameworks that enable access native routines of equipment by other means. I know a framework that works this way is that using HTML5 PhoneGap (http://phonegap.com).
With this framework you can develop a wrapper to access the native routines in HTML5 and equipment through its ASP.NET page you make the call routines calling this wrapper.
First of all it is necessary that you study and analyze the framework for a better gain by using it.

How to implement a SOAP client in C# (specifically for Windows Mobile)?

I'm really confused about how to create a SOAP client in C# using .NET. I have found this page which looks really promising, but for the life of me I can't find Microsoft.Web.Services2. Also most information I find about SOAP with C#/.NET are about creating web services in ASP.NET and that's not what I want to do.
Basically what I want to do is implement a SOAP client in C# in a Windows Mobile application.
Download the old OpenNETCF.Web.Services2 source code (in the deprecated source downloads at the bottom of the page). Depending on your exact needs, this will probably provide the WSE classes you need.

Google Sketchup API - to a Windows App?

How can one interface with Google Sketchup, via the API, from a Windows App?
I was looking at something written in C#/VB.NET but its seems like the only available Google Sketchup API is for Ruby.
Any ideas on how to use that Ruby API from .NET? Is Ruby only serverside or can it be processed locally, offline?
There is a C++ API in addition to the Ruby Script system. Find it here:
http://code.google.com/apis/sketchup/docs/downloadsdksubmit.html
I think that the Ruby API is just for script plugins, not for interfacing from a standalone app. Maybe you could add a Google Sketchup ruby plugin that interfaces with your app?

Categories

Resources