Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Web Service to consume XML document, how?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01017923
Message ID:
01018242
Vues:
21
I personally uses XMLDOM for this case, but that was because i wrote Web Services since VFP7. Yes, this should work.

Jaime


>I am planing a Web Service which will receive XML document from our users? I would like to write a MTCOMDLL that will receive the XML document through HTTPS and parse the information into VFP tables. The XML document schema is defined an external XSD file.
>
>How can I use XMLAdapter to achieve this?
>
>Or is there a better way to do this? Maybe in .NET?
>
>I am think of something like this:
>
>DEFINE CLASS MyWebService AS Session OLEPUBLIC
>   PROCEDURE NewCustomer(lcCurstomerInfoXML AS String) AS String
>      LOCAL loXMLAdapter AS XMLAdapter
>      LOCAL lcReturn
>
>      loXMLAdapter = CREATEOBJECT("XMLAdapter")
>
>      OPEN DATABASE "mydb.dbc"
>
>      loXMLAdapter.LoadXML(m.lcCurstomerInfoXML)
>
>      &&& Save the data into the database
>
>      CLOSE DATABASES ALL
>
>      RETURN m.lcReturn
>   ENDPROC
>ENDDEFINE
>
>
>Would this work?
>
>Will appreciate any comments or recommendations!
Why do programs stop working correctly as soon as you leave the Fox?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform