• 0

ASP.NET Webservice Types


Question

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 spartyjohnson
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

FYI to any that view this thread later. I used SvcUtil.exe to generate a proxy and then I used the partial class ability of .net 2.0 to "extend" the class and generate my "calculated" properties. Works pretty well because I can generate a new proxy and it won't modify my partial classes.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.