Oracle SOA Suite- Implementing SMS Notification
In this post, I am going to show how to implement SMS notifications in Oracle SOA suite using BPEL process. So let's get started-
Implementing SMS notification in Oracle SOA Suite consists of below steps:
Environment-
- IDE- Oracle jDeveloper 11g
- Weblogic Server 12c
- Oracle SOA Suite 12c
- Keep ready smpp server settings.
- Configure & enable usermessagingdriver-smpp for target SOA servers via console.
- Setting up Email driver (usermessagingdriver-smpp )with smpp server settings via enterprise manager.
- Enable notifications for SOA workflows(make sure either All or SMS option is selected).
- Create SOA composite application
- Deploy it on SOA server.
- Testing & done.
1. Keep ready smpp server settings.
Keep ready your below smpp server settings:
- SMS Account ID
- SMS Server Host
- Transmitter System ID
- Transmitter System Type
- Transmitter System Password
- Transmitter Server Port
- Receiver System ID
- Receiver System Type
- Receiver System Password
- Receiver Server Port
2. Configure & enable usermessagingdriver-smpp for target SOA servers via console
- Login to weblogic console(http://host:port/console)
- Select domain in left panel
- Click on deployments
- Search for usermessagingdriver-smpp & click it
- Go to 'Settings for usermessagingdriver-smpp'
- Select targets
- Check all & click on 'Change Targets'
- Now select the servers where you want, I selected Admin Server L& SOA Server
- Click on 'Yes' button.
- Now your usermessagingdriver-smpp is enabled.
3. Setting up SMPP driver (usermessagingdriver-smpp)
- Login to weblogic em console(http://host:port/em).
- Now I want to configer smpp driver for soa_server1.
- Go to User Messaging left navigation panel and select usermessagingdriver-smpp (soa_server1).
- Now click on usermessagingdriver-smpp and select smpp driver properties
- Click on plus sign '+' to create a new configuration(this option comes in 12c version, 11g opens directly a email driver configuration page)
- Now fill the details under 'Create Driver Properties' with the help of smpp driver settings availabe in Step 1
- Test it and Ok.
4. Enable notifications for SOA workflows.
Now driver has been configured and need to enable notifications. This ca be done via below navigation:
SOA --> soa-infra(soa server) -->Right Click --> SOA Administration --> Workflow Properties --> Workflow Notification Properties --> Notification Mode : All/Email/SMS
Now our back end system is ready for sending SMS notifications for SOA workflows.
5. Create SOA composite application via jDeveloper
- Start jDeveloper and create a new application 'SMSBPELApplication' of SOA type.
- Create a new project 'SMSBPELProject' & finish.
- Now we need a schema i.e. xsd. For this demo we use below xml schema
- Process- Synchronous
- Keep option checked - expose as a web service
- Accept all defaults, 4 input & 1 output variable.
- Ok.
- Double click on bpel process(SMSBPELProcess) and there are two activities availabe in composite swimlane.
- Add an assign activity
- Double click and do assignment for output variable using expression builder
- Ok.
- Now add an email activity from component palet below the assign activity.
- Configure SMS activity
From Number -> bpws:getVariableData(‘inputVariable’,’payload’,’/client:process/client:From’)
Telephone Number -> bpws:getVariableData(‘inputVariable’,’payload’,’/client:process/client:To’)
Note: Telephone Number can be mapped from the users properties stored in LDAP
Subject -> bpws:getVariableData(‘inputVariable’,’payload’,’/client:process/client:Subject’)
Body -> bpws:getVariableData(‘inputVariable’,’payload’,’/client:process/client:Message’)
- Save it.
6. Deploy it on SOA server
Now create a connection via jDeveloper to your target soa server & deploy the application.
7. Testing the web service
- Login to em console
- Go to your soa server
- Select deployed composites and select your project.
- Below web service testing screen will open.
- Enter an email id and click on Test Web service button & check it in flow trace and the email(provided in textbox).
Note:
References
https://sahilaneja.wordpress.com/2013/12/18/oracle-user-messaging-service-smpp/
- Notification status can be verified inside usermessagingserver -> Message Status
- If you don't have live smpp server settings and would like to try on demo smpp server then you can try with Selenium SMPPSim Simulator. Here is the demo link http://bit.ly/2qdK4fM
References
https://sahilaneja.wordpress.com/2013/12/18/oracle-user-messaging-service-smpp/
Thank you for introducing like this tool. keep it update.
ReplyDeleteSOA Training in Hyderabad
SOA Online Training
I really liked your blog post.Much thanks again. Awesome.
ReplyDeleteOracle SOA Training in Hyderabad
Oracle SOA Online Training India
its very nice blog for me business SMS messages!
ReplyDeleteThank For sharing Valuable Information
ReplyDeleteMulesoft Training in Hyderabad
Mulesoft Online Training in India