Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web Service to consume XML document, how?
Message
General information
Forum:
Visual FoxPro
Category:
Web Services
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01017923
Message ID:
01018242
Views:
20
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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform