Dataset Transfered to webservice incorrectly RRS feed

  • Question

  • Hi,
           I am passing my simple dataset to my webservice which accepts dataset
    as an argument as follows.


       In my web service I receive the above dataset as mentioned below.

       Public void webmethod(dataset ds);

          Now my problem is when I trf dataset from client there are 5 records
    in a table of a dataset but when I put log tracing on webservice there are 0
    records in table of dataset. Can anyone tell what is wrong with it. Where
    shall I look for this problem.
          I am also looking for best practices for handling,transferring dataset
    between client and web services And also how to debug a web service.
         One more important thing I notice that when I create the component
    inside a web service locally and access it via remoting it works perfectly.
    But when I put the same code in a aweb service I received 0 records.

    Can anyone help me.

    Nilkanth Desai

    Monday, June 11, 2007 2:01 PM

All replies

  • I seem to recall somewhere that serializing a dataset doesn't necessarily serialize all row states.
    Tuesday, June 12, 2007 4:12 PM