Attachment Mediator
-------------------
Key: SYNAPSE-45
URL: http://issues.apache.org/jira/browse/SYNAPSE-45
Project: Synapse
Issue Type: New Feature
Reporter: Rajith Attapattu
Assigned To: Paul Fremantle
Hi Folks,
This feature is implemented as part of the extentions package
The attached patch can do the following operations.
Base64 --> MTOM and MTOM --> Base64
As the next step I will do SwA --> MTOM and MTOM --> SwA.
Here is what you need to do to get this working
Simply add the following to your synapse.xml at the appropriate level.
<attachments mode="BASE64_TO_MTOM" mimeType="image/gif">
<attachmentPath>ns1:picture</attachmentPath>
<attachmentNS prefix="ns1" name="http://axis2/sample/namespace1" />
</attachments>
The attachment path is the xpath to the element that represents the attachment
The attachment names space is the NS for the attachment element.
* Enable MTOM at the axis2.xml, as there is a bug in axis2 (JIRA AXIS2-1798)
For the reverse please do the following.
<attachments mode="MTOM_TO_BASE64" mimeType="image/gif">
<attachmentPath>ns1:picture</attachmentPath>
<attachmentNS prefix="ns1" name="http://axis2/sample/namespace1" />
</attachments>
* Disable MTOM at the axis2.xml, as there is a bug in axis2 (JIRA AXIS2-1798)
Feedback is appreciated.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]