...
Excerpt | ||
---|---|---|
| ||
Example 2 is written with reference to /wiki/spaces/FAQ/pages/37781537. |
Example 3 - Adding a SOAPEnvelope type object as a property to a message
In this example, we add the SOAP envelope in a SOAP request as a property to a message. The Enrich mediator is useful in this scenario since adding the property directly using the Property mediator results in the SOAPEnvelope
object being created as an OM
type object. The OM
type object created cannot be converted back to a SOAPEnvelope
object.
Code Block | ||
---|---|---|
| ||
<enrich>
<source type="envelope" clone="true"/>
<target type="property" property="ExtractedEnvelope"/>
</enrich> |
Excerpt | ||
---|---|---|
| ||
Added this content for the FAQ When ExtractedEnvelope is a SOAPEnvelope with OM type, why do we get "EnrichMediator SOAPEnvelope is expected" for SOAP requests? |
For another example using the Enrich mediator, see Sample 440: Converting JSON to XML Using XSLT.
...