473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Web service constructor

Hi,

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

public class WS : System.Web.Services.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.
Nov 23 '05 #1
1 4925
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]
ja******@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:AD**********************************@microsof t.com...
Hi,

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

public class WS : System.Web.Services.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.

Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jonathan G. | last post by:
I'm writing my first windows service. I have a class called 'mainprocess' whose constructor is called by the service class. Within mainprocess, I declare an instance of another class I wrote,...
4
by: hazz | last post by:
given namespace WindowsService1 { public class Service1 : System.ServiceProcess.ServiceBase......... private void timer1_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { ArrayList...
6
by: Tim Werth | last post by:
I posted this to microsoft.public.dotnet.general then I saw posts about services on this newsgroup. So, sorry for the independent cross-posting. This might not be the best place to post this,...
0
by: blekros | last post by:
All, I have a web service client written in VB.NET. It is a class library assembly (.dll file). I made a web reference to a web service and set it to be dynamic, so it puts the URL of the...
2
by: Ankit Aneja | last post by:
I am making windows service using Microsoft visual studio.Net in C# service name is clamservice problem is that when i start the service it through control pannel->Administrative tools->services...
0
by: Sathyaish | last post by:
I've written a Web Service that has main service class. Let's call the main class that exposes the service interface as Service1. So, we have: public class Service1:...
0
by: imonline | last post by:
Hi, I am getting very strange problem. Let me explain you. I have class library,web service and window application. Web service is interface between class library and window application....
0
by: TonyJ | last post by:
Hello I'm rather new to this with windows service. I want to get a better understanding because I must use it if I don't want to use a console application- I have three important methods below....
1
by: ERobishaw | last post by:
A windows service I've created runs on all boxes except Windows 2000 server. The windows service initializes (i.e., the Service:ServieBase class gets constructed), but the OnStart() method...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.