| By Mark O'Neill | Article Rating: |
|
| July 15, 2011 06:10 PM EDT | Reads: |
240 |
When you think about converting XML in general, it's natural to think "use XSLT". But it's important to note that the Vordel Gateway actually supports conversion of XML to SOAP out-of-the-box without having to resort to using xslt. Simply use a "Set Message" with a SOAP Envelope and inside the SOAP Body put a ${content.body} attribute and then the incoming XML will be automatically placed into a SOAP envelope on-the-fly. Like this:
... and, as they say in the UK, "Bob's your uncle".But if you want to do this using an XSLT transformation, here is one you can use (import it using the "Stylesheet Conversion" filter):
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<xsl:text disable-output-escaping="yes">
<</xsl:text>SOAP-ENV:Envelope
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"<xsl:text disable-output-escaping="yes">></xsl:text>
<xsl:text disable-output-escaping="yes"><</xsl:text>SOAP-ENV:Body<xsl:text disable-output-escaping="yes">></xsl:text>
<xsl:copy-of select="*" />
<xsl:text disable-output-escaping="yes"><</xsl:text>/SOAP-ENV:Body<xsl:text disable-output-escaping="yes">></xsl:text>
<xsl:text disable-output-escaping="yes"><</xsl:text>/SOAP-ENV:Envelope<xsl:text disable-output-escaping="yes">></xsl:text>
</xsl:template>
</xsl:stylesheet>
Read the original blog entry...
Published July 15, 2011 Reads 240
Copyright © 2011 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.
- Rethink SOA - A Recipe for Business Transformation
- The Difference Between Unit Testing and Integration Testing
- Managed File Transfer - Checking The Weather in Barrow Alaska
- SQL Peer-to-Peer Dynamic Structured Data Processing Collaboration
- Rajaratnam Wants Jury Verdict Overturned
- Create Linux User Login Monitor on Monitis
- Moses-Like, Intel Points to the Promised Land of Exascale Computing
- Acer’s Financial Troubles Mount
- A Maturity Model for Application Performance Management Process Evolution
- Ex-Massachusetts House Speaker Convicted in Cognos Bribery Case
- The Costs and Implications of EHR System Downtime on Physician Practices
- Columnar RDBMS, Gourmet Fast Food and Santa Claus
- Upstart to Challenge FedEx, UPS & USPS
- Rethink SOA - A Recipe for Business Transformation
- The Difference Between Unit Testing and Integration Testing
- Managed File Transfer - Checking The Weather in Barrow Alaska
- Cisco to Cut Jobs, Abandons Growth Projections
- SQL Peer-to-Peer Dynamic Structured Data Processing Collaboration
- Supremes Hear Microsoft-i4i Case
- Intel Redesigns the Transistor
- The Stealthy Ascendancy of JSON
- Acer Reorgs to Meet Crisis
- Lawson Takes Infor Deal, Can’t Do Any Better
- Enterprise Search 2.0: How to Unleash Your Data’s Potential
- 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
- 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
- eXist - An Introduction To Open Source Native XML Database

































