P
pikachusalad
I am using Visual Studio 2005 Professional.
I have one web service (DataRequester) that would like to get a strongly
typed dataset from another web service (DataRetriever).
The strongly typed dataset (TheDataSet) comes from a class library
(TheLibrary), both web services have a reference to the TheLibrary.dll, and
can use the TheLibrary.TheDataSet just fine.
DataRetriever is able to fetch the data from the DB and put it into a nice
TheLibrary.TheDataSet, and then returns it from a WebMethod
(GetATheDataSet()), whose return type is TheLibrary.TheDataSet.
DataRequester has a Web Reference to DataRetriever, and has code like this:
WebReference.DataRetriever dataRetriever = new WebReference.DataRetriever();
TheLibrary.TheDataSet theDataSet = dataRetriever.GetATheDataSet();
I get the error, when trying to build:
Cannot implicitly convert type WebReference.TheDataSet to
TheLibrary.TheDataSet
Please, someone tell me there is a solution for this? The problem seems to
be that when I create the WebReference, I get a TheDataSet.xsd, and it
apparently doesn't understand that DataRetriever is returning a type that it
already knows about!
I have one web service (DataRequester) that would like to get a strongly
typed dataset from another web service (DataRetriever).
The strongly typed dataset (TheDataSet) comes from a class library
(TheLibrary), both web services have a reference to the TheLibrary.dll, and
can use the TheLibrary.TheDataSet just fine.
DataRetriever is able to fetch the data from the DB and put it into a nice
TheLibrary.TheDataSet, and then returns it from a WebMethod
(GetATheDataSet()), whose return type is TheLibrary.TheDataSet.
DataRequester has a Web Reference to DataRetriever, and has code like this:
WebReference.DataRetriever dataRetriever = new WebReference.DataRetriever();
TheLibrary.TheDataSet theDataSet = dataRetriever.GetATheDataSet();
I get the error, when trying to build:
Cannot implicitly convert type WebReference.TheDataSet to
TheLibrary.TheDataSet
Please, someone tell me there is a solution for this? The problem seems to
be that when I create the WebReference, I get a TheDataSet.xsd, and it
apparently doesn't understand that DataRetriever is returning a type that it
already knows about!