{{Quickfixn}} Override TargetSubID in Quickfix logon header Fix 4.2

Mohammed Quwaider momo505 at msn.com
Mon Sep 10 11:00:59 PDT 2018


I tried

message1.SetField(new TargetSubID("WWWW"));

and

message1.Header.SetField(new TargetSubID ("WWWW "));

both didn’t work



But I will try to remove it from the session config file and try it the next working day hope it works, as upon successful logon they need me to send confirmation message with different TargetSubID also to enable ResetSeqNumFlag from false to true,



Hope I have more ideas until Wednesday.





Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10



________________________________
From: Quickfixn <quickfixn-bounces at lists.quickfixn.com> on behalf of quickfixn-request at lists.quickfixn.com <quickfixn-request at lists.quickfixn.com>
Sent: Monday, September 10, 2018 5:01:41 PM
To: quickfixn at lists.quickfixn.com
Subject: Quickfixn Digest, Vol 83, Issue 2

Send Quickfixn mailing list submissions to
        quickfixn at lists.quickfixn.com

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
or, via email, send a message with subject or body 'help' to
        quickfixn-request at lists.quickfixn.com

You can reach the person managing the list at
        quickfixn-owner at lists.quickfixn.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Quickfixn digest..."


Today's Topics:

   1.  Override TargetSubID in Quickfix logon header Fix 4.2
      (Mohammed Quwaider)
   2. Re:  Override TargetSubID in Quickfix logon header Fix 4.2
      (Peter van Lonkhuyzen)
   3. Re:  Override TargetSubID in Quickfix logon header Fix 4.2
      (Grant Birchmeier)


----------------------------------------------------------------------

Message: 1
Date: Mon, 10 Sep 2018 05:19:08 +0000
From: Mohammed Quwaider <momo505 at msn.com>
To: "quickfixn at lists.quickfixn.com" <quickfixn at lists.quickfixn.com>
Subject: {{Quickfixn}} Override TargetSubID in Quickfix logon header
        Fix 4.2
Message-ID:
        <SN2PR03MB225624FC427CABC226E3DAB1F5050 at SN2PR03MB2256.namprd03.prod.outlook.com>

Content-Type: text/plain; charset="us-ascii"


I want to change the TargetSubID and as the blow fix message it doesn't replace the tag 57 it add's new tag 57 which result in failure logon what it the best method to replace TargetSubID with out adding new tag

here is me code
public void FromAdmin(Message message, SessionID sessionID)
{
if ((message.ToString().IndexOf("35=A") > 0) && (message.ToString().IndexOf("141=Y") > 0))
           {
var message1 = new Message();
message1.Header.SetField(new MsgType("A"));
message1.Header.SetField(new SenderCompID("YYYY"));
message1.Header.SetField(new SenderSubID("XXXX"));
message1.Header.SetField(new TargetCompID("ZZZZ"));
message1.SetField(new TargetSubID("WWWW"));
message1.SetField(new ResetSeqNumFlag(true));
message1.SetField(new StringField(108, "20"));
message1.SetField(new StringField(98, "0"));
SendMessage(message1);
}
}
body of fix message
8=FIX.4.29=11735=A34=149=YYYY50=XXXX52=20180909-13:04:3056=ZZZZ57=AAAA95=896=Passsss141=N57=WWWW98=0108=20141=Y10=004
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20180910/12c9bc5d/attachment-0001.html>

------------------------------

Message: 2
Date: Mon, 10 Sep 2018 06:55:00 +0000
From: Peter van Lonkhuyzen <peter at nutcracker.co.za>
To: Mailing list for QuickFIX/n <quickfixn at lists.quickfixn.com>
Subject: Re: {{Quickfixn}} Override TargetSubID in Quickfix logon
        header Fix 4.2
Message-ID:
        <fee02e3239064841808fb66c62a1ced1 at NexusExchange.nutcracker.local>
Content-Type: text/plain; charset="windows-1252"

Isnt't targetsubid part of the header?

message1.Header.SetField(new TargetSubID("WWWW")); should do it


