Connecting to a web service
Hi,
I am new to coding web services and trying to connect to an API that returns its format in xml or json.
I have a class as follows.. when I run I get back a 6059 in my status - Unable to open TCP/IP socket to server
Can someone help me identify what I am missing? Thanks
Class Common.WebDownload Extends (%RegisteredObject, %XML.Adaptor) { ClassMethod Connect() { Set aa=##class(%Net.HttpRequest).%New() Set aa.Server="https://www.actualwebaddresshere.com" Set aa.Location="/service/actual location path and my API key here/" Set aa.ContentType="text/xml" set bb=aa.Get() break } Method Get(location As %String = "", test As %Integer = 0, reset As %Boolean = 1) As %Status