Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listen to port 80
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00975220
Message ID:
00975435
Vues:
13
I think the winsock control can listen to a port. It would seem that a request to accept and receive the XML would require that some identifier be available. I think Winsock can do this to. Perhaps the URL to the XML could also be received by winsock and then (automatically) call a VFP program implementing CREATEOBJECT("Microsoft.xmlhttp") could retrieve the XML offered by the URL Winsock received.

A "Winsock" COM would need to be up and running and trigger the HTTP request for the URL. A hard address would work too. It might even be able to create a "queue" cursor if multiple XML HTTP offers were received.

Mr. Nick Nekloiudov has done some amazing stuff with VFP and Winsock.


>Actually the data is coming from a Pocket PC, but could be any web address.
>The PPC sends the XML via port 80 and a web service needs to suck that in and spit out DBF files.
>Thanks!
>
>
>>>I need to create a web service or some code to listen to port 80 and suck in a XML file. Any ideas? TIA!
>>
>>Is the XML file out on the internet? What do mean by "Listen"? If you have a URL to the file, you can use this code.
>>
>>
>>ox=CREATEOBJECT("Microsoft.xmlhttp")
>>ox.open("post","http://www.MyDomain.com/MyXMLFile.xml",.f.)
>>ox.send()
>>lcXML = ox.responseText
>>
>>
>>This will suck the XML file into the variable lcXML.
>>
>>Hope it helps.
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform