How to Decode Json From web service [ to Mr. Rao ]
Posted: Tue May 31, 2016 11:22 am
Helloo Mr. Rao
Please test !
and how to save this return value records to database
Thank you
Best Regards
Fafi
Please test !
- Code: Select all Expand view
#include "fivewin.ch"
function Main()
local odoc := CreateObject( "MSXML2.DOMDocument" )
local ohttp := CreateObject( "MSXML2.XMLHTTP" )
ohttp:Open( "GET" ,"http://www.w3schools.com/angular/customers.php", .F. )
ohttp:SetRequestHeader( "Accept" , "application/xml")
ohttp:SetRequestHeader( "Content-Type" ,"application/json" )
oDoc:async := .f.
oDoc:LoadXml('<?xml version=""1.0"" encoding=""utf-8""?>')
ohttp:Send(oDoc:xml)
strret := alltrim(ohttp:responseText)
?strret
return nil
and how to save this return value records to database
Thank you
Best Regards
Fafi