How to invoke a shell script on remote machine from WSO2 - wso2

I am wondering if there is a way to invoke a shell script on a remote machine using the existing message mediators in wso2/synapse.
Or should I write a custom mediator using JSch?
Thanks!

you could use the predefined language in wso2(js, Ruby or Groovy) to call shellscript using script mediator

Related

What is the best way to use web3.js on the backend side?

I am trying to create a web wallet application using "#solana/web3.js" for study purposes.
The backend side is using PHP (Laravel).
Which of the following is the best option on how to call web3.js on the backend side?
Call it from PHP using the exec function like "node xxxxx.js
Call node.js from PHP via curl, etc.
Using web3.js from PHP is not a good idea (backend should be implemented in node.js)
None of the above (Please tell me how to do that.)
Maybe #4, look into ethereum's JSON RPC that web3.js wraps and call the endpoints directly from back-end.
Your best bet will be to use a PHP package that can interact with Solana. There's a currently-deprecated-but-maybe-coming-back package that you can use at https://github.com/tighten/solana-php-sdk

Using Neo4j Java API with Python Flask application - how?

I have a Flask application that uses Neo4j and is written in Python. Now, I need to use Neo4j's Java API for traversal and other purposes. What would be a starting point to make this work?
Thanks.
You won't be able to do this from Python. The traversal API and core API are Java-only, and must execute on the machine where Neo4j is running.
This means you either have to be using an embedded Neo4j deployment (which you aren't), or you need to create a custom procedure/function/kernel extension in Java that will use those APIs and be callable in Cypher queries that you make remotely via the Python Neo4j driver.

How specify proxy in Katalon programically?

I am have list of proxies and I need repeat one test through every proxy. How to specify proxy in Katalon programically? I havent found any groovy methods for this is Katalon documentation.
Maybe I can specify proxy in Katalon using command string options? Then I can write programm that execute katalon for every proxy, but i dont find this command string options in docs
Katalon Studio version 5.3.1 has supported passing proxy settings to console mode command. It is not yet available to set proxy settings from test script.

How do I download the artifacts from a jenkins build through python

How do I download the artifacts from a Jenkins build to my local machine using Python?
I will assume that you want to download via http.
You might want to use GNU wget for example, but if you really want to use Python - check out How do I download a file over HTTP using Python?. Urllib2 provides an easy way to handle http requests.
This is providing that you will not need to perform any additional actions to get to the file (authentication etc.).

how do i call web service methods using VBScript?

I have WSDL service running on my machine and it has few methods
GetResources()
GetCounters()
etc i want to get data from those methods.
How can i do that using VB Script.
Can anyone just help me out in doing this?