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. 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. owais
    Replies:
    0
    Views:
    513
    owais
    Dec 18, 2003
  2. Replies:
    0
    Views:
    384
  3. Rory Becker

    Webreference XYZ.datasource file

    Rory Becker, Dec 4, 2008, in forum: ASP .Net
    Replies:
    4
    Views:
    1,203
  4. 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:
    406
    Peter van der Veen
    Aug 20, 2003
  5. JK

    beginner: add webreference at runtime

    JK, Dec 17, 2003, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    128
    Jan Tielens
    Dec 17, 2003
Loading...

Share This Page