Repeating Groups - fromString

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Repeating Groups - fromString

Matthew Oatham
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



Hi
Trying to create Message from String, message is AE which contains repeating groups, QF drops these groups on fromString 

        String rawMessage = "8=FIXT.1.1|9=00317|35=AE|34=00171|52=20161017-06:15:00.333|49=test|56=tester|1041=<a href="tel:305159666541819803-968990277" original_font_attr="-1" original_line_height_attr="" style="font-size: 11.211pt; ">305159666541819803-968990277|487=0|856=0|1123=1|828=30|829=1000|60=20161014-17:21:56.000|32=1788|31=<a href="tel:4.547685" original_font_attr="-1" original_line_height_attr="" style="font-size: 11.211pt; ">4.547685|64=<a href="tel:20161018" original_font_attr="-1" original_line_height_attr="" style="font-size: 11.211pt; ">20161018|48=1234|22=8|552=2|54=2|528=P|453=2|448=xxx|447=D|452=76|448=xxx|447=D|452=1|581=3|54=1|453=1|448=yyy|447=D|452=17|10=214|";

        DataDictionary dd = new DataDictionary("FIXT11.xml");

                                Message quickFixMessage = new Message();

        quickFixMessage.fromString(rawMessage, dd, false);


Has this been raised before?
Thanks

Sent from my Samsung Galaxy smartphone.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Repeating Groups - fromString

Christoph John
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


Hi,

FIXT is the session dictionary, i.e. only for messages like Logon, Heartbeat, etc. You need to use
the application data dictionary, or both session and application DD. The session DD alone is not enough.

Cheers,
Chris.



On 24/10/16 13:43, matthewoatham wrote:

> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
>
>
> Hi
> Trying to create Message from String, message is AE which contains repeating groups, QF drops
> these groups on fromString
>
>     String rawMessage =
> "8=FIXT.1.1|9=00317|35=AE|34=00171|52=20161017-06:15:00.333|49=test|56=tester|1041=305159666541819803-968990277
> <tel:305159666541819803-968990277>|487=0|856=0|1123=1|828=30|829=1000|60=20161014-17:21:56.000|32=1788|31=4.547685
> <tel:4.547685>|64=20161018
> <tel:20161018>|48=1234|22=8|552=2|54=2|528=P|453=2|448=xxx|447=D|452=76|448=xxx|447=D|452=1|581=3|54=1|453=1|448=yyy|447=D|452=17|10=214|";
>
> DataDictionary dd = new DataDictionary("FIXT11.xml");
>
> Message quickFixMessage = new Message();
>
> quickFixMessage.fromString(rawMessage, dd, false);
>
>
> Has this been raised before?
> Thanks
>
> Sent from my Samsung Galaxy smartphone.
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>
>
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:[hidden email]
       


http://www.macd.com <http://www.macd.com/>
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------
MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
         Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------

take care of the environment - print only if necessary

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Repeating Groups - fromString

Matthew Oatham
In reply to this post by Matthew Oatham
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



Thanks, was testing with different dictionary, same result with fix5sp2.

I found the issue, tags in wrong positron in repeating group.

If i want to import these 'custom' messages fromString will I need to build custom dictionary? Does this require a build from source

Thanks



Sent from my Samsung Galaxy smartphone.
-------- Original message --------
From: Christoph John <[hidden email]>
Date: 24/10/2016 12:57 (GMT+00:00)
Subject: Re: [Quickfixj-users] Repeating Groups - fromString

QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


Hi,

FIXT is the session dictionary, i.e. only for messages like Logon, Heartbeat, etc. You need to use
the application data dictionary, or both session and application DD. The session DD alone is not enough.

Cheers,
Chris.



On 24/10/16 13:43, matthewoatham wrote:

> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
>
>
> Hi
> Trying to create Message from String, message is AE which contains repeating groups, QF drops
> these groups on fromString
>
>     String rawMessage =
> "8=FIXT.1.1|9=00317|35=AE|34=00171|52=20161017-06:15:00.333|49=test|56=tester|1041=305159666541819803-968990277
> <tel:305159666541819803-968990277>|487=0|856=0|1123=1|828=30|829=1000|60=20161014-17:21:56.000|32=1788|31=4.547685
> <tel:4.547685>|64=20161018
> <tel:20161018>|48=1234|22=8|552=2|54=2|528=P|453=2|448=xxx|447=D|452=76|448=xxx|447=D|452=1|581=3|54=1|453=1|448=yyy|447=D|452=17|10=214|";
>
> DataDictionary dd = new DataDictionary("FIXT11.xml");
>
> Message quickFixMessage = new Message();
>
> quickFixMessage.fromString(rawMessage, dd, false);
>
>
> Has this been raised before?
> Thanks
>
> Sent from my Samsung Galaxy smartphone.
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>
>
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:[hidden email]



http://www.macd.com <http://www.macd.com/>
----------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------
MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald
----------------------------------------------------------------------------------------------------

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

take care of the environment - print only if necessary

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Repeating Groups - fromString

Christoph John
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



Hi,

IIRC you need to define the custom tags in your data dictionary to parse the messages fromString, especially when using repeating groups. But cannot say for sure from the top of my head. Maybe you should just give it a go and see how far you get.
You could play around a little with the parameters of the data dictionary (validate fields, user defined fields, etc.), too.

