Hi Vivek, If you are getting an error when sending from APIM then add the properties in the inSequence of the operation[1].
[1] https://docs.wso2.com/display/AM210/Adding+Mediation+Extensions On Thu, Sep 21, 2017 at 8:28 PM, vivekkumar <[email protected]> wrote: > Thanks for replying but this is not working. > > Just to be clear i am using the APIM. Following is my 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="default" 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> > > I am posting file to API manager and than sending it again to back-end > service > > > > -- > Sent from: http://wso2-oxygen-tank.10903.n7.nabble.com/WSO2- > Development-f3.html > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > -- Thank you Best Regards *Rajjaz HM* Software Engineer Platform Extension Team WSO2 Inc. <http://wso2.com/> lean | enterprise | middleware Mobile | +94752833834|+94777226874 Email | [email protected] LinkedIn <https://lk.linkedin.com/in/hmohammedrajjaz> | Blogger <http://rajjazhm.blogspot.com/> | WSO2 Profile <http://wso2.com/about/team/mohammer-rajjaz/> [image: https://wso2.com/signature] <https://wso2.com/signature>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
