Hi!,

I think your problem is related to this: 
https://stackoverflow.com/questions/45617964/wso2-missing-boundary-in-multipart-form-data-post
 
<https://stackoverflow.com/questions/45617964/wso2-missing-boundary-in-multipart-form-data-post>

Problem being the Content-type line does not set the boundary as it should.

Haven’t found a solution yet.

Best regards,
Joao Abrantes

> On 22 Sep 2017, at 08:57, vivekkumar <vivek.kum...@fisglobal.com> wrote:
> 
> I tried the option recommend in previous mail.
> 
> Still have same issue. Following is my mediator with new changes and log
> captured in TcpMon
> 
> ----------- mediator -------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <sequence name="multi" trace="disable"
> xmlns="http://ws.apache.org/ns/synapse";>
>    <property name="DISABLE_CHUNKING" scope="axis2" type="STRING"
> value="true"/>
>    <property name="FORCE_HTTP_1.0" scope="axis2" type="STRING"
> value="true"/>
>    <property name="entityId" scope="default" type="STRING" value="bank1"/>
>    <property name="paymentRef" scope="default" type="STRING"
> value="paymentRef1"/>
>    <payloadFactory description="payload-enhcrich" media-type="xml">
>        <format>
>            <root xmlns="">
>                <entityId>$1</entityId>
>                <paymentRef>$2</paymentRef>
>                <file content-type="text/xml" filename="payload"
> name="payload" xmlns="http://org.apache.axis2/xsd/form-data";>
> 
> $3</file>
>            </root>
>        </format>
>        <args>
>            <arg evaluator="xml" expression="get-property('entityId')"/>
>            <arg evaluator="xml" expression="get-property('paymentRef')"/>
>            <arg evaluator="xml" expression="get-property('uri.var.file')"/>
>        </args>
>    </payloadFactory>
>    <property description="" name="messageType" scope="axis2" type="STRING"
> value="multipart/form-data"/>
> </sequence>
> 
> ----------- TCPMON-------------------------
> 
> Content-Type: multipart/form-data
> Accept: */*
> Content-Length: 668
> Host: localhost:8082
> Connection: Keep-Alive
> User-Agent: Synapse-PT-HttpComponents-NIO
> 
> --MIMEBoundary_ed56c98c6eef392fa54834d54b1068a5832ea044544d85ed
> Content-Disposition: form-data; name="entityId"
> Content-Type: text/plain; charset=US-ASCII
> Content-Transfer-Encoding: 8bit
> 
> bank1
> --MIMEBoundary_ed56c98c6eef392fa54834d54b1068a5832ea044544d85ed
> Content-Disposition: form-data; name="paymentRef"
> Content-Type: text/plain; charset=US-ASCII
> Content-Transfer-Encoding: 8bit
> 
> paymentRef1
> --MIMEBoundary_ed56c98c6eef392fa54834d54b1068a5832ea044544d85ed
> Content-Disposition: form-data; name="file"
> Content-Type: text/plain; charset=US-ASCII
> Content-Transfer-Encoding: 8bit
> 
> 
> 
> 
> --MIMEBoundary_ed56c98c6eef392fa54834d54b1068a5832ea044544d85ed--
> 
> 
> 
> 
> --
> Sent from: 
> http://wso2-oxygen-tank.10903.n7.nabble.com/WSO2-Development-f3.html
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev

_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to