Z
Zürcher See
I have to write a program to pass data through a web service, Ill use two
strongly typed dataset enbedded in a library class, a "request" and an
"answer" dataset.
I've wrote the program and the web service and placed in the references the
library class, but when I tried to use the web method, I coudn't pass the
dataset of the library class. The web service has changed the reference to
the dataset and I have to reference the dataset of the web service!?! But
why if they are the same datasets? Why the web service has to change the
namespace of my library class?
Web service:
public class Test: System.Web.Services.WebService{
public Test(){}
[WebMethod]
public LibraryClass.Answer SetDataSet(LibraryClass.Request dsRequest)
{
LibraryClass.Answer dsAnswer=new LibreryClass.Answer();
....
return dsAnswer;
}
}
When I try in the program to use the web service method SetDataSet, it gives
me the following info:
"test" is the reference name of the web service
test.Test wsTest=new test.Test();
"test.Answer Test.SetDataSet(test.Request dsRequest)"
Why it changes the reference of LibraryClass to "test"?
strongly typed dataset enbedded in a library class, a "request" and an
"answer" dataset.
I've wrote the program and the web service and placed in the references the
library class, but when I tried to use the web method, I coudn't pass the
dataset of the library class. The web service has changed the reference to
the dataset and I have to reference the dataset of the web service!?! But
why if they are the same datasets? Why the web service has to change the
namespace of my library class?
Web service:
public class Test: System.Web.Services.WebService{
public Test(){}
[WebMethod]
public LibraryClass.Answer SetDataSet(LibraryClass.Request dsRequest)
{
LibraryClass.Answer dsAnswer=new LibreryClass.Answer();
....
return dsAnswer;
}
}
When I try in the program to use the web service method SetDataSet, it gives
me the following info:
"test" is the reference name of the web service
test.Test wsTest=new test.Test();
"test.Answer Test.SetDataSet(test.Request dsRequest)"
Why it changes the reference of LibraryClass to "test"?