synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "amit (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SYNAPSE-1098) Content-type not set properly for MTOM in Mock mode
Date Thu, 07 Dec 2017 23:16:00 GMT
amit created SYNAPSE-1098:
-----------------------------

             Summary: Content-type not set properly for MTOM in Mock mode
                 Key: SYNAPSE-1098
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-1098
             Project: Synapse
          Issue Type: Bug
            Reporter: amit
            Assignee: Isuru Udana Loku Narangoda


Hi,

I am trying to use Synapse to create mock services supporting MTOM (without using axis2 server).
I am able to get it working using a custom mediator. The only issue is with the Content-Type
in the HTTP header. I am able to set the header to "application/multipart-related" but unable
to get the boundary added to the content-type. Below is the actual and the expected content
type header: 

*Actual HTTP header content type:*
Content-Type: multipart/related

**Expected HTTP header content type:**
 Content-Type: multipart/related; boundary="MIMEBoundary_cf282bb7f5878aef54b9e9a4db9"; type="application/xop+xml";
start="<0.ff282bb7f5878aef54b9e9@apache.org>"; start-info="text/xml"

Could someone please help me getting the suitable content-type http header from synapse? I
have already tried using below property. It doesn't set the boundary in the content type.
<property name="ContentType" value="multipart/related" scope="transport"/>



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message