Friday, May 29, 2015

SOAP UI On Linux 64 Bit



[user@host1 soapui]$ ls
ReadyAPI-x64-1.3.0.sh
[user@host1 soapui]$ chmod u+x ReadyAPI-x64-1.3.0.sh
[user@host1 soapui]$ ./ReadyAPI-x64-1.3.0.sh
Unpacking JRE ...
Preparing JRE ...
Starting Installer ...
This will install Ready! API 1.3.0 on your computer.
OK [o, Enter], Cancel [c]
I accept the agreement
Yes [1], No [2]
1
Where should install tutorials?
[/home/celapp]
/opt/SmartBear/                                         
Create symlinks?
Yes [y, Enter], No [n]
y
Select the folder where you would like Ready! API 1.3.0 to create symlinks, then click Next.
[/usr/local/bin]

Create a desktop icon?
Yes [y, Enter], No [n]
y
Extracting files ...
                                                                           
Setup has finished installing Ready! API 1.3.0 on your computer.
Run Ready! API 1.3.0?
Yes [y, Enter], No [n]
y
View Release Notes http://readyapi.smartbear.com/release_notes/readyapi/latest
Finishing installation ...

Monday, May 11, 2015

How to test REST service from CURL


Here is the command to test the REST from curl


curl -i -H "Content-Type: application/json" -X POST -d '{"firstName": "Harish"} ' http://ussumsdsoaapp04:7001/hellorest/

If you need to pass the request payload from a file then use @filenamme 

curl -i -H "Content-Type: application/json" -X POST -d @hello.json http://ussumsdsoaapp04:7001/hellorest/

Content of  hello.json 

{"firstName": "Harish"}