TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Makinde
NA
1
0
Asynchronous Webservice calls doesn't maintain unique state.
Aug 25 2009 12:21 AM
Hi everyone, i really hope i can get a solution here because i am stumped. I am making async calls to a java web service that accepts an array or strings (address records), adds its coordinates and returns the results. So for example, i can only send 5 records at a time; i query a sql table of like 53 records, build the request and send asynchronously using the concatenated record id's as the unique userstate. The responses obviously don't comeback in the same order they were sent and that's the reason for the unique userstate. However, when i get the responses back, they aren't matching up with the unique userstate that was used to send them. Is there something i am doing wrong here? To explain further.. my original table looks something like this.. recordNo, Street, City, Zip 1, 32 A st, Oakland, 94603 2, 65 BA st, Oakland, 94633 3, 547 K st, Oakland, 94663 4, 32 F st, Oakland, 94603 5, 73 H st, Oakland, 94673 6, 893 A st, Oakland, 94575 7, 424 K st, Oakland, 94731 8, 32 S st, Oakland, 94534 9, 790 Q st, Oakland, 94603 10, 32 B st, Oakland, 94603 11, 4324 W st, Oakland, 94603 12, 324 K st, Oakland, 94603 13, 246 Z st, Oakland, 94603 The request will be something like this. coordinateserviceAsync(5Addresses, "1,2,3,4,5") coordinateserviceCompleted(object sender, coordinateserviceCompletedEventArgs e) For the most part i will get the 3rd batch sent before the second so i will expect to have e.userstate be "11,12,13" but that's not the case, it will take on either the 2nd or 1st batches id's
Reply
Answers (
0
)
Windows Service not pausing print jobs
Service undefined error using Ajax while attepting to access Bing 2.0 API