You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by yuhu yuhu <jo...@gmail.com> on 2020/03/17 04:59:20 UTC

problem with my synapse for fix

Hi All,

I am josua from malaysia,

I have problem with my fix transport using synapse program.
<definitions xmlns="http://ws.apache.org/ns/synapse">
<proxy name="ExampleFix4.2" transports="http https" >
    <target>
        <endpoint>
            <address
uri="fix://host:port?BeginString=FIX.4.2&amp;SenderCompID=MyServer&amp;TargetCompID=MyBroker&amp;SSLTunnel=NO">
                <suspendOnFailure>
                    <initialDuration>-1</initialDuration>
                    <progressionFactor>1</progressionFactor>
                </suspendOnFailure>
                <markForSuspension>
                    <retriesBeforeSuspension>0</retriesBeforeSuspension>
                </markForSuspension>
            </address>
        </endpoint>
        <inSequence>
            <property name="transport.fix.ServiceName" scope="axis2-client"
type="STRING" value="ExampleFix4.2"/>
            <log level="full"/>
        </inSequence>
        <outSequence>
            <log level="full"/>
            <send/>
        </outSequence>
        <faultSequence/>
    </target>
    <parameter
name="transport.fix.InitiatorConfigURL">file:/home/ec2-user/fastmatch_server_new/FIXTransaction.cfg</parameter>
    <parameter name="transport.fix.SendAllToInSequence">false</parameter>
    <parameter name="transport.fix.DropExtraResponses">true</parameter>
    <parameter name="transport.fix.InitiatorMessageStore">file</parameter>
    <parameter name="transport.fix.InitiatorLogFactory">false</parameter>
</proxy>

i have set true in my transportListener and sender
<transportReceiver name="fix"
class="org.apache.synapse.transport.fix.FIXTransportListener"/>
 <transportSender name="fix"
class="org.apache.synapse.transport.fix.FIXTransportSender"/>

i can send to my broker. But when want i see in my log in my synapse
console there is problem, my incoming message not become xml.
so i only got

here my soap message for request

<?xml version='1.0' encoding='utf-8'?><soapenv:Envelo
pe xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body>
      <message>
         <header>
            <field id="35">D</field>
            <field id="52">20200316-02:51:30.316</field>
            <field id="60">20200316-02:51:30.316</field>
         </header>
         <body>
            <field id="11">VTR_003</field>
            <field id="55">EUR/USD</field>
             <field id="54">1</field>
             <field id="38">10000</field>
                <field id="40">1</field>
                <field id="59">1</field>
             </body>
         <trailer/>
      </message>
   </soapenv:Body></soapenv:Envelope>

and here the response from my broker for incoming message using fix
<20200317-04:56:09, FIX.4.2:TRValueTrade2UAT1->Fastmatch1, incoming>
(8=FIX.4.29=23135=834=276449=Fastmatch152=20200317-04:56:09.73356=TRValueTrade2UAT155=EUR/USD60=20200317-04:56:09.73340=117=18612719103=9954=138=10000.0014=0151=10000.0015=EUR6=037=020=039=8150=811=VTR_00358=Invalid
Quantity10=176)

i got the response but it is not xml format like sample one from your
system.

so my question is how to convert my incoming message from fix transport
become soap message for response to backend ?

best regards,

Josua

i hope i can fix my problem this week