we are trying to build a some program that will sit on the clients servers, then a user will enter a url in his browser that will go to our program on his servers. the program will call some data at our servers and will return an image in his browser is it possible to create under wcf self hosing ?
you could use a HTTP call to your site at the clients site to get the image or a more sophisticated technology like a web service. There should be no problem if both web servers are connected to the internet.
Related
I have a desktop app with WinForms.
Now I need to create an app that could collect data from my desktop app via internet. I mean that it is shuld be hosted somewhere in inetrnet
For example data is: is app online/ofline, and some information about computer where desktop client is launched.
And also I will need to develop a site where I can look throught this data.(think it will be ASP.NET)
I'm going to use WCF.
Is it good idea?
Maybe there are some other technologes?
WCF is good idea. but if your application will use only http protocol then you should gave preference to web api.
Is there any way to connect my web application (in a server) with a winform (or console) application that is in another computer in the same network?
Will it be enough with knowing the IP?
THanks!
Yes, just make a request from the winForm app to the web site using the WebClient class
More info here http://www.codeproject.com/Articles/33798/HTTP-GET-with-NET-WebClient
I'm developing a C# windows form application which scan passports in a client PC
in the same client PC user is going to open a webpage with which has some textboxes.
Is there any way to share some values of windows form application with the browser page?
(IS there anyway to invoke some functions in Windows App through RPC from the browser JavaScript, or any mechanism of share or send these values)
.
You can use the web server as a mutually accessible resource. The c# application can send data to the server, and the web browser can poll/listen for updates from the web server using AJAX. If the Windows application is also connected to the server, it could receive updates from the web page.
Alternatively, if you want to do a one-time sharing of data between the Windows app and the website, you could:
collect data in Windows app
send it to server
receive a unique ID
launch a web browser with the unique ID in the query string
website finds the data which was just sent by the Windows app.
Certainly there are other ways to do it as well. My goal would be to avoid having to have any knowledge of the web browser in use, e.g. requiring a plugin to be downloaded to facilitate the communication between the browser and the Windows application.
You'll want to implement a small http server in your C# app that can respond to http requests. Your web page can then make a GET request to the appropriate URL to fetch the data to populate the fields.
Hi stackoverflow users.
My server setup is the following:
A webserver with access on http/80 running www.domain.com
A app server with access to the internal network (db etc.) running a webservice
I have this simple little server setup problem.
Now I want to call my webservice from a ajax script from a website on my webserver. But since my application server does not have access to the internet this will (in my mind) not be possible since the javascript (running in the end-users browser) shoud have access to that webservice.
I came up with the solution by inventing a webservice on the webserver calling the webservice on my application server, but thats a odd solution, does any of you have a idea how to solve this?
I don't think you can do this. You will have to provide some thing on WebServer using which end user can access your App Server.
You have multiple options for this
PageMethods
Web Services on WebServer which will relay ajax calls to the App Server
Hope this info helps you.
If I understand correctly, you are just just using a webservice as a proxy through some network firewalls. There are tools that will do this for you, however, if you are running a simple service, then I don't see a problem with your setup.
One such tool for IIS is Application Request Routing
I am thinking about writing an application that will monitor IIS Service with iPhone, and send notification, perform resets if an IIS goes down.
I dont want to create a web service to do that but rather connect to a machine, specifying credentials and then get data from the IIS Service state.
Is it even possible?
Is it possible with iPhone?
I need to make this app generic enough for people to use with their hosted web sites and monitor their health and being able to reset it and/or recycle AppPools. I cant implement a service for any hosted environment. I need to be able to give the iPhone users an ability to connect to their host and once you are connected to the machine and authenticated to perform WMIs the phone users can mess with the iis. Is it possible?
I see your point not wanting to use web service because you want to monitor and reset IIS service, while web service is based on IIS. How about RestFul service? I have created RestFul service based on OWIN (Open Web Interface for .Net) and Kayak. Kayak may have some examples there.
The cool thing about those tools or lib is that the framework is very simple and does not rely on IIS. You can provide two URLs, one for get and one for post. The former is to get status of IIS server and post is to reset IIS. Those services can be just XML of JSON based objects and it will be up to the the OWIN service to do the job on the back end. Another great feature of this is that you can even create the service in a console app or any other ways (Windows service or Window Form in system tray) on WindowsXP or Home version. The app will provide RestFul service based on HTTP with specific port.
RestFul service is available for variety of platforms, including iPhone.
Although IIS supports remote administration I doubt there's a way to implement it on the iPhone easily.
You could write an actual Windows Server (not a web service) you could connect to with a socket which can do all the monitoring instead though.