Direct RESTMessageV2 example
-
- UpdatedJan 30, 2025
- 1 minute read
- Yokohama
- Outbound REST Web Service
You can send an outbound REST message directly to the endpoint.
In this example, the script sends a REST message requesting a stock quote and waits for a response. If there is no response from the web service provider, or if the specified REST message record is unavailable, the script throws an error, handled in this example by the try-catch block.