Hello Fabiano!
In my experience, there are no problems using DataSets as Parameter or
ReturnValue of a WebMethod, because there is some kind of 'extra-support'
within the Framework.
Also with simple classes (string, integer, ...) there should be no problem.
What I've experienced is, that it is very complicated to use own classes as
Parameters, because then you have to implement the serialisation to xml for
these classes.
What worked for me was to define 'ParameterClasses' (within a separate
project) that have at least two methods (that can call the same methods of
their members):
1) toXml() as System.Xml.XmlElement
2) ReadXml(pXml As System.Xml.XmlElement)
The WebService then takes XmlElements as Paramters. The workflow is like
1) Client: xmlParam = objParam.toXml
2) Client: xmlResult = WebService.ReturnSomething(xmlParam)
-----
3) Server: objParam = objParam.ReadXml(xmlParam)
....
4) Server: return = objResult.toXml
-----
5) Client: objResult = xmlResult.ReadXml(xmlResult)
I had no luck to define Serialisation the 'default-.NET-way" but the given
solution works good for me.
Good luck,
D.Barisch