Dataset serialization issue

G

Guest

Hi,
I am passing my simple dataset to my webservice which accepts dataset
as an argument as follows.
myservice.webmethod(ds);
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
 
G

Guest

Dear Manish,
Thanks for your response. I tried the method you suggest in your
reply. But problem was when I try to generate a string of xml with the use of
dataset.writexml(string) It was in form of file. Somehow I did not find the
way to generate xml string from dataset. So I decided to proceed with the
direct trf of dataset to web service. If you can send me any class code
sample which converts a dataset to string and trf. it to webservice. I will
be thankful to you. One more que in this regards is in web service methof
which datatyoe I can use when I receive this xmlstring from client.

Thanks ,

Nilkanth Desai
 
G

Guest

Hi,
Also i have forgotten to tell in previous post that return data type from
web method should be string.
--
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top