Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Posting XML
Message
From
14/05/2004 12:16:11
 
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Title:
Miscellaneous
Thread ID:
00904121
Message ID:
00904125
Views:
20
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
Map
View

Click here to load this message in the networking platform