Thursday, 28 November 2013

Test REST API (Http GET/POST ) - using Chrome and Mozilla Firefox Add-on Tools

The typical HTTP call with GET/POST method can be tested using Free browser based extension tools like POSTER 3.1.0 ,SOA CLIENT 2.0,HTTP Resource Test etc.

POSTER – this tool lets you make HTTP GET and POST calls on REST enabled services.

  • Open Mozilla Browser > Tools  > Add-Ons  > Extensions Search for POSTER  > Click Install.

  • You Might need to restart the browser.




  • Thereafter, to use the Installed tool ; go to Tools > Poster


Now testing a publically available sample HTTP POST Service.

Let me take a service,from https://developers.google.com/accounts/docs/AuthForInstalledApps



Here we have a basic Login API exposed by GOOGLE ,that takes in accountType and Email and Password in Request Body

            accountType=HOSTED_OR_GOOGLE&Email=YOUR_GMAIL_ID@gmail.com&Passwd=YOUR_PASSWORD

  • Click !! POST Button


Response:

A success response contains the authorization token, labeled "Auth", in the body of the response. Your application must reference this token in each request to the Google service for this user. Additional cookies, labeled "SID" and "LSID”.

Friday, 22 November 2013

OSB File Adapter

Problem Statement:

I would like to poll the files in C:poller directory successfully using OSB Proxy Service using a File poller.

Pre-requisites

We start this with creating the Poller Directory under our C: drive of windows file system as My OSB insallation is done for Windows machine.











Windows folder StructureTesting the Folder URI using Browser
 

Solution:

1. Login to OSB Console: http://localhost:7001/sbconsole

2. Follow the below step to create the File Poller OSB Project from Console called “FilePoller”



3. Create a Sub folder Called ProxyService

4. Name the Proxy Service under the Subfolder ProxyService as TestFileAdp_PS

5. Follow the configuration screen shots to complete the polling configuration.



-



-



-



-



I would want to archive the successfully polled files inside the Archive directory in my Filesystems .

I also set the frequency of polling as 6 seconds.



6. Click Next

7. Click Next

8. Save

9. Activate the Configuration going back to Change Center.

Testing

- Test by placing the file with desired extention as we have specified *.* as File Mask during configuration.

- The result should resemble the below behavior.

Wednesday, 13 November 2013

OSB Console page is not loading

On single node environment in case of issues where osb console page fails to load properly, Please carry out following Steps to understand the actual cause.

Ø

Ø Logon to Weblogic console > Deployments



Please use the following tabs after selecting a particular component

· Monitoring Tab – individually monitor the OSB deployments component

· Target Tab – correctly target to Admin server if required.

· Control Tab – Individually bounce the component.