Skip to main content
Question

Inbound and Outbound REST

  • September 29, 2022
  • 2 replies
  • 0 views

Nelson Schroth
I have created a REST service using MVIS, which will "listen" for inbound calls.
Can it also be used to send outbound REST calls, or would that require a U2 program to utilize BASIC host subroutines (like createSecureRequest, etc.)  outside of MVIS?

2 replies

Frank Hanshaw
Forum|alt.badge.img
  • Participating Frequently
  • 6 replies
  • September 30, 2022
I have created a REST service using MVIS, which will "listen" for inbound calls.
Can it also be used to send outbound REST calls, or would that require a U2 program to utilize BASIC host subroutines (like createSecureRequest, etc.)  outside of MVIS?
Yes, that's correct, sending is done with U2 programs.

Mike Rajkowski
Forum|alt.badge.img+1
  • Rocketeer
  • 162 replies
  • October 10, 2022
I have created a REST service using MVIS, which will "listen" for inbound calls.
Can it also be used to send outbound REST calls, or would that require a U2 program to utilize BASIC host subroutines (like createSecureRequest, etc.)  outside of MVIS?

Nelson,

There are a lot of ways to accomplish what you want, In addition to a BASIC program, the following is a list at a  high level. 

  1. MV BASIC program
  2. Executing curl statement
  3. Python call to mod that does the call
  4. MV Connect

 
Which you pick depends on the third party REST Service you are trying to access.  
i.e. If it has swagger docs, execute curl directly from pick basic EXECUTE using the sample from Swagger.