Thursday, April 23, 2015

WSO2 ESB send same request to different Rest services

In this scenario I need to send a post request to two different REST services, I am using REST API configuration of WSO2 ESB First I need to post a request to first service and based on successful posting then need to post this same original request to another service and also But I need to obtain the response from first service and send it to client.However I do not need to obtain the response from second service.

I have illustrate this scenario in the simple flow diagram.

Relevant Synapse configuration.

Monday, April 20, 2015

Simple http based file sharing server with in a second!

Recently i have come across a situation where I have to quickly need to share a file with my colleague and i did not had any ftp servers or any portable devices with me at that time!

So instance solution.... use Python!!!! if you have already installed the python in you machine.

Go to the directory that you want to share your files
Run "python -m SimpleHTTPServer 8000"

Then give your IP address to your friend and Now he can access your directory via browser ::)