Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Returning user-defined objects from a web method

Thread Tools

Returning user-defined objects from a web method

Rafael Corchuelo
Posts: n/a
Hello! I've created a web service that contains the following method:

public Foo Bar() {...}

Foo is a class that models simple objects with a few simple methods. The
problem is that every time I create a proxy to this web service using
"References/Add web reference", a new Foo class is created (and it contains
public fields and properties only).

Can I tell VS to download the original Foo class to the client instead of
creating a new class?

Thanks in advance,


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Method Returning XmlDocument/IXPathNavigable and FxCop JimLad ASP .Net 2 01-16-2009 11:44 AM
class objects, method objects, function objects 7stud Python 11 03-20-2007 06:05 PM
returning none when it should be returning a list? Python 11 05-02-2006 10:26 AM
returning (predefined) class objects in Web Services and Dinosaur Brain ... Iain ASP .Net Web Services 9 07-15-2004 04:11 AM
JRuby: How does one keep Java objects as Java objects so they can be used in method calls? Steve Drach Ruby 3 06-19-2004 11:25 PM