R
Raed Sawalha
Dear :
I have a compilation error generated by this scenario:
i have :
1. class Libray
2. Web Service
3. Web Application
the web application uses the WebService and the Class Libaray
inside the webservice i have one web method with argument of my pre-defined
class library( Say MessageClass) type.
and the class library calling the webservice method , so I attached the
webservice to web application and class library , so the web method in web
service expect passing the class library object ( and here the problem
occured)
this is the steps;
class myClass // object from this class should be passed to a web service
{
.......
}
class MessageClass
{
public string GetName()
{
myClass clsObject = new myClass();
wsObject.PutInFile(clsObject);//this is my webservice, and
here a compiler raised an error
}
}
in myClass I did XML serialization with no avail same error message , what
should I do in order to pass an object of user defined class to a webservice
method.
Regards
I have a compilation error generated by this scenario:
i have :
1. class Libray
2. Web Service
3. Web Application
the web application uses the WebService and the Class Libaray
inside the webservice i have one web method with argument of my pre-defined
class library( Say MessageClass) type.
and the class library calling the webservice method , so I attached the
webservice to web application and class library , so the web method in web
service expect passing the class library object ( and here the problem
occured)
this is the steps;
class myClass // object from this class should be passed to a web service
{
.......
}
class MessageClass
{
public string GetName()
{
myClass clsObject = new myClass();
wsObject.PutInFile(clsObject);//this is my webservice, and
here a compiler raised an error
}
}
in myClass I did XML serialization with no avail same error message , what
should I do in order to pass an object of user defined class to a webservice
method.
Regards