client side dataset and dataset

J

Jon Vaughan

I have a client side dataset that is made up from a stored proc, I also have
a web service that returns a dataset from this stored proc. But when I call
the web service and try and store them in an instance of the client side
dataset , I get an invalid cast error.

example :

dim myclientds as new clientsidedataset
dim objwebservice as web.myservice

myclientds = objwebservice .getData

- causes an invalid cast, the dataset are indentical ,as they stem from the
same SP , the only difference is that datset / datatable name.

Any ideas ?
 
T

tomb

Jon said:
I have a client side dataset that is made up from a stored proc, I also have
a web service that returns a dataset from this stored proc. But when I call
the web service and try and store them in an instance of the client side
dataset , I get an invalid cast error.

example :

dim myclientds as new clientsidedataset
dim objwebservice as web.myservice

myclientds = objwebservice .getData

- causes an invalid cast, the dataset are indentical ,as they stem from the
same SP , the only difference is that datset / datatable name.

Any ideas ?
Try declaring the client dataset as just a dataset, then loop through
the columns to see what the data types are - most likely the transition
from the web service to the client is altering something in the structure.

T
 
J

Jon Vaughan

Tomb, checked the datatypes , they are all the same in both dataset and
client side dataset. any more ideas ?
 
J

Jon Vaughan

Th eonly different is the datset from the xsd has the table called Suppliers
, whereas the data side created from the webservice is called table , could
that be it ?
 

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