Creating a WAP interface for a web application - spring-mvc

We need to build a WAP interface for our web application, something like the m.domain.com, i.e wap.domain.com. i am a web developer and i need a quick and dirty tutorial or guide that would get me started immediately. My searches haven't produced much, i mean i have found a few tutorials but none of them was much helpful. Can someone please point me to the right direction? what i am essentially trying to do is integrate it into the same application, which is a Spring mvc web app, and use the same domain objects to send the data to the WML pages. i am not even sure if that is entirely possible.

Developer's Home may help you. Its link is : http://www.developershome.com/wap/wml/wmlIntro.asp
I also had to make a WAP application these days, and this website helped me a lot.

To display your webpage onto a mobile with low res/ or using wap you need to check the version of the browser and os reaching to your device.
That can be done via js. Once you have identified that the page to be displayed if for low res devices, you can create a web header that redirects to your subdomain # m.yourdomain.com.
In your subdomain you will use different css files and low resolution images destined towards displaying on old browsers like symbian OS .etc. "

I had the same issue. There is a team at '999Studios' who had made this tool to automate the process of making your WAP based services. You can contact them info#999Studios.com. They gave me a free version of the tool. Worked like a charm.

Related

Live streaming video integration in C# ASP.NET Website

I am going to make a website which will show me live streaming. Of course technologies are C# ASP.NET or ASP.NET MVC. For testing purpose, Now I want to use my PC's webcam to shoot video and it will be displayed on the .aspx or say .cshtml page directly on the same time. So let me know what will I do? If anyone from India, just see the Saibaba Live Darshan official website and I just need to make same type of site.After successful testing,I will deploy and host this application on hosting server. There is a temple where I will integrate this system so that everyone can take live darshan on their web browsers. So please guide me how to achieve this. Tell me all possible ways and if you have complete project code,then let me know.
You can use HTML5/getUserMedia to capture a video stream from the users webcam.
You can then display this on a html5/canvas for the user, or if you prefer you can use WebRTC to stream it to a server.
You can also look into projects such as this one: https://code.google.com/p/telepresence/
If you prefer to implement it yourself you can look here: https://hacks.mozilla.org/2013/02/cross-browser-camera-capture-with-getusermediawebrtc/

Why do mobile views in ASP.NET MVC display differently on different servers?

I am using the new ASP.NET MVC 4 beta and am trying to create a system that mostly works with responsive design, but for one specific view I am using a mobile view to render a specific view for mobile devices.
My structure is simply that I have a Show.cshtml and following that I have a Show.mobile.cshtml.
If I make my site available from my dev machine through IIS Express this view displays correctly for iPad, iPhone, Android phones and mobile Opera, and it also works the same if I make a local publish to IIS 7.5 on my dev machine.
The problem comes when we deploy to a live server, we have tried deploying on two different servers. Then the mobile view will only be served to iPhones, no other mobile devices. This is consistently so. Our servers set up have been both Windows 2003/IIS6 and Windows 2008 R2/IIS7.5 and it works the same on both, only iPhone gets served the mobile view.
What might be the cause of this?
I have not added anything custom in global.asax for this.
UPDATE
After some more research it seems clear to me that the default behavior for DisplayMode and mobile views depends on the Request.Browser.IsMobileDevice flag. This flag in turn seems to rely on the .browser files that are in the Config/Browsers-folder of the .NET Framework folder.
On my dev machine I have different .browser files than those that are present on the servers I have deployed to. So far I have tried to deploy the ones I have on my machine in the App_Browsers-folder of the web app, but that did not fix my issue. Might this be the way to go?
This is not a complete answer to your question but I think it will still help.
ASP.NET is not very good at solving browser capabilities in my experience. So, I can recommend looking into 51Degrees.Mobi Foundation. Steven Sanderson has a nice blog post on that:
Using 51Degrees.Mobi Foundation for accurate mobile browser detection on ASP.NET MVC 3
I am not completely sure but you should be able to hook this up easily to ASP.NET MVC 4 DisplayMode infrastructure. Here is a good resource on that:
51Degrees.mobi and MVC4
I thought the solution I gave below was the answer (it worked for a brief moment), but it still switched to the wrong view after a while.
Like the rest of the internet, I installed 51 Degrees from Nuget
This is working perfectly, and is very easy to set up
(The below doesn't work for me, but maybe it does for you)
http://www.nuget.org/packages/Microsoft.AspNet.Mvc.FixedDisplayModes
Looks like it is a known bug: http://aspnetwebstack.codeplex.com/workitem/280?PendingVoteId=280
According to codeplex link above, remember to make sure of this :
For a small set of projects that customize the list of registered view
engines (for example, in Global.asax) you should make sure that you
are referencing Microsoft.Web.Mvc.FixedRazorViewEngine or
Microsoft.Web.Mvc.FixedWebFormViewEngine, instead of the classes that
ship in the core runtime binary

What are some steps to create a mobile web version of website?

I have built a website with asp.net jquery sql server 2008.Now i want to build a mobile version of it(web,accessible via the browser).Do i have to to migrate data to the cloud?if i build in .NET mobile ,will it be accessible from iphone and adroid as it will be accessible via browser?my website is social directory for places,is there a gps api that can help me to indicate that a user is near a place?
If you're creating a mobile version of a current app that has existing data sources etc theoretically the only thing you should have to change is your front end to be suitable for a mobile browser.
In the end you web server will still be serving the pages as if it was any other normal browser (except it would just be the mobile version), and have the same access to resources (eg. databases0 that the standard site does.
In terms of "the cloud" there is no reason that you need to really host anything in there (web/data server) but if you site ends up getting large and/or you don't want to worry about managing infrastructure issues etc investing in the cloud may be a good idea, there is plenty of reasons to go to the cloud but for what you are trying to achieve it is not a necessity.

Real time chat implementation for SharePoint

I have a client interested in a real time chat application for a SharePoint intranet portal to enable online interview style chat sessions.
Has anyone got reccomendations for a product on the Microsoft Stack that does this? Something that is integrated into SharePoint would be prefferable, but any ASP.NET product would suffice.
The solution would need to be pretty robust as we would expect over 1000 users during a given session.
Microsoft Office Communication Server is the way Microsoft intended chat for SharePoint. I dont know if its just for 1 to 1 communcation or if there is a good multi-user support.
Another way to implement chat (or IM) in SharePoint is to use Windows Live Messanger and the green precense icon which shows up to the left of all names in SharePoint. But this is probably not the way you want to use chat.
We initially turned to handy Windows Live Messanger, However we dropped it because of security concerning.
We are using Groove, which look advisable so far.
FYI
There is ChatterBox. It's more of a demo app but the source code is available. The latest version is dated 2007 and is in beta with AJAX support.
As you have the source code, I'm sure you could take it and turn it into something nice.
I did a little work into this but dropped it because it take alot work to implete all needed features.
The easiest way looked to use IRC. IRC client software is available as asp.net, use via an iframe or make into a custom web part, there are also flash or java clients which could be imbedded.
You would need to setup a IRC server.
There is a third party product for SharePoint 2010 called GameTime that supports real-time web based chat integrated into SharePoint.

How to capture image from client webcam in asp.net

I am working on an ASP.Net application and I want users to be able to take a picture with their local webcam and then upload it to the server.
I can, of course, rely on users doing this manually via their locally installed software, save the image as a file and do a normal file upload. However, what I really want to do is incorporate it all into a UI in the browser.
I know this means accessing local resources so do I need an ActiveX control or Silverlight or is there something I could do in Javascript for example?
This is initially intended for an Intranet app so I can have control of the client's environemnt, including stipulating the browser etc, which means I can use an ActiveX control if I have to. However, it would be nice if I could write this in a generic way so it could be used in an internet app generally (happy to stipulate that it only works on Windows clients but would be good to get it to work in FireFox).
Thanks.
The only acceptable and universal way to this for now is Flash/Flex application. Flash player presets literally in every browser in the world and all of them has such capability.
VideoCap Pro is quite popular, and it offers an ActiveX version, have you checked it out?
This sounds very suspicious to me. You realize the nefarious applications this could be applied to, right? A web page that when a user browses to it, unknownst to them, their webcam snaps a pic of them. ... I don't like it.
You could use the Nimbb API to do the webcam video recording inside a browser.
It is possible to get the image from client webcam in asp.net, you have to install the Silverlight 4 with Visual Studio 2010:
Go to following link:
http://wildermuth.com/2009/11/23/Taking_a_WebCam_Photo_with_Silverlight

Resources