This documentation is for WSO2 Enterprise Integrator version 6.0.0 . View documentation for the latest release.

All docs This doc

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Warning

This is introduced in the WSO2 Carbon 4.4.X Update 1612, which was released on 14th September 2017. For more information on applying the update, go to Updating WSO2 Products Getting Started with WUM.

The below example configuration uses VFS to upload the file in the specified location to the given HTTP endpoint via a HTTP multipart request. 

...

Code Block
languagexml
<header name="Content-Type" scope="transport" value="multipart/form-data"/>
  <property name="messageType"
      scope="axis2"
      type="STRING"
      value="multipart/form-data"/>

Example 8: Adding a literal

...

argument 

The following example adds a literal arguement argument to the Payload Factory mediator, and sets it to true. This allows you to consider the type of the argument value as String and to stop processing it. 

...

Info

If you do not add the literal="true" within the arguement argument in the Payload Factory mediator of the above configuration, you view the output as follows:

{"newValue" : "<pqr>abc</pqr>"}

...