Saturday, March 5, 2016

OSB : Simple File Write Service - SOA Suite 12.2.1

Applicable to SOA Suite 12.2.1 Quickstart for developers

In this post, I will cover simple file write OSB web service creation using OSB 12.2.1 console.

Log in to OSB console http://localhost:port/sbconsole
Navigate to All Projects on left menu > Click on default > Click on 'Create' button to Create a session



Create Business Service:
Click on New Icon > Select Resource > Services > Business Service





Select Technology as file and click OK



In Create Business Service window, give Resource Name as 'WriteFile' and select protocol as file (if not). Click on Next arrow mark.



Leave default in next screen and go next



Add Endpoint URIs. In this case, added 'D:/temp' as output directory. Click Create button on last screen to create business service.



Create Proxy Service:
Click on New Icon > Select Resource > Services > Proxy Service > Technology > http. Click OK.



In Create Proxy Service window, give Resource Name as 'Caller' and select protocol as http (if not). Click on Next arrow mark.



Leave default in next screen and go next. Click Create button on last screen to create proxy service.





Expand default Projects folder > click on 'Caller-Pipeline' > click on 'Open Message Flow' icon



Add Route > Edit Route > Add an Action > Communication > Routing







Choose the 'WriteFile' business service and Submit.



Click on 'Activate' button to save all changes.



Testing:
Click on 'Caller' proxy service > click on 'Launch Test Console'



Test the proxy service with some random input



Go to 'D:/temp' directory, a file will be created with random name as shown below. Open the file with Notepad to view the content that passed as input.



That's it..!

No comments:

Post a Comment

Provide your thoughts !