Send request to web service via NXSL script
-
Does the NXSL script support a function to make a request to a web service and return the retrieved data and HTTP code?
-
Hi, here would be example from documentation and the script needs to be executed on the node where agent with "EnableWebServiceProxy=yes" is running.
webSvc = $node.getWebService("web_service_definition_name");
result = webSvc.get();
println(result.httpResponseCode);
println(result.document);If this agent is on your NetXMS server node, you can use GetServerNode() instead of $node, this way you can run this script in context on any node.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login