Parameterized Constructor

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peter

    #1

    Parameterized Constructor

    Hi,

    When I update/add a new web reference to a web service class with a
    parameterized constructor, what is preventing the generated proxy from
    including a definition for the parameterized constructor as well as the
    parameterless one?

    Regards,

    Peter

  • Pablo Cibraro [MVP]

    #2
    Re: Parameterized Constructor

    Hi Peter,

    A web service does not expose the constructors to the client applications
    (Always, the default constructor is used). It only exposes methods (Web
    Methods), which receives a request message and returns a response according
    to that.

    Regards,
    Pablo Cibraro


    "Peter" <Peter@discussi ons.microsoft.c omwrote in message
    news:53726207-40BD-40D6-98BA-33A5F3A39C4C@mi crosoft.com...
    Hi,
    >
    When I update/add a new web reference to a web service class with a
    parameterized constructor, what is preventing the generated proxy from
    including a definition for the parameterized constructor as well as the
    parameterless one?
    >
    Regards,
    >
    Peter
    >

    Comment

    Working...