Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I deserialize XML?
Message
De
01/02/2006 13:41:10
Mike Sue-Ping
Cambridge, Ontario, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01092064
Message ID:
01092467
Vues:
21
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform