Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I network VFP over the Web?
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00604039
Message ID:
00606550
Views:
27
>>Forgive this really dumb question ... but
>
>Very good question, actually. My orginal message could have been clearer.
>
>>how does the above coding change allow one to access web data instead of local data.
>>Ultimately you open the customer table with the command
>>USE HOME(2) + 'Tastrade\Data\Customer.dbf'
>>isnt that local?
>
>I think you pretty much nailed it below.
>
>>could you clarify what
>>"Session OLEPUBLIC" means... ?
>>are building a .dll that sits on a machine at the different IP address and then 'SERVES' the data via XML ?
>
>Yes, thats exactly what I'm doing. The class is compiled as a COM object, and with VFP7, I can expose that COM object as a Web Service. So it would (in English) work like this:
>
>1. Your client app has a URL to a Web Service.
>
>2. Your client app can create an object based on the information store in that URL (this is called the Web Service Descrption Language, or WSDL)
>
>3. When your cleint app calls methods of the object it created based on the WSDL, messages are sent using HTTP to the Web Server.
>
>4. When the Web server gets the message, it knows to call and run your VFP function ON THE WEB SERVER, this is possible because your VFP function is exposed as a COM object.
>
>5. Once the function is done, it returns a value back to the web server, which is ultimatley passed back down to your client app.
>
>6. Your client app can use the result of the function call, that ran on another computer, just like it opened up the data lcoally.
>
>This may sound liek alot of work, but really, every single step is automatically done for you in VFP7 thanks to the SOAP Tool kit.
>
>Does that cliarfy?
>
>>If indeed accessing web data between two machines is this simple... I'm buying VFP 7 tomorrow.
>
>Go for it :-)
***********
Just to extend this a little: This discussion is about one computer that has an IP visible on the internet communicating with a different computer that has an IP visible on the Internet.

What if one of the computers you want to communicate with (call it comp1) is on a LAN attached to a server which has the IP visible on the Internet. This computer (comp1) is visible over the Internet if you use a specific port (similar to the say PCAnywhere works) example: 63.64.2.118:3067 where 3067 is the port number.
Dr. Ken A. McGinnis
Healthcare software design
Previous
Reply
Map
View

Click here to load this message in the networking platform