Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble with CREATEOBJECT()
Message
De
01/05/2007 12:26:32
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
01/05/2007 11:52:22
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01221477
Message ID:
01221546
Vues:
9
>>>I have the following code:
>>>
>>>
>>>LOCAL oDocOM AS MSXML2.DomDocument
>>>LOCAL oNode AS MSXML2.IXMLDOMNode
>>>
>>>oDocOM = CREATEOBJECT('MSXML2.DomDocument')
>>>oNode = CREATEOBJECT('MSXML2.IXMLDOMNode')
>>>
>>>
>>>It errors on the last line with "Class definition MSXML2.IXMLDOMNODE is not found."
>>>
>>>Intellisense kicks in if I type "oNode." The variable oDOcOM gets created without problem. Does anyone know what I'm doing wrong here?
>>>
>>>TIA
>>>
>>>Mike
>>
>>Mike,
>>Wouldn't you create the oNode through oDocOM? What are you doing really?
>>Cetin
>
>Cetin,
>I'm trying to call a web service that takes a "nodelist" as a parameter. I thought that I'd start by creating "nodes", add them to a "nodelist" then pass that latter to the web service.
>
>Am I way off base here?
>
>Mike

Mike,
I think this would work:
select * from customer where country='USA' into cursor crsCustomer nofilter

LOCAL oAdapter as XMLAdapter
oAdapter = CREATEOBJECT('xmlAdapter')
oAdapter.AddTableSchema('crsCustomer',.f.,STRCONV('MyCustomers',12))
oAdapter.IsDifgram = .t.
oAdapter.ToXML('cXMLSampleData','',.f.)

local oDom as MSXML2.DomDocument
oDom = createo('MSXML2.DomDocument')
oDom.LoadXML(m.cXMLSampleData)
myWS.WebMethod( oDom.documentElement.childNodes() )
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform