We have an existing ASP.NET application in which we use LDAP to fetch the current logged in users' details to display on the web page and perform other actions.
We would like to use LDAP to authenticate and fetch users details in our new Silverlight application too(this application has both a Silverlight front end and a WCF service to feed data) . Is it possible and if so how?
You can't directly interact with LDAP in Silverlight. For that, you must implement a WebService on your web server that will interact with Silverlight. Then in your Silverlight application you will be able to use that Webservice.
Or, if your application is only gonna be used on Windows. You can use WPF to create an XBAP application. That will allow you to use the System.DirectoryServices directly since its using the full .NET framework.
Related
I have a cross platform app currently designed using xamarin forms but now need to use this to create a user profile for the user, using the information provided, for a website.
Are there any add ons or plugins for something like square space or wordpress which would allow me to upload a user program via a RESTful api or something along those lines?
Basically what are my options to transfer user data from a cross platform app to a web app so that my user can then log onto the web app and see all their information?
All you need is a database that can be accessed by both your web app and your mobile app. There are numerous services that would allow you to do this.
But if your web site is going to be a WordPress site (I have never looked into squarespace) then it already uses a MySql back end for data storage. I would imagine squarespace uses a database of some sort as well. You could then create RESTFul urls on that same server to send and request data and use whatever database system that your website is using. If you don't want to implement your own service code for sending and receiveing data that can be used by both your web app and your mobile app, then you could use some service like Azure, AWS, Apigee, etc. just for the database.
My question can be simple or easy. I have created two applications one is asp.net website and second is WPF Desktop application. Both are accessing same sql-server database. Question are:
What are the best hosting websites to register a website?
Once a website is registered how to access that SQL-server database placed on server by desktop application?
answers
Godaddy, bigrock, somee.com** are good hosting providers
Use the same ConnectionString in both website and WPF application.
Ideally you should develop an API and host it as a webservice somewhere (azure?) and let the webapp and wpf app access only that service, not the database directly.
With regards to a windows phone 8 application, how can I write user input to an external SQL database and also read and display database query data on to the phone?
To be more specific, is there a file similar to a web.config where I could provide a connection string to access a database located on a server?
I would like to create an application where downloading the application and logging into an account will provide access to user data from any windows phone device.
10,000 foot view looks something like this:
Your Windows Phone 8 app contains a reference to a web service. Could be WCF, Web API, etc. This will be hosted externally on whatever platform you decide to develop it with.
Your app will call methods defined in the web service to access the data.
That web service contains the data access code and may connect directly to the database.
So like Yuriy said...don't connect directly to an external database. You need to develop a web service to do your data access and then consume the web service from your app.
I have sql server database in my web project (hosted over the internet). Now, i want to make a c# windows forms (or WPF) application that, i can access the same database(that is in my web project).
What is the best way to make that application? Which webservice technique should i use.
Any help link regard to this will be appreciatable.
Thanks
You can expose your data through a public API implemented in WCF, and call that API from basically any kind of .NET application including WinForms and WPF by using WCF as well. So, check out WCF (Windows Communication Foundation)
I want my web app (running in a browser) to, at some point, communicate (bidirectionally) with a desktop app (in Windows), the client has installed in its computer.
What's an elegant and modular and simple way of doing this (with Java and C#)?
Not much information will be passed between the web app and the desktop app. Just something like "I was here", "Pick this from this point", etc.
I solved that problem by using a database on the network.
All communications where made trough the database.
Website -> DB -> User logged in <- DB <- Desktop
However, if no trusted information needs to be shared, you could consider just posting and reading some http headers to a common website, or a simple log file.
Greetings
I suggest you to use the backend part of your webapp, assuming that your app is based on some backend services.
You have two options:
Your desktop apps use the same services of your web app. You must use a class that mimic a web-browser to give the data (curl, ie). If your web app is based on AJAX push ( APE Server i.e ) use library that is able to run some javascript
Use a REST protocol, with a JSON format in your backend services. It's easy to manage and is supported by many client-side languages (java/c#/python....)
Use a specialized endpoint only for your desktop app,for C#, you can use WCF, that allow you, in one of his forms bidirectional communications. For JAVA, there are WSDL, DWR
My preferred solution is to decouple the web app in a front-end side and a backend side, that expose the services as REST that are used by the web app via AJAX.
If I need true bidirectional communication with other desktop app, I'll create a separate service / endpoint for it. (APE , WCF, ..)
I see several options to achieve part of what you are asking:
Besically you expose the relevant parts of your apps (web and desktop) via some sort of API and use that for the communication - for example DB and/or WCF (SOAP/REST/whatever).
BEWARE:
If you are after some sort of direct/interactive communication between both apps on the same computer then this won't be possible - at least not without some security related issues.
The browser executes your web app in a sandbox which doesn't allow for direct communication between the web app and the desktop... there are technologies which can help circumvent that (ActiveX, signed Java applets, some Flash technology called AIR etc.)... or you could host some webbrowser/control in your desktop app which in turn runs the web app... BUT basically I would recommend against using any such measures...
IF you really want to go this route then please describe your environment and goal with much more detail.