Returning user-defined objects from a web method

Discussion in 'ASP .Net Web Services' started by Rafael Corchuelo, Mar 6, 2004.

  1. Hello! I've created a web service that contains the following method:

    [WebMethod]
    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,

    RC
     
    Rafael Corchuelo, Mar 6, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Oodini
    Replies:
    1
    Views:
    1,779
    Keith Thompson
    Sep 27, 2005
  2. 7stud
    Replies:
    11
    Views:
    700
    Dennis Lee Bieber
    Mar 20, 2007
  3. Joaquin Abian
    Replies:
    3
    Views:
    355
    Joaquin Abian
    Mar 20, 2010
  4. aidy
    Replies:
    5
    Views:
    237
    Marcin Mielżyński
    Jun 4, 2006
  5. Kain Nobel
    Replies:
    2
    Views:
    97
    Siep Korteling
    Sep 23, 2008
Loading...

Share This Page