RPC Broker and IRIS

295 views
Skip to first unread message

Brandon Butler

unread,
Nov 24, 2023, 12:25:48 AM11/24/23
to Hardhats

Hello all,

I have downloaded the latest community edition of IRIS and have stood up a vista system with File Manager, Taskman, the RPC Broker  etc up and running on the latest FOIA release. I am trying to eventually connect a JS/React front end to a long-term mumps project of mine via the RPC Broker within my vista instance. Before getting into the weeds of trying to connect to my front end, I wanted to ensure my connection to the Broker was good to go and returning data from the RPCs in my instance via Postman, but have not been able to do so as I get a 403 error every time.

I cannot figure out what this URL should look like that is hitting the web server  in iris or in general what the proper way is to set up the POST request that is coming from Postman. The RPC Broker is running on port 9000 (the port in my server is 9000 as well) and my URL looks like some variation of this:   http://localhost:52773/RPCNAME          I have a knowledge gap on exactly how this communication is taking place on the web server and what the mechanism is that actually reaches into Vista, so am a bit lost on where to even begin solving this problem.

Can anyone explain how I properly hit the RPC Broker?  I've read all the documentation I can find but there just isn't much out there on this subject. I know its possible to do so though because I am on a project right now that is doing just this, however, there is complicated architecture in place with middle layers + authentication (and a management portal that I have no access to), so I have not been able to find the answer there. Thanks.

Nancy Anthracite

unread,
Nov 24, 2023, 4:39:55 AM11/24/23
to Hardhats, Brandon Butler
Are you doing this with the test version of IRIS? If so, are you trying to
use the broker from the same machine that you installed IRIS on?

--
Nancy Anthracite

Brandon Butler

unread,
Nov 24, 2023, 4:52:32 AM11/24/23
to Hardhats
I believe so, it is the community edition which is the free download from Intersystems that comes with 5 users. Yes I am doing all of this on one machine. That is an interesting question though...what is the significance of being on one machine?

Nancy Anthracite

unread,
Nov 24, 2023, 5:05:06 AM11/24/23
to Hardhats, Brandon Butler
In the past you could not connect from outside of the machine with the
community edition. Also, there are a limited number of licenses and you may
not have enough available to do all you want to do.

Maybe this will help which helped things to work with Cache which is similar
to Iris,.

https://opensourcevista.net/NancysVistAServer/WVEHR-3.0-Install-Cache/
InstallingWorldVistAEHR3.0WithSingleUserVersionCache.doc

--
Nancy Anthracite

On Friday, November 24, 2023 4:52:31 AM EST Brandon Butler wrote:
> I believe so, it is the community edition which is the free download from
> Intersystems that comes with 5 users. Yes I am doing all of this on one
> machine. That is an interesting question though...what is the significance
> of being on one machine?
> On Friday, November 24, 2023 at 4:39:55 AM UTC-5 Nancy Anthracite wrote:
>
> > Are you doing this with the test version of IRIS? If so, are you trying to
> > use the broker from the same machine that you installed IRIS on?
> >
> >

Brandon Butler

unread,
Nov 24, 2023, 5:11:27 AM11/24/23
to Hardhats
Understood, I will take a look at this. Thank you.

David Whitten

unread,
Nov 24, 2023, 12:31:45 PM11/24/23
to hard...@googlegroups.com
I’d like you to tell us what you think Postman is, since it is certainly not the common method of communication with the VA RPC Broker. 

Your syntax looks like a web request which is not the binary protocol to request the broker to perform a Remote Procedure Call with arguments and receive the results from VistA. 

Dave Whitten
--
--
http://groups.google.com/group/Hardhats
To unsubscribe, send email to Hardhats+unsubscribe@googlegroups.com

---
You received this message because you are subscribed to the Google Groups "Hardhats" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hardhats+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hardhats/b07715a0-cd6a-4fb2-95a3-6e37d8832523n%40googlegroups.com.

Brandon Butler

unread,
Nov 24, 2023, 2:56:44 PM11/24/23
to Hardhats
In short, Postman is a way to test REST APIs. I have worked with and seen front end devs use postman to call into vista RPCs, which is why this was my initial approach. The issue is I have no idea how they are pulling it off. 



---
You received this message because you are subscribed to the Google Groups "Hardhats" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hardhats+u...@googlegroups.com.

Sam Habiel

unread,
Nov 24, 2023, 6:22:16 PM11/24/23
to hard...@googlegroups.com
Ask your colleagues how this REST trick works and tell us.

I implemented something like it over here: https://github.com/shabiel/M-Web-Server, but I don't remember the details now (I think it's /rpc/).

But the RPC protocol is a TCP wire protocol and has no relationship to HTTP what so ever.

--Sam

Brandon Butler

unread,
Nov 24, 2023, 6:55:24 PM11/24/23
to Hardhats
I reached out to a couple of developers to see if they could give me some insight so we'll see what comes of it. It's 100% being done because I've seen it several times on calls testing with front end devs who are using JWT tokens and the URL they are using in Postman is localhost:52773/etc (or 52772, 52771), so it makes it look like they are going right into iris because that is the default web server port number. I'll figure out how its being done....would seem ridiculous that my dev team could interact with vista in a way that I (we) couldn't. 

Also, I'll check out that project. Looks cool.
Reply all
Reply to author
Forward
0 new messages