Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I deserialize XML?
Message
 
To
31/01/2006 16:32:44
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01092064
Message ID:
01092385
Views:
22
This message has been marked as a message which has helped to the initial question of the thread.
>I'm calling a web service method that needs a parameter passed to it that is of type object. I have this parameter as an XML string. How do I pass it as an "object"?
>
>Any help is greatly appreciated.
>
>Thanks,
>Mike

I do it like this:
oHTTP=NewOBJECT("MSXML2.XMLHTTP")
oHTTP.open([POST],lcURL,.f.)
oHttp.setRequestHeader("Content-Type", "text/xml")
oHttp.send(lcSendXML)
The method (in ASP) that recieves it looks like:
dim oXML
set oXML = Server.CreateObject("Msxml2.DOMDocument")
oXML.async = false
oXML.resolveExternals = false
oXML.load(Request)
It works the same way with a foxISAPI COM:
PROCEDURE XMLReceive
LPARAMETERS lcFormsVars,lcIniFile,lnReleaseFlag
oXML=CreateObject("Msxml2.DOMDocument")
oXML.async = .f.
oXML.resolveExternals = .f.
oXML.LoadXML(lcFormsVars)
The newer versions of "Msxml2.DOMDocument" merge XSDs that the older ones will not. And some DNS providers do not "contain" the newer ones.


HTH
Imagination is more important than knowledge
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform