| By Mark O'Neill | Article Rating: |
|
| February 13, 2012 09:36 PM EST | Reads: |
365 |
Recently I set up a simple Search and Replace policy using the Vordel Gateway. Here is how I configured this. For the purposes of this blog post, I'm replacing the text "Monday" with "Tuesday".The string replacement is achieved in a small number of filters, and the main work (the actual search and replace) is done in the "String Replace" filter. Let's look at this in action:
Starting from the top, I am using a "Retrieve from Message" filter to read the whole message into a variable, which I'm calling "ReplacementExample". I am reading the entire message, using a "/" XPath Expression.
Next, here is where I am using the "String Replace" filter, to simply replace the text "Monday" with "Tuesday". You can see that if I wanted to use a Regular Expression for a more complex scenario, I could configure this here too.
Finally we see the policy in action. I'm using the free SOAPbox tool as the client. You can see that the day information in the message is automatically replaced by the "String Replace" filter.

Read the original blog entry...
Published February 13, 2012 Reads 365
Copyright © 2012 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Mark O'Neill
Mark O'Neill is Chief Technology Office of Vordel. Vordel connects applications to applications, businesses to other businesses, and SOA to Cloud Computing. A regular speaker at industry conferences and a contributor to SOA World Magazine and Cloud Computing Journal, Mark holds a degree in mathematics and psychology from Trinity College Dublin and graduate qualifications in neural network programming from Oxford University.
- Agile Development & Enterprise Architecture Practice – Can They Coexist?
- Twenty-Thousand Men Pregnant Because of Bad Data
- Brief Summary of IaaS, PaaS, SaaS
- Trends in Social Media – 2012
- Apply Agile When Deploying Apps
- Cisco Helps Back Cloud Storage Start-Up Ctera
- Cloud Expo New York: Redefining Cloud Computing… Again
- Big Data and the Cloud at Cloud Expo New York
- Cloud Expo New York: Making the Enterprise Comfortable with the Cloud
- Achieving Cost-Effective HPC in the Cloud at Cloud Expo New York
- Why Is Scrum So Widely Adopted and So Very Dangerously Deceptive
- Behind Every Cloud Is a Data Center in Disguise
- Are You Your Own Worst Enemy?
- Agile Development & Enterprise Architecture Practice – Can They Coexist?
- International Space Station Heads of Agencies (Joint Statement)
- Twenty-Thousand Men Pregnant Because of Bad Data
- Brief Summary of IaaS, PaaS, SaaS
- Trends in Social Media – 2012
- Apply Agile When Deploying Apps
- Harper Government Renews Commitment to the International Space Station
- Cisco Helps Back Cloud Storage Start-Up Ctera
- Book Review: Decision Management Systems
- Cloud Expo New York: Redefining Cloud Computing… Again
- Big Data and the Cloud at Cloud Expo New York
- Where Are RIA Technologies Headed in 2008?
- Processing XML with C# and .NET
- AJAX World RIA Conference & Expo Kicks Off in New York City
- JSON vs XML - A Jason vs Freddie Sequel
- Has the Technology Bounceback Begun?
- i-Technology Viewpoint: The Very Confused World of 3D and XML
- BPEL Processes and Human Workflow
- The Top 250 Players in the Cloud Computing Ecosystem
- Generating XML from Relational Database Tables
- The Top 250 Players in the Cloud Computing Ecosystem
- Open Source Database Special Feature: An Introduction to Berkeley DB XML
- "HP's Problem Ain't the SAP Install," Says Sun's Schwartz





