From: Quickfixn <quickfixn-bounces at lists.quickfixn.com> On Behalf Of Mohammed Quwaider
Sent: Monday, 10 September 2018 7:19 AM
To: quickfixn at lists.quickfixn.com
Subject: {{Quickfixn}} Override TargetSubID in Quickfix logon header Fix 4.2


I want to change the TargetSubID and as the blow fix message it doesn't replace the tag 57 it add's new tag 57 which result in failure logon what it the best method to replace TargetSubID with out adding new tag

here is me code
public void FromAdmin(Message message, SessionID sessionID)
{
if ((message.ToString().IndexOf("35=A") > 0) && (message.ToString().IndexOf("141=Y") > 0))
           {
var message1 = new Message();
message1.Header.SetField(new MsgType("A"));
message1.Header.SetField(new SenderCompID("YYYY"));
message1.Header.SetField(new SenderSubID("XXXX"));
message1.Header.SetField(new TargetCompID("ZZZZ"));
message1.SetField(new TargetSubID("WWWW"));
message1.SetField(new ResetSeqNumFlag(true));
message1.SetField(new StringField(108, "20"));
message1.SetField(new StringField(98, "0"));
SendMessage(message1);
}
}
body of fix message
8=FIX.4.29=11735=A34=149=YYYY50=XXXX52=20180909-13:04:3056=ZZZZ57=AAAA95=896=Passsss141=N57=WWWW98=0108=20141=Y10=004
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20180910/1b22048f/attachment-0001.html>

------------------------------

Message: 3
Date: Mon, 10 Sep 2018 09:01:17 -0500
From: Grant Birchmeier <gbirchmeier at connamara.com>
To: "Mailing list for QuickFIX/n" <quickfixn at lists.quickfixn.com>
Subject: Re: {{Quickfixn}} Override TargetSubID in Quickfix logon
        header Fix 4.2
Message-ID:
        <CAMq4opM-cTH+NH8YWq0VDsipEajh0LTWtFbv+5MY5kW3N1G7ig at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I think I had a similar problem some time back.

My solution was to leave the TargetSubID out of the session config (so that
QF wouldn't use it as part of the SessionID), but set it in FromAdmin when
appropriate, like you have, but also in FromApp if needed, depending on
your counterparty's expectation.

So, if you take TargetSubID out of your session config, the engine will
probably not overwrite your explicit value.

On Mon, Sep 10, 2018 at 12:19 AM, Mohammed Quwaider <momo505 at msn.com> wrote:

>
>
> I want to change the TargetSubID and as the blow fix message it doesn't
> replace the tag 57 it add's new tag 57 which result in failure logon what
> it the best method to replace TargetSubID with out adding new tag
>
>
>
> here is me code
>
> public void FromAdmin(Message message, SessionID sessionID)
>
> {
>
> if ((message.ToString().IndexOf("35=A") > 0) &&
> (message.ToString().IndexOf("141=Y") > 0))
>
>            {
>
> var message1 = new Message();
>
> message1.Header.SetField(new MsgType("A"));
>
> message1.Header.SetField(new SenderCompID("YYYY"));
>
> message1.Header.SetField(new SenderSubID("XXXX"));
>
> message1.Header.SetField(new TargetCompID("ZZZZ"));
>
> message1.SetField(new TargetSubID("WWWW"));
>
> message1.SetField(new ResetSeqNumFlag(true));
>
> message1.SetField(new StringField(108, "20"));
>
> message1.SetField(new StringField(98, "0"));
>
> SendMessage(message1);
>
> }
>
> }
>
> body of fix message
>
> 8=FIX.4.29=11735=A34=149=YYYY50=XXXX52=20180909-13:04:3056=ZZZZ*57=AAAA*
> 95=896=Passsss*141=N57=WWWW*98=0108=20*141=Y*10=004
>
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
>
>


--
Grant Birchmeier
*Connamara Systems, LLC*
*Made-To-Measure Trading Solutions.*
Exactly what you need. No more. No less.
http://connamara.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20180910/39e6289f/attachment.html>

------------------------------

Subject: Digest Footer

_______________________________________________
Quickfixn mailing list
Quickfixn at lists.quickfixn.com
http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com


------------------------------

End of Quickfixn Digest, Vol 83, Issue 2
****************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20180910/9296a1d8/attachment.htm>


More information about the Quickfixn mailing list