I am attempting to get xml from a website in my PB 2017 application, and use PBDOM to read it. Everything works fine on my development box but when I deploy it to the client it doesn't work. I deleted all of the pbdom files and reimported pbdom17.pbx. Everything compiles fine. When it didn't work, I tried deploying every dll, in case it was missing something. Still no luck. Here is the code. I have obscured the appid and appkey in the url so they won't work. That is not the problem in any case, because it is failing on the last statement (BuildFromString), which means the website is returning 200 (the valid status code). The error message it gives is "Bad runtime function reference at line 103...", which is the last line of the code I pasted in. Can anyone help?
lole_Send = CREATE OleObject
lole_SrvHTTP = CREATE OleObject
IF ISNULL(p_szZip) OR p_szZip = "" THEN
szApiString = "https://api.cityofnewyork.us/geoclient/v1/address.xml?houseNumber=" + szStreetNumber + "&street=" + szStreet + "&borough=" + szBoroughName +"&app_id=4fxxx&app_key=1xxxx"
szApiString = "https://api.cityofnewyork.us/geoclient/v1/address.xml?houseNumber=" + szStreetNumber + "&street=" + szStreet + "&zip=" + p_szZip +"&app_id=4f4xxx&app_key=1xxxxx"
lole_SrvHTTP.SetRequestHeader( "Content-Type", "application/json")
ls_status = string(lole_SrvHTTP.Status)
ls_response = string(lole_SrvHTTP.ResponseText)
CATCH (Runtimeerror er)
f_display_message('501|Unable to set electoral districts at this time. ')
IF ls_status <> "200" THEN
lReturn = XMLParseString(ls_response, ValNever!, szParsingErrors)
pbdom_bldr = Create PBDOM_Builder
pbdom_doc = pbdom_bldr.BuildFromString(ls_response)