Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I deserialize XML?
Message
 
À
31/01/2006 16:32:44
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:
01092385
Vues:
21
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform