>>>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