How to include type in webreference?

Discussion in 'ASP .Net Web Services' started by Aaron, Nov 15, 2005.

  1. Aaron

    Aaron Guest

    I am having trouble including a reference to an object of mine thru my web
    service on the client.
    I have tried including a: [WebMethod, SoapInclude(typeof(MyObject))]
    reference, but this doesn't seem to catch.

    Now if I create a bogus webmethod with a return object of MyObject the
    object definition gets created just fine.
    Without manually creating a definition of the object in the reference itself
    how can I let it know to create a definition for this object?
     
    Aaron, Nov 15, 2005
    #1
    1. Advertisements

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. owais
    Replies:
    0
    Views:
    616
    owais
    Dec 18, 2003
  2. Replies:
    0
    Views:
    494
  3. Andreas Bogenberger
    Replies:
    3
    Views:
    1,281
    Andreas Bogenberger
    Feb 22, 2008
  4. Rory Becker

    Webreference XYZ.datasource file

    Rory Becker, Dec 4, 2008, in forum: ASP .Net
    Replies:
    4
    Views:
    1,559
  5. Peter van der Veen

    how to use ssl certificates with a wsdl webreference?

    Peter van der Veen, Aug 20, 2003, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    542
    Peter van der Veen
    Aug 20, 2003
  6. JK

    beginner: add webreference at runtime

    JK, Dec 17, 2003, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    265
    Jan Tielens
    Dec 17, 2003
  7. Shaun Wilson

    VSDISCO/WebReference Woes

    Shaun Wilson, Jun 13, 2005, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    224
    Shaun Wilson
    Jun 13, 2005
  8. Will Gillen

    Consuming External WSD (WebReference), Missing a few types

    Will Gillen, May 7, 2008, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    248
    Will Gillen
    May 7, 2008
Loading...