Hi Oren,
=20
Sorry for the personal post
I use QF 1.7.1 with Microsoft.NET 1.1/Windows 2003/VS.NET 2003
=20
And why I get getField error
=20
TIA,
Ramprakash
=20
-----Original Message-----
From: Oren Miller [mailto:or...@qu...]=20
Sent: luned=EC 7 giugno 2004 16:13
To: Ramprakash Umapathy
Subject: Re: How to make a TestRequest and get Response
This is essentially the way you would do it, but can you double check =
the
version you are using? There is no 1.3.6
On Jun 7, 2004, at 8:43 AM, Ramprakash Umapathy wrote:
Hi,
=20
I'm trying to make a Test Request in test code and try to collect the
response. The code is in VB.NET with QuickFix 1.3.6
=20
Please correct me if I'm anything wrong with this approach
=20
I write a method in my QuickFix.Application implementation class like =
this,
=20
Public Sub GenerateTestRequest()
Try
Dim QFTest As New QuickFix42.TestRequest(New =
QuickFix.TestReqID("TEST
MESSAGE"))
Session.sendToTarget(QFTest, "umapar1a", "s09183")
Catch ex As System.Exception
Throw (ex)
End Try
End Sub=20
And then collect the Response from the Server like this in FromAdmin of
QuickFix.Application implementation class
Public Sub fromAdmin(ByVal QFmessage As QuickFix.Message, ByVal =
QFSession As
QuickFix.SessionID) Implements QuickFix.Application.fromAdmin
If (QFmessage.getHeader.getField(35) =3D "0") Then
If QFmessage.isSetField(112) Then
If QFMessage.getField(112) =3D "TEST MESSAGE") Then
MsgBox "TEST Request Succeeded"
=20
End If
End If
End If
End Sub=20
Now my Questions are,
1) Is this approach is right or is there any other better way of doing =
it.
2) Why I get QFMessage.getField(112) get a compilation error?
(Error is 'getField' has a return type that is not supported or =
parameter
types that are not supported.)
Thanks in Advance,
Ramprakash
=20
=20
|