Web service constructor

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

    Web service constructor

    Hi,

    Can I have parameterful web service constructor ? I.e.

    public class WS : System.Web.Serv ices.WebService {
    public WS(int A) {...}
    ...
    }

    Becuase I made it in Visual Studion .NET 2003, it is O.K. but when I want to
    update Web service for client from Visual Studion , Visual Studio makes
    parameterless definition for client.

    Much thanks.
  • Jared Parsons [MSFT]

    #2
    Re: Web service constructor

    You can have a parameterized constructor on your web service but there will
    be no way to call this from your proxy. Instead, it will use the default
    constructor.

    --
    Jared Parsons [MSFT]
    jaredpar@online .microsoft.com
    "This posting is provided "AS IS" with no warranties, and confers no rights"
    "B.J." <BJ@discussions .microsoft.com> wrote in message
    news:AD37D757-CA5B-4B2C-BB09-03610EED8D42@mi crosoft.com...[color=blue]
    > Hi,
    >
    > Can I have parameterful web service constructor ? I.e.
    >
    > public class WS : System.Web.Serv ices.WebService {
    > public WS(int A) {...}
    > ...
    > }
    >
    > Becuase I made it in Visual Studion .NET 2003, it is O.K. but when I want[/color]
    to[color=blue]
    > update Web service for client from Visual Studion , Visual Studio makes
    > parameterless definition for client.
    >
    > Much thanks.[/color]


    Comment

    Working...