Hate to ask you this.
I am trying to extract out the message Type value in the header to check if
I am receiving a execution report.
The following seems to fail on compiling. I did this by looking at the java
example.
Which goes like :
public void run() {
try {
MsgType msgType = new MsgType();
if(message.getHeader().getField(msgType).valueEquals("8"))
executionReport(message, sessionID);
if(message.getHeader().getField(msgType).valueEquals("9"))
cancelReject(message, sessionID);
} catch(FieldNotFound e) {
System.out.println(e);
}
}
- I am trying to do this in C sharp.
I have
public void fromApp(Message message,SessionID sessionID)
{
MsgType msgType = new MsgType();
If(Message.getHeader().getField(msgType) ==
MsgType.EXECUTION_REPORT) {
}
}
Should not this work.
Tks
|