passing interface through webservice

Discussion in 'ASP .Net Web Services' started by Vladimir Pavlik, Feb 18, 2004.

  1. hi there ...
    is there possibility to pass interaface object through webservice?

    example

    class myWebService : WebService {
    public myWebService() {
    }

    [WebMethod]
    public Customer GetCustomer() {
    return new Customer();
    }
    }

    class Customer : ICustomer {

    }

    public interface ICustomer {

    }

    i such a example i've got this answer:
    Cannot serialize member myWebService.Objects.Customer of type ICustomer
    because it is an interface.

    thanks.
    Vladimir Pavlik, Feb 18, 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. Wildepiet
    Replies:
    0
    Views:
    1,849
    Wildepiet
    Jun 14, 2004
  2. cyberco
    Replies:
    8
    Views:
    480
    cyberco
    Feb 25, 2006
  3. Xah Lee
    Replies:
    15
    Views:
    572
    Sherm Pendley
    Mar 23, 2007
  4. Xah Lee
    Replies:
    15
    Views:
    620
    Sherm Pendley
    Mar 23, 2007
  5. Ray Stevens

    Passing a large PDF file through a webservice

    Ray Stevens, Oct 24, 2005, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    123
    CESAR DE LA TORRE [MVP]
    Oct 25, 2005
Loading...

Share This Page