Glen:
I have run some tests on the news story retrieval and here are the results. First I request the same story several times to illustrate that all is well and working. In this case I did it 15 times in a row - I only show the first and last request for brevity in the log below.
Then I requested the story that illustrates the "NONE" issue. The response is ..NONE.. for the first try and then comes back ok (full story) on the next. On the third try it comes back NONE again. Then I did a request for the first story that I got back OK for 15 requests in a row.
Now I get ..NONE.. for the first try, No data available for the second, and then the story on the third request.
I have enclosed the string I send to request the story in
>> request<< so you can see what I am sending each time. My news retrieval is run in a separate thread and is not suspended or terminated at the end of response. Any additional data would show. The log is from the output of the tcp/ip port with time marks that I add.
18:30 News Request: >>NN:6516425:RTB:20040101;<<18:30 0
18:30 <?xml version='1.0'?>
18:30 <news_stories>
18:30 <news_story>
18:30 <is_link>N</is_link>
18:30 <story_text>
18:30 (RealTimeTraders.com) - Siebel Systems announces its market entry strategy for
18:30 Russia and the Commonwealth of Independent States, opens own office in Moscow
18:30
18:30 Copyright(c) 2004 RealTimeTraders.com, Inc. All Rights Reserved</story_text>
18:30 <symbols>:SEBL:</symbols>
18:30 </news_story>
18:30 </news_stories>
18:30 !ENDMSG!
.
15 more reqests for the same story were done... all returned ok - I show the first and last results
.
18:31 News Request: >>NN:6516425:RTB:20040101;<<
18:31 0
18:31 <?xml version='1.0'?>
18:31 <news_stories>
18:31 <news_story>
18:31 <is_link>N</is_link>
18:31 <story_text>
18:31 (RealTimeTraders.com) - Siebel Systems announces its market entry strategy for
18:31 Russia and the Commonwealth of Independent States, opens own office in Moscow
18:31
18:31 Copyright(c) 2004 RealTimeTraders.com, Inc. All Rights Reserved</story_text>
18:31 <symbols>:SEBL:</symbols>
18:31 </news_story>
18:31 </news_stories>
18:31 !ENDMSG!
Now I request the story that gives the NONE result and get:
18:31 News Request: >>NN:6422938:CPR:20040101;<<
18:31 ..NONE..
18:31 !ENDMSG!
Then I request the same story again and actuall get it! ( I am leaving out the center section of the story)
18:31 News Request: >>NN:6422938:CPR:20040101;<<
18:31 0
18:31 <?xml version='1.0'?>
18:31 <news_stories>
18:31 <news_story>
18:31 <is_link>N</is_link>
18:31 <story_text>
18:31 TO BUSINESS, MEDICAL AND HEALTH EDITORS:
18:31 Management to Host a Conference Call Today At 5:00 PM Eastern Standard Time
18:31 <symbols>:STXS:</symbols>
. . . . snip out centter
18:31 </news_story>
18:31 </news_stories>
18:31 !ENDMSG!
Then I request it again and get the NONE again:
18:31 News Request: >>NN:6422938:CPR:20040101;<<
18:32 ..NONE..
18:32 !ENDMSG!
Then I request it again and it comes back! (I snip out the story for shortness)
18:32 News Request: >>NN:6422938:CPR:20040101;<<
18:32 0
18:32 <?xml version='1.0'?>
18:32 <news_stories>
- - -
18:32 </news_stories>
18:32 !ENDMSG!
Now I rereques it again and get NONE
18:32 News Request: >>NN:6422938:CPR:20040101;<<
18:32 ..NONE..
18:32 !ENDMSG!
Then I try the first news story that I got 15 times in a row without any problems (shown in the firt part of this post)
18:33 News Request: >>NN:6516425:RTB:20040101;<<
18:33 ..NONE..
18:33 !ENDMSG!
Hmmm... says NONE now
Now I retry and get "No data found"
18:33 News Request: >>NN:6516425:RTB:20040101;<<
18:33 No data was found.
18:33 !ENDMSG!
then I try it again, and the story comes back
18:33 News Request: >>NN:6516425:RTB:20040101;<<
18:33 0
18:33 <?xml version='1.0'?>
18:33 <news_stories>
18:33 <news_story>
18:33 <is_link>N</is_link>
18:33 <story_text>
18:33 (RealTimeTraders.com) - Siebel Systems announces its market entry strategy for
18:33 Russia and the Commonwealth of Independent States, opens own office in Moscow
18:33
18:33 Copyright(c) 2004 RealTimeTraders.com, Inc. All Rights Reserved</story_text>
18:33 <symbols>:SEBL:</symbols>
18:33 </news_story>
18:33 </news_stories>
18:33 !ENDMSG!
18:33 Closing ::IQXP:: , 12/01/04, 18:33:47
There is something wrong in River City... I also do not understand the "0" (zero) that appears at the top start of each response except
for those with NONE in the response. Also, the 'No data found ' was unexpected and I have now added it to my response parsing. Any other messages like this I need to know about?
Thanks!
David
IQXP Software
http://www.iqxp.com
LiveWire Update Service
PO Box 1417
Fairfield, IA 52556
641-472-8393
http://www.livewire-cablesoft.com/