Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I deserialize XML?
Message
From
01/02/2006 13:41:10
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:
01092467
Views:
23
>>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

Hi Terry,

That's what I ended up doing, "oHTTP Posting"

Mike
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform