Wednesday, 24 September 2014

Steps to verify Liferay service via SOAP UI

1)    Download SOUP UI (http://softlayer-sng.dl.sourceforge.net/project/soapui/soapui/5.0.0/SoapUI-x32-5.0.0.exe)
2)    Get list of services exposed by Liferay
    -    Hit URL : http://<server>:<port>/api/secure/axis
3)    Open SOAP UI ("C:\Program Files (x86)\SmartBear\SoapUI-5.0.0\bin\SoapUI-5.0.0.exe")
    -    Click on File -> New SOAP Project
    -    Project Name : "Portal_PortalService"
    -    Initial WSDL : "http://localhost:8080/api/secure/axis/Portal_PortalService?wsdl"
    -    Click on "OK"
4)    Under "Projects" our project will get list down
5)    Explore project(click "+" sign) to see list of operations/methods
6)    Double click on "getBuildNumber" -> "Request1"
7)    That will open a new window where we can specify input parameters for the method
8)    Click on "Authorization" tab of "Request1" window
9)    In "Authorization:" dropdown select "Add New Authorization"
10)    Select "Type" : "Basic" (Inside "Add Authorization" popup)
11)    Click on "Ok"
12)    A new screen will appear under "Authorization" section
13)    Give "UserName" & "Password" (liferay's screenname & password)
14)    Let other options as it is i.e.(Default options)
    -    Domain : ""
    -    Pre-emptive auth: "Use Global Preference"
    -    Outgoing WSS : ""
    -    Incoming WSS : ""
15)    Click on green arrow under "Request 1" screen (Left top) (Its use to Submit request to specified endpoint URL)
16)    On the right section of "Request 1" section you will be able to see response in XML/Raw format

Cheers!
Henal Saraiya
(Senior Consultant)
CIGNEX Datamatics

No comments:

Post a Comment