Consume SOAP Webservices & REST/JSON using Microsoft XMLHTTP

Post your tools and samples or ask for them.
Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 2956
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Consume SOAP Webservices & REST/JSON using Microsoft XMLHTTP

Post by Dave Rabelink » 18 Jul 2018, 13:20

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
Regards,
Dave Rabelink

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

a_sivababu
India
Posts: 521
Joined: 10 Mar 2017, 08:46
Location: Chennai,India

Consume SOAP Webservices & REST/JSON using Microsoft XMLHTTP

Post by a_sivababu » 18 Jul 2018, 14:29

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

chelonet
Argentina
Posts: 56
Joined: 19 Apr 2017, 15:28
Location: Argentina

Re: Consume SOAP Webservices & REST/JSON using Microsoft XMLHTTP

Post by chelonet » 23 Dec 2020, 20:01

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

SSRJMC
Saudi Arabia
Posts: 23
Joined: 08 May 2017, 12:27
Location: Jeddah,Saudi Arabia

Re: Consume SOAP Webservices & REST/JSON using Microsoft XMLHTTP

Post by SSRJMC » 04 Jan 2021, 11:45

Dave Rabelink wrote:
18 Jul 2018, 13:20
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/ ... ft_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.
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

Return to “Tools & Samples”

Who is online

Users browsing this forum: [Ccbot] and 0 guests