Anonymous,

Please Login or Register
Download Nuke Evolution today for a CMS you can enjoy using and sharing with your friends!

[ Download Now ]
Main Menu   
 
HomeHome  
    Home
Members  
    Profile
    Your Account
Community  
    Forums
Statistics  
    Statistics
    Top 10
Files & Links  
    Downloads
News  
    News
Other  
    Tutorials
    Content
    FAQ
    Site Map
Search   
 


Tutorials: Creating Sonic ESB Services using trial version 7.6 Work Bench Part 1


Description:

This tutorial takes you through the steps required to install and create a Sonic ESB service to connect to a Web Service and process the information.


Version: 1.0
Added on: 28 May 2011
Author: David Welford-Costelloe
Difficulty Level: Easy
Views: 219
Detailed Profile
Rate Resource

Creating Sonic ESB Services using trial version 7.6 Work Bench Part 1




What you will need:



Trial version of Sonic ESB work bench (registration required) http://web.progress.com/en/Product-Ca ... terprise-service-bus.html

• An free account registered with PublicIPMonitor http://www.publicipmonitor.com/

• Oracle Express Database free addition (registration required): http://www.oracle.com/technology/soft ... ts/database/xe/index.html





In order to download Sonic ESB Work bench you will need to register a valid email account in order to receive your free trial license key.




PUBLICIPMONITOR

In this tutorial part 1: we are going to connect to a web services provided by PublicIPMonitor and update an Oracle database with the change in IP. The next tutorials Part 2 we will also create a Sonic service to connect to Oracle Database and show the information received by the message bus.









Install Sonic Work Bench



a. In Vista perform the following to avoid permission errors:

From the Run option




Open in new window





b. Enter: msconfig



Open in new window





c. Click OK

d. Select the Tools Tab and select Disable UAC from the List and Click Launch


Open in new window





e. Click OK



Open in new window





f. You can now execute the downloaded Sonic Work Bench trial

g. Once the installation has been completed go back to the

system configuration and turn back on UAC




Open in new window





h. Click Launch to complete

Open in new window





i. That is it all done

2. Install Sonic Work Bench 7.6 trial (692 MB)

3. Check your email for your trial license key you will need this on the install

With UAC turned off change directory to where you downloaded the Sonic Work Bench (XP users do not need to turn off UAC as this is for Vista only)




Install Sonic Work Bench:



Open in new window





4. Double Click or open to install



Open in new window





5. On Vista Select Run

6. Extract to a folder you will remember for later




Open in new window





7. Click Unzip



Open in new window





8. After completed change directory to the temp extracted files and click Close

Open in new window





9. Change directory to the extracted files. I extracted to: C:UsersdavidAppDataLocalTempSonicWorkbench7.6



Open in new window





10. Double click or Open setup.bat to begin installation



Open in new window





11. Wait for Installer to load. You will need the trial license key to continue



12. If you get this message re-boot your computer: (Vista)




Open in new window





13. Select setup.bat and run as Administrator:



Open in new window





14. Click Next

Open in new window





15. Click Next

Open in new window





16. Click Next

Open in new window





17. Click Next

Open in new window





18. Click Accept agreement (don’t forget to read it first)

Open in new window





19. Enter your license key and click next

Open in new window





20. I use the default of C:sonic click Next

Open in new window





21. Click Yes

Open in new window





22. Click Next

Open in new window





23. Click Next

Open in new window





24. Wait for the next button to appear

Open in new window





25. Check to install documentation and click next

Open in new window





26. Click Next all done.

27. Turn UAC back-on for Vista and re-boot








Running Sonic Work Bench



1. Always start the domain manager first before loading the Work Bench, you can start the domain from the work bench if you prefer to avoid any errors I recommend you start domain manager first.

2. To start Domain Manager:


[/size]Open in new window





3. Start ==> Progress ==> Sonic 7.6 ==> Start Domain Manager (Vista run as Administrator)



Open in new window





4. On startup Sonic will build the registry etc

5. Next Start the Work Bench:


Open in new window





6. Start ==> Progress ==> Sonic 7.6 ==> Workbench (run as administrator Vista)

Open in new window





7. Leave this open for now:

Open in new window





Configure PublicIPMonitor





Now we need to setup a test account for this project. We will use Public IP monitor to connect to using Sonic ESB with a web service configuration:



1. Register for a free account at: http://www.publicipmonitor.com/

2. Download the PublicIPMonitor utility and install (Vista users turn off UAC before installing)

3. Select Register from Top Right Hand Corner:


Open in new window





4. Fill out the information required by aware use a valid email address as the updates will be sent to the entered email.

5. When completed Select Login with your credential and create your link for the ip update


Open in new window





6. Click on Download to install the PublicIP Service

Open in new window





7. Click on Add and create a test ip GUID

8. Copy the GUID created to the application service installed on your PC


Open in new window





9. Click save and you can now check for updates in your account. (Do not use the above as this is not a valid GUID just a test)

10. You are now ready to test




Building Sonic Services



1. From the Work bench: File ==> New ==> Sonic Development Project

Open in new window





2. Name this PublicIPMonitor:

Open in new window





3. Click Next

Open in new window





4. Leave default and click Finish

Open in new window





5. As per above the project Skelton

6. Create folders:


Open in new window





a. Processes

b. Database

c. XSLT

d. WebServices

e. XML (for our input/output files)






1. First we are going to create our process right click on the folder Processes: New ==> ESB Processes

Open in new window





2. Set Name as PublicIPProcess and click Next

Open in new window





3. Leave as default

Open in new window





4. Click Finish and a dummy service will be created

Open in new window





5. We are now going to create a Web Service call-out to send/retrieve the information from PublicIPMonitor. Delete the Service 1 (Click and Delete Key)

6. Drag Web Services component onto the Process:


Open in new window





7. From the right hand Palette Click Web Service and drag onto the process

Open in new window





8. Change the name to PublicIPMonitorWS (or whatever you like)

9. Double click on the service PublicIPMonitorWS


Open in new window





10. Now we need to configure a few items.

Open in new window





11. Check Inline and Click on the link Web Service Invocation

Open in new window





12. In the WSDL enter:



http://publicipmonitor.com/publicipwebservice.asmx?wsdl


and click refresh button this will load all the requirements for the WSDL.

Open in new window



13. As you can see from above the WSDL has been looked at by the ESB and loaded the parameters for you.

14. Next we need to create an input XML file that will match the parameter IPCheck

Before we do this make sure your Public IP Monitor is running:.


Open in new window





15. Click on Public IP Monitor

16. In the Test Value enter your GUID. Make sure you have installer PublicIPMonitor service :


Open in new window





17. Ensure the correct GUID is entered and click save and then close

Open in new window





18. Click on Check for Public IP Updates ( if the service is not running click Start)



1. Now we will create an XML input file for testing, Right click folder XML then File ==> New ==> XML


Open in new window





2. Add the name as PublicIPInput.XML

Open in new window





3. Click Next

Open in new window





4. Here we can add the WSDL again and pick the option from the WSDL:

Open in new window





5. Hit enter key after the ?wsdl to refresh DO NOT Click Finish

Open in new window





6. I have checked off Types to avoid confusion leave Elements checked, as you can see the first two are what we are interested in.

Open in new window





7. Select IPCheck and then click Next

Open in new window







8. Click finished to build input file for testing

9. Next we need to edit two parameters

a. org:monitored

b. org:currentIP




10. Next we need to add the correct information, add your PublicIPMonitor GUID:

Open in new window





11. I entered a default IP for current IP which will work fine for this test.



12. We can now test this invocation by creating a Scenario Click on the process Tab (Top)



Open in new window





13. Next we will create a Scenario:



Open in new window





14. Click on the Scenario Tab in the center window bottom left and click on the Open in new window



Icon


Open in new window







15. You can leave the name as it is we will need to add our input XML file

Open in new window





16. Click on the Eclipse button or drag the file into the Test Value

Open in new window





17. I drag easier that way

18. Click on the Run Button to test the web service:

19. Click Save at this point


Open in new window



20. Click Yes

Open in new window





21. If you look at the bottom tab (center) you can view the reply message, on the right click the max button so we can view the reply message.

Open in new window





22. This is what you should see:

Open in new window





23. Click on the Part message and you will see the results in the tag

Open in new window







That is it for part 1 you have now successfully connected to a Web Service and got a response using Sonic ESB.

Part 2 we will create a service to write this to an Oracle Express (free Download) Database
cool

Tutorials ©