I
Iain
I have been trying to return a complex object structure to the client of a
Web Service.
I've sort of got it working, but ...
What I was wanting to do (probably because I still live in the Dinosaur age)
was to include the class definition in the client assembly and have the Web
Service load the results into this locally defined class. so the code might
look like
CommonClasses.ComplexClass myClass = null;
Proxy.GetStuff(ref myClass);
but of course this fails, because although the wsdl definition is exactly
the same as the original xsd and hence the generated class will look the
same, they are in different namespaces. The SOAP generated class is in the
Proxy namespace and the original is in CommonClasses.
Now, in this case I'm just transferring data so I can probably use the class
created by the Proxy which will be OK.
But suppose I wanted to transfer a class object with some intelligence?
such as processing methods of some kind (or even simply intelligent
indexers)? How could I do this? Is it possible?
ENglightenment for this dinosaur would be appreciated...
Iain
Web Service.
I've sort of got it working, but ...
What I was wanting to do (probably because I still live in the Dinosaur age)
was to include the class definition in the client assembly and have the Web
Service load the results into this locally defined class. so the code might
look like
CommonClasses.ComplexClass myClass = null;
Proxy.GetStuff(ref myClass);
but of course this fails, because although the wsdl definition is exactly
the same as the original xsd and hence the generated class will look the
same, they are in different namespaces. The SOAP generated class is in the
Proxy namespace and the original is in CommonClasses.
Now, in this case I'm just transferring data so I can probably use the class
created by the Proxy which will be OK.
But suppose I wanted to transfer a class object with some intelligence?
such as processing methods of some kind (or even simply intelligent
indexers)? How could I do this? Is it possible?
ENglightenment for this dinosaur would be appreciated...
Iain