I used something like that.. maybe will little schema for you
lcURL = 'https://xml.usm.channelonline.com/REQUEST'
* Just create little xml
oxmldocument = CREATEOBJECT("Microsoft.XMLDOM")
oxmldocument.async = .f.
oxmlroot = This.oxmldocument.createNode(1,"MYCUSTOMROOT","")
oxmldocument.appendChild(oxmlroot)
xmldoc = oxmldocument.xml
xmlhttp = CreateObject("Microsoft.XMLHTTP")
llRequest= xmlhttp.Open("POST", lcURL, .f.)
This.xmlhttp.Send(xmldoc)
lvResult = This.xmlhttp.responseXML.xml
Denis
>I am new to using XML and I am having problems getting started.
>I have created a test.xml file that I am trying to post to the following URL I am tryinyo to integrate VFP with a new XML based site. In the documentation it says all messages should be sent to
>'https://xml.usm.channelonline.com/REQUEST'
>
>This is my code.
>
>local loXML as MSXML2.XMLHTTP
>loXML = createobject('MSXML2.XMLHTTP')
>loXML.open('POST', 'https://xml.usm.channelonline.com/REQUEST', .F.)
>loXML.setRequestHeader('Content-type', 'text/xml')
>loXML.send()
>
>=MESSAGEBOX(loXML.responseText)
>
>Where do I put the XML file in order to send it ?
>
>Thanks in advance
>carmel
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only