Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Execute a outproc com server on remote machine
Message
 
À
04/02/2013 14:01:00
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Divers
Thread ID:
01562467
Message ID:
01565650
Vues:
64
Luis,

You can use any HTTP server to send data from FoxPro to. The issue is what you do with it on the other end. The easiest thing to do is pass XML from client to the server.

Ultimately you need some protocol. If you put VFP on the other with something like Web Connection there's automatic support for running remote HTTP requests and SQL commands against the remote. Likewise in the past I've built remote execution engines for SQL with .NET. It works great, but that I had to build. Nothing is precluding from building something similar on a Linux box, although I suspect building something generic like this using something like PHP/Python wouldn't be as clean or easy as either with FoxPro or .NET, but certainly should be possible.

In the end it's just strings going over the wire and being able to read the string data into memory data and then taking that data and writing it back to a database. For non-generic operation this is trivial. to build something generic that works with any kind of query or data operation - that takes a bit more work.

No pain no gain :-)

+++ Rick ---



>>Greg,
>>
>>At this time I'd recommend you don't use DCOM (or COM+) for remote execution. It's extremely difficult to get the remote setup configured right, and more importantly life time management is all but impossible. Servers will time out and not automatically reload and there's no way to control this. IMHO it never worked really well even in the heydey of COM when it was amongst Microsoft's recommended technologies.
>>
>>It's better to look at other approaches for remoting. Web Services can work well, or simply having a Web server on the other end to handle incoming requests and serve the response. The problem is there no real good native FoxPro server solutions unless you delve into third party stuff or using other technologies like .NET as the gateway. For example, .NET has remoting which actually works fairly well across machines with minimal configuration and you can self-host many .NET technologies like WCF and ASP.NET Web API in standalone applications or services that you control and install. Ultimately I think that's the best solution: Hosting a service of some sort (FoxPro, .NET or otherwise) on the remote and then feeding it remote requests somehow. Whether it's over HTTP or via a common semaphore sharing solution - it all beats DCOM/COM+ by a long shot.
>>
>>+++ Rick ---
>>
>>
>
>Hi Rick, and what about a remote linux machine? I mean, I have a Windows client that has to access Foxpro data that is on several linux servers which are hundreds of miles away. What I'd need to accomplish that, if it can be accomplished. What would I need on the linux machines so that it can return results from queriyng the foxpro data on them?
>
>TIA
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform