-1

I am trying to construct a map object with relevant parameters to send a message using POST URL via REST. Looks like the cURL command line tool with the parameters work perfectly fine in posting a message into Solace Persistent queue. However, when I construct the parameters like User ID, Pwd, VPN URL, Queue name, message in a map object, the Solace VPN always rejects saying invalid credentials. Are there any samples available from Solace on the construction of map object with these parameters? In the current documentation, we have only the cURL command sample is given. Kindly advise if anyone has solution for the same.

1 Answers1

1

I am assuming you are referring to the example cURL commands for Solace REST messaging here: https://docs.solace.com/RESTMessagingPrtl/Solace-REST-Example.htm

To add credentials information for cURL, you just need the "-u" flag as described here: Using cURL with a username and password?

  • Thanks for your response. The curl command line sample in the documentation works perfectly fine with all the relevant flags. My problem is when I have to convert the relevant parameters into a map object before posting the URL request. I am doing it in a third party application which supports REST API calls. – Ganesh Sethuramalingam Mar 20 '19 at 04:24
  • Can you share any relevant code excerpts of what you are trying in this third party app? – Jamil Ahmed Mar 20 '19 at 11:14
  • Thanks, the issue with the credentials map and headers is sorted out. Now the connectivity is perfectly fine. – Ganesh Sethuramalingam Mar 26 '19 at 12:25