|
From: gore <gre...@qu...> - 2007-05-22 12:29:15
|
I construct my parties block for a NewOrderSingle the following way:
******** CODE ********
int partyIDcnt = 0; // counter for the NoPartyIDs tag, incremented for every
field added PartyID
NewOrderSingle.NoPartyIDs partiesBlock = new NewOrderSingle.NoPartyIDs(); //
the empty parties block
if (!partyID.equals(""))
{
partiesBlock.set(partyID);
partyIDcnt++;
}
if (!partyIDSource.toString().equals(""))
{
partiesBlock.set(partyIDSource);
partyIDcnt++;
}
if (!partyRole.toString().equals(""))
{
partiesBlock.set(partyRole);
partyIDcnt++;
}
newOrderSingle.addGroup(partiesBlock);
NoPartyIDs noPartyIDs = new NoPartyIDs(partyIDcnt);
newOrderSingle.set(noPartyIDs);
******** /CODE ********
I get a 'Message Rejected: Conditionally Required Field Missing' error from
my Acceptor. I don't see any field missing, as all fields in the parties
block are no compulsory fields. Any ideas or experience with creating the
parties block? Is there any code-source for the right implementation of a
parties block and the NoPartyIDs to a NewOrderSingle?
My if conditions are ok, as all of the three values are received by the
Acceptor in the message.
Thanks for any support!
--
View this message in context: http://www.nabble.com/Problems-in-using-the-NoPartyIDs-Block-tf3796035.html#a10736855
Sent from the QuickFIX/J mailing list archive at Nabble.com.
|