D
Dustin
All,
I have a windows service that passes a dataset to a webmethod. The
webmethod then puts the dataset into a private message queue. I
created the proxy for the webmethod in visual studio, by adding a
reference to the webmethod, not using wsdl.exe manually.
Initially I flushed out the code calling the synchronous version of the
generated proxy for the webmethod. This worked fine and I was able to
see the datasets transferred properly to the private queue via the
webmethod.
Subsequently I changed the implementation to use the asynchronous
version of the webmethod's proxy. Everything seemed to be working
fine, datasets were arriving in the private queue and callbacks firing
fine.
Today I implemented the queue drainer and found that there were no rows
in the datasets that I was pulling out of the private queue. After
awhile I traced it back to the fact that there were no rows in the
dataset received by the webmethod. It turns out that if I revert to
calling the synchronous version of the proxy, the dataset is properly
transferred (with rows) to the webmethod and subsequently to the
private queue.
I have attempted to regenerate the proxy and there is no change in
behavior.
This seems quite odd. Does anyone have reference indicating that a
difference exists between the serialization performed on datasets in
synchronous calls vs. asynchronous calls?
Thanks in advance,
Dustin
Newbrook Solutions
www.newbrooksolutions.com
I have a windows service that passes a dataset to a webmethod. The
webmethod then puts the dataset into a private message queue. I
created the proxy for the webmethod in visual studio, by adding a
reference to the webmethod, not using wsdl.exe manually.
Initially I flushed out the code calling the synchronous version of the
generated proxy for the webmethod. This worked fine and I was able to
see the datasets transferred properly to the private queue via the
webmethod.
Subsequently I changed the implementation to use the asynchronous
version of the webmethod's proxy. Everything seemed to be working
fine, datasets were arriving in the private queue and callbacks firing
fine.
Today I implemented the queue drainer and found that there were no rows
in the datasets that I was pulling out of the private queue. After
awhile I traced it back to the fact that there were no rows in the
dataset received by the webmethod. It turns out that if I revert to
calling the synchronous version of the proxy, the dataset is properly
transferred (with rows) to the webmethod and subsequently to the
private queue.
I have attempted to regenerate the proxy and there is no change in
behavior.
This seems quite odd. Does anyone have reference indicating that a
difference exists between the serialization performed on datasets in
synchronous calls vs. asynchronous calls?
Thanks in advance,
Dustin
Newbrook Solutions
www.newbrooksolutions.com