I have a webservice that provides Phone Queue statistics for our helpdesk as a class called QueStats which contains various Integers and Strings and also List of another class called Agent. I have published the webservice and I can even consume the webservice fine and without a problem. My issues comes to the fact that I am trying to add some additional 'Get' properties to the class at the consuming side. These are properties that I don't want to provide in the webservice because they are "calculated" fields. I have tried a few different methods such as extending the proxy class that is created by visual studios web reference and I am having troubles casting to the derived class (which I wonder if it is even possible).
Another method that I am trying to do and this may be my answer if somebody here knows how to do this is to use an assembly and somehow figure out how to use the classes in the assembly and NOT use the proxy class that visual studio creates. I have tried to use the SvcUtil utility, but I think it has issues with .Net 2.0 assemblies or I may be doing it wrong. I have tried something like svcutil /r:MyAssembly.dll /et:Agent /et:Questats http://localhost/MyService/Queue
Any help that can be provided is greatly appreciated. Thank you.
Question
spartyjohnson
This is for .NET 2.0 and C#.
I have a webservice that provides Phone Queue statistics for our helpdesk as a class called QueStats which contains various Integers and Strings and also List of another class called Agent. I have published the webservice and I can even consume the webservice fine and without a problem. My issues comes to the fact that I am trying to add some additional 'Get' properties to the class at the consuming side. These are properties that I don't want to provide in the webservice because they are "calculated" fields. I have tried a few different methods such as extending the proxy class that is created by visual studios web reference and I am having troubles casting to the derived class (which I wonder if it is even possible).
Another method that I am trying to do and this may be my answer if somebody here knows how to do this is to use an assembly and somehow figure out how to use the classes in the assembly and NOT use the proxy class that visual studio creates. I have tried to use the SvcUtil utility, but I think it has issues with .Net 2.0 assemblies or I may be doing it wrong. I have tried something like svcutil /r:MyAssembly.dll /et:Agent /et:Questats http://localhost/MyService/Queue
Any help that can be provided is greatly appreciated. Thank you.
Edited by spartyjohnsonLink to comment
Share on other sites
1 answer to this question
Recommended Posts