473,473 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Service parameters

I have ready service, that have only a code in OnStart().
Service is working ok.
I have 2 VBScripts which must communicate with service.
How make a communication service-script?

Steps needed (example):
1) script send to service command "start checking system"
2) service run function (build-in) and sending result to script.
3) if system is ok script is going to next step (otherwise scipt is
terminated)
4) script send to service command "check hotfixes"
5) service run function (build-in) and sending result to script.
6) if hotfixes are ok script is going to next step (otherwise scipt is
terminated)
10)..........
11)....
But i need to add a parameters. Script will choose which function want to
start from service and get recieve from him.
Anyone knows how to make this communication?
Nov 20 '05 #1
1 1177
Hi,

Your service could expose part of its functionality through COM interop.
While I've heard it is usually not recommended to use COM in services, you
still can use it. One more note would be that the OnStart method is not the
right place. The service should start as quick as possible and then receive
requests through some channel (be it COM, named pipes, shared memory etc.),
process the requests and return results through the same or other channel.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Legrooch" <Le******@poczta.onet.pl> wrote in message
news:OH**************@TK2MSFTNGP09.phx.gbl...
I have ready service, that have only a code in OnStart().
Service is working ok.
I have 2 VBScripts which must communicate with service.
How make a communication service-script?

Steps needed (example):
1) script send to service command "start checking system"
2) service run function (build-in) and sending result to script.
3) if system is ok script is going to next step (otherwise scipt is
terminated)
4) script send to service command "check hotfixes"
5) service run function (build-in) and sending result to script.
6) if hotfixes are ok script is going to next step (otherwise scipt is
terminated)
10)..........
11)....
But i need to add a parameters. Script will choose which function want to
start from service and get recieve from him.
Anyone knows how to make this communication?


Nov 20 '05 #2

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

Similar topics

2
by: Shazad | last post by:
I am creating a windows service that requires parameters to start. The service Startup Type is set to automatic therefore it starts when the computer is started or rebooted. However the service...
5
by: vinoth | last post by:
Hi, I have created WindowsService Project.In that Project OnStart Method i have written the following Code. In this code the Server is waiting for the connection from client. When the Client...
5
by: Brian Patrick | last post by:
I have an application model which will consist of a front-end configuration application, which needs to control the state of a back-end vb.net windows service (which is the component that does all...
0
by: leslie_tighe | last post by:
Hello, I have a set of web services running on Java server that are exposed through axis 1.2.1. I can invoke these services in browser and through a java test client. However, when I try to...
4
by: leslie_tighe | last post by:
Hello, I have a webservice running on a J2EE server created with Axis 1.2.. I have a client that I am building in .net that needs to consume this webserivce and am having a bit of trouble. I have...
2
by: Tim Reynolds | last post by:
Team, We need some guidance here. We are developing a web service to expose to external system. We are not sure which is the best path to take. We have multiple input fields required and a few...
2
by: BluNuit | last post by:
I have a simple c# app that calls a Java (AXIS) web service to perform some operations. The call works fine (the java code fires and the operations are executed), but the response is always null. ...
0
by: oolon | last post by:
Hy, I have to build a report. this report has to be call by a web service. My method to call this report is : public void Amende( string dossierId ) { ReportingService...
3
by: =?Utf-8?B?UGllcnJl?= | last post by:
Hello, I have a .NET 2.0 web service that is consumed by a Delphi application. The Delphi application calls a method from the .NET web service with parameters. Theses parameters are in the...
0
by: iprogrammer | last post by:
i have a problem when i try to run my windows service ..which is "Error 1053: The service did not respond to the start or control request in a timely fashion" >after this i cannot anything with...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.