Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - James Zukowski

Off Topic / Re: OneSource Integration
September 29, 2023, 09:47:05 AM
Good news! I was able to stumble my way into some solutions.
Web Services / Re: REST problems
September 28, 2023, 09:21:10 AM
No, I didn't. But our systems guys updated some outdated links and it looks like all is well.

Thanks, all, for the help. GREATLY appreciated!
Web Services / Re: REST problems
September 27, 2023, 05:07:18 PM
It's responding:
QuoteError #13: File access mode invalid
Last IO to [tcp];443;secure, channel 1
but no reference to the libraries.
Web Services / Re: REST problems
September 27, 2023, 03:48:40 PM
As a first step, it could be we've got old libraries linked as the defaults. I've sent a message to our OS team to check into it. Once we have some clarity there, I'll be able to update things here.

Thanks for the pointer.
Web Services / Re: REST problems
September 27, 2023, 01:45:03 PM
Here's the setup (website name changed, but path still there):

postdata$+=$0D0A$+"  "+quo+"client_id"+quo+": "+quo+clientID$+quo+","
postdata$+=$0D0A$+"  "+quo+"grant_type"+quo+": "+quo+"client_credentials"+quo+","
postdata$+=$0D0A$+"  "+quo+"scopes"+quo+": "+quo+"urn:tr:onesource:auth:api:IndirectTaxDetermination"+quo+","
postdata$+=$0D0A$+"  "+quo+"client_secret"+quo+": "+quo+clientSecret$+quo
extrahdrs$="Accept: application/json"
CALL "*plus/web/request",url$,postdata$,recvdata$,recvhdr$,mimetype$,"",extrahdrs$

I've tried with mimetype$="application/x-www-form-urlencoded". I've tried with and without the extrahdrs$.

We took the variable contents and fed that into the curl, and it worked fine.

All I can figure is that the full path (through /token) needs to be opened on the [TCP] connection, not just the domain ( That doesn't seem to be available with PxPlus, unless I'm not doing something right (which is quite possible).

Thanks for the help!
Web Services / REST problems
September 27, 2023, 10:44:08 AM
I've been wracking my brain trying to figure out what's going on, with only minor insights. It doesn't help that I don't really have any REST interfacing experience.

We're trying to connect with a service for address validations. There are two steps involved: (1) Get an oauth2 token from them, then (2) submit the actual request using the token. I haven't been able to get to step 2 because of failures in step 1.

Working with someone else in the company, we were able to get a curl command to work:

curl --location '' --header 'Content-Type: application/json' --data '{ "client_id": "xxxxxxxxxxxx", "grant_type": "client_credentials", "scopes": "urn:tr:onesource:auth:api:IndirectTaxDetermination", "client_secret": "xxxxxxxxxxx" }' > /tmp/result.txt

But running the related information through the *plus/web/request, I was ALWAYS receiving a 400 error in response. (Actually, I had to make some adjustments, since it always added ";secure" to the OPEN, and that generated a PxPlus error.) Apparently, we need to be able to submit the request down at the "token" page level, but the *plus/web/request breaks that up, and PxPlus won't accept a filename beyond the primary site (.com).

I would like to keep all of the programming within PxPlus, but if I need to curl things to get them to work, it's what I'll have to do. Any suggestions would be greatly appreciated.

Currently running v15 (2018) with WindX on Linux.
Off Topic / OneSource Integration
September 19, 2023, 01:13:22 PM
Hi All!
Has anyone had any experience interfacing PxPlus with Thomson Reuters OneSource for Address Validation? I've been stumbling a little and was wondering if anyone has any pointers.

Thanks in advance!
Off Topic / Re: New Posts on the Forum
September 05, 2023, 03:40:26 PM
I've attached the message for your reference.
Off Topic / New Posts on the Forum
September 05, 2023, 03:34:10 PM
It seems that when we try to post a new topic on the Forum, it takes quite a while before an error is returned that isn't really an error. The message actually gets posted but the error message says not. As a result, several people (including myself early on) have posted the topic again, only to find it creates a second entry.

Is there any way to get this cleared up?
Language / Re: 'DROP' mnemonic with ERR= clause
September 05, 2023, 03:16:45 PM
Thanks. Just surprised it's not a syntax error.
Language / 'DROP' mnemonic with ERR= clause
September 05, 2023, 12:04:38 PM
Is including an ERR= clause in the 'DROP' mnemonic a valid construct? e.g.:
print 'drop'(Win_Num,err=*next),
It doesn't generate an error, but it also doesn't seem to trap error #57 if the specified (non-zero) window# doesn't exist.
Any insights?
Language / Re: 'picutre' mnemonic
August 09, 2023, 03:37:30 PM
If I recall correctly, the 'picture' mnemonic requires the image to be on the local computer. So, if you're using WindX (as we are), you don't need to include the [WDX] or [LCL] prefixing, just the path to the image file. Ours reside in *bmp/
Programming / Re: update global functions at runtime
August 07, 2023, 09:55:03 AM
At a prior job, we occasionally updated the global functions, as well. If I recall, we PERFORMed the program with the functions. Whenever we set the functions, we also set a couple of global variables to the program's creation date/time, so we only reset them if the program was updated.

There was no need to DROP or ADDR, as PxPlus dealt with that automatically. The new versions of the functions would take effect immediately upon return to the caller.

Caveat: We were using Linux, not Windows, for our server. I don't think it should make a difference, though. Then again, it's Windows...
Web Services / Google Maps
July 13, 2023, 05:49:11 PM
It seems that the Google Maps object is only usable within Nomads. We're looking into using the GeoCode functionality to verify addresses being entered in various application programs. Is there a way to do that with the current object? Is there something else we can use? Do we need to develop something ourselves?

Thin Client/WindX / Re: Server to Windx failure
July 05, 2023, 02:36:04 PM
Just to confirm: After the drop, there's an empty file on the user's PC, correct?