Chris.


On 24/10/16 14:05, matthewoatham wrote:
Thanks, was testing with different dictionary, same result with fix5sp2.

I found the issue, tags in wrong positron in repeating group.

If i want to import these 'custom' messages fromString will I need to build custom dictionary? Does this require a build from source

Thanks



Sent from my Samsung Galaxy smartphone.
-------- Original message --------
From: Christoph John [hidden email]
Date: 24/10/2016 12:57 (GMT+00:00)
Subject: Re: [Quickfixj-users] Repeating Groups - fromString

QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


Hi,

FIXT is the session dictionary, i.e. only for messages like Logon, Heartbeat, etc. You need to use
the application data dictionary, or both session and application DD. The session DD alone is not enough.

Cheers,
Chris.



On 24/10/16 13:43, matthewoatham wrote:
> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
>
>
> Hi
> Trying to create Message from String, message is AE which contains repeating groups, QF drops
> these groups on fromString
>
>     String rawMessage =
> "8=FIXT.1.1|9=00317|35=AE|34=00171|52=20161017-06:15:00.333|49=test|56=tester|1041=305159666541819803-968990277
> <tel:305159666541819803-968990277>|487=0|856=0|1123=1|828=30|829=1000|60=20161014-17:21:56.000|32=1788|31=4.547685
> <tel:4.547685>|64=20161018
> <tel:20161018>|48=1234|22=8|552=2|54=2|528=P|453=2|448=xxx|447=D|452=76|448=xxx|447=D|452=1|581=3|54=1|453=1|448=yyy|447=D|452=17|10=214|";
>
> DataDictionary dd = new DataDictionary("FIXT11.xml");
>
> Message quickFixMessage = new Message();
>
> quickFixMessage.fromString(rawMessage, dd, false);
>
>
> Has this been raised before?
> Thanks
>
> Sent from my Samsung Galaxy smartphone.
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>
>
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:Christoph.John@...



http://www.macd.com <http://www.macd.com/>
----------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------
MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald
----------------------------------------------------------------------------------------------------

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

take care of the environment - print only if necessary

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:Christoph.John@...



http://www.macd.com


MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
 Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald


take care of the environment - print only if necessary

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Repeating Groups - fromString

Matthew Oatham
In reply to this post by Matthew Oatham
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



I added my tag to a copy of the xml and called datadictionary constructor taking in new xml file location and it worked! No need to rebuild quickfix in this case.
Thanks for the help 



Sent from my Samsung Galaxy smartphone.
-------- Original message --------
From: Christoph John <[hidden email]>
Date: 24/10/2016 13:30 (GMT+00:00)
To: matthewoatham <[hidden email]>, [hidden email]
Subject: Re: [Quickfixj-users] Repeating Groups - fromString

Hi,

IIRC you need to define the custom tags in your data dictionary to parse the messages fromString, especially when using repeating groups. But cannot say for sure from the top of my head. Maybe you should just give it a go and see how far you get.
You could play around a little with the parameters of the data dictionary (validate fields, user defined fields, etc.)
, too.

Chris.


On 24/10/16 14:05, matthewoatham wrote:
Thanks, was testing with different dictionary, same result with fix5sp2.

I found the issue, tags in wrong positron in repeating group.

If i want to import these 'custom' messages fromString will I need to build custom dictionary? Does this require a build from source

Thanks



Sent from my Samsung Galaxy smartphone.
-------- Original message --------
From: Christoph John [hidden email]
Date: 24/10/2016 12:57 (GMT+00:00)
Subject: Re: [Quickfixj-users] Repeating Groups - fromString

QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


Hi,

FIXT is the session dictionary, i.e. only for messages like Logon, Heartbeat, etc. You need to use
the application data dictionary, or both session and application DD. The session DD alone is not enough.

Cheers,
Chris.



On 24/10/16 13:43, matthewoatham wrote:
> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
>
>
> Hi
> Trying to create Message from String, message is AE which contains repeating groups, QF drops
> these groups on fromString
>
>     String rawMessage =
> "8=FIXT.1.1|9=00317|35=AE|34=00171|52=20161017-06:15:00.333|49=test|56=tester|1041=305159666541819803-968990277
> <tel:305159666541819803-968990277>|487=0|856=0|1123=1|828=30|829=1000|60=20161014-17:21:56.000|32=1788|31=4.547685
> <tel:4.547685>|64=20161018
> <tel:20161018>|48=1234|22=8|552=2|54=2|528=P|453=2|448=xxx|447=D|452=76|448=xxx|447=D|452=1|581=3|54=1|453=1|448=yyy|447=D|452=17|10=214|";
>
> DataDictionary dd = new DataDictionary("FIXT11.xml");
>
> Message quickFixMessage = new Message();
>
> quickFixMessage.fromString(rawMessage, dd, false);
>
>
> Has this been raised before?
> Thanks
>
> Sent from my Samsung Galaxy smartphone.
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>
>
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:Christoph.John@...



http://www.macd.com <http://www.macd.com/>
----------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------
MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald
----------------------------------------------------------------------------------------------------

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

take care of the environment - print only if necessary

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:Christoph.John@...



http://www.macd.com


MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
 Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald


take care of the environment - print only if necessary

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Loading...