TD Wiki article added how to consume WebServices (SOAP) and REST services (JSON) using Microsoft XMLHTTP.
Sample provided works for all TD versions, starting with TD 2.1.
https://wiki.tdcommunity.net/index.php/W ... ft_XMLHTTP
Consume SOAP Webservices & REST/JSON using Microsoft XMLHTTP
-
- Founder/Site Admin
- Posts: 2956
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
Consume SOAP Webservices & REST/JSON using Microsoft XMLHTTP
Regards,
Dave Rabelink

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Dave Rabelink

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Consume SOAP Webservices & REST/JSON using Microsoft XMLHTTP
That's great Dave!. It is really good news that REST API/JSON is working fine and able to use all HTTP Verbs.
Thanks
Siva A
Thanks
Siva A
Re: Consume SOAP Webservices & REST/JSON using Microsoft XMLHTTP
Hi Dave,
Very useful article. I'm already using it. But I'm missing the part of parsing the JSON response with TD 6.1 (I can't migrate to 7.x for now).
If it was XML, I would use classes like MSXML2_DOMDocument, MSXML2_IXMLDOMElement MSXML2_IXMLDOMNodeLis (functions loadXML, hasChildNodes,selectSingleNode, selectNodes, PropGetitem )
But for JSON, is there a library to parse the response and convert it to an object (deserealize)?
Thanks
Very useful article. I'm already using it. But I'm missing the part of parsing the JSON response with TD 6.1 (I can't migrate to 7.x for now).
If it was XML, I would use classes like MSXML2_DOMDocument, MSXML2_IXMLDOMElement MSXML2_IXMLDOMNodeLis (functions loadXML, hasChildNodes,selectSingleNode, selectNodes, PropGetitem )
But for JSON, is there a library to parse the response and convert it to an object (deserealize)?
Thanks
Re: Consume SOAP Webservices & REST/JSON using Microsoft XMLHTTP
I am using above sample in my TD 7.0 application,in my case i don't want to send json data as a string,because it's complex json data.Dave Rabelink wrote: ↑18 Jul 2018, 13:20TD Wiki article added how to consume WebServices (SOAP) and REST services (JSON) using Microsoft XMLHTTP.
Sample provided works for all TD versions, starting with TD 2.1.
https://wiki.tdcommunity.net/index.php/ ... ft_XMLHTTP
also i tryed to use SalJsonSerializeUDV but did't successed(because there is no header parameter)
How can I send JSON data as a object to the REST API in HTTP_POST...
instead of send request (JSON string)
Rega
Who is online
Users browsing this forum: [Ccbot] and 0 guests