473,385 Members | 1,597 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,385 software developers and data experts.

Passing parameter to windows service...

Hi ,
I want to parameter passing to my windows sevice. I call service commands
like this ;
'------------------------------------------------------------
Dim sc As ServiceController
sc = New ServiceController("ProsetLogServices")
sc.MachineName = "."
If sc.Status = ServiceControllerStatus.Stopped Then
sc.Start()
End If
sc.ExecuteCommand(129)
'------------------------------------------------------------
This is working but how can I passing parameters to windows service
function...

Thanks for all help...
Jan 14 '07 #1
3 1913
Hello,

you must use some sort of interprocess communication, like remoting or
WebService calls (WebService Enhancements and WCF (aka Indigo) allow this).

Other options include Remoting (via Shared memory or tcp/ip), Named Pipes or
Message queues.

Best regards, Henning

"Hakan Örnek" <or****@gmail.comwrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl...
Hi ,
I want to parameter passing to my windows sevice. I call service commands
like this ;
'------------------------------------------------------------
Dim sc As ServiceController
sc = New ServiceController("ProsetLogServices")
sc.MachineName = "."
If sc.Status = ServiceControllerStatus.Stopped Then
sc.Start()
End If
sc.ExecuteCommand(129)
'------------------------------------------------------------
This is working but how can I passing parameters to windows service
function...

Thanks for all help...

Jan 14 '07 #2
Thanks for all help Henning.
"Henning Krause [MVP - Exchange]" <ne***************@this.infinitec.de>
wrote in message news:%2******************@TK2MSFTNGP02.phx.gbl...
Hello,

you must use some sort of interprocess communication, like remoting or
WebService calls (WebService Enhancements and WCF (aka Indigo) allow
this).

Other options include Remoting (via Shared memory or tcp/ip), Named Pipes
or Message queues.

Best regards, Henning

"Hakan Örnek" <or****@gmail.comwrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl...
>Hi ,
I want to parameter passing to my windows sevice. I call service commands
like this ;
'------------------------------------------------------------
Dim sc As ServiceController
sc = New ServiceController("ProsetLogServices")
sc.MachineName = "."
If sc.Status = ServiceControllerStatus.Stopped Then
sc.Start()
End If
sc.ExecuteCommand(129)
'------------------------------------------------------------
This is working but how can I passing parameters to windows service
function...

Thanks for all help...


Jan 14 '07 #3
Thanks Roger...
Hakan.

"roger_27" <ro*****@discussions.microsoft.comwrote in message
news:C9**********************************@microsof t.com...
http://www.eggheadcafe.com/articles/20050831.asp

this article was excellent. download the code at the bottom.

I was able to include the middle project into my own project with very
little modification.

"Hakan Örnek" wrote:
Thanks for all help Henning.
"Henning Krause [MVP - Exchange]" <ne***************@this.infinitec.de>
wrote in message news:%2******************@TK2MSFTNGP02.phx.gbl...
Hello,
>
you must use some sort of interprocess communication, like remoting or
WebService calls (WebService Enhancements and WCF (aka Indigo) allow
this).
>
Other options include Remoting (via Shared memory or tcp/ip), Named
Pipes
or Message queues.
>
Best regards, Henning
>
"Hakan Örnek" <or****@gmail.comwrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl...
>Hi ,
>I want to parameter passing to my windows sevice. I call service
commands
>like this ;
>'------------------------------------------------------------
>Dim sc As ServiceController
>sc = New ServiceController("ProsetLogServices")
>sc.MachineName = "."
>If sc.Status = ServiceControllerStatus.Stopped Then
>sc.Start()
>End If
>sc.ExecuteCommand(129)
>'------------------------------------------------------------
>This is working but how can I passing parameters to windows service
>function...
>>
>Thanks for all help...
>>
>>
>

Jan 18 '07 #4

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

Similar topics

4
by: Mark Rae | last post by:
Hi, Can anyone please tell me if it's possible to pass a System.Web.Mail.MailMessage object to a ASP.NET Web Service? Maybe using XML Serialization / Deserialization? I've been asked to...
5
by: James Wong | last post by:
Dear all, I've a web service function and it contains a parameter in System.Text.Encoding. I found that the data type of this parameter in caller application becomes MyWebSvcName.Encoding...
22
by: Arne | last post by:
How do I pass a dataset to a webservices? I need to submit a shoppingcart from a pocket PC to a webservice. What is the right datatype? II have tried dataset as a datatype, but I can't get it to...
2
by: Nab | last post by:
I have just tried to pass parameters to a procedure in VB 2005 and realised that you only need to pass the input parameter. The output parameter's value will be returned without the need to pass it...
10
by: amazon | last post by:
Our vender provided us a web service: 1xyztest.xsd file... ------------------------------------ postEvent PostEventRequest ------------------------------------- authetication authentication...
0
by: amazon | last post by:
I have web service that acceping following parameters.. postev.PostEvent(authentication as ws.authentication, name as string,id as string, exdate as date, parameter() as ws.nameparametervaluepair...
7
by: TS | last post by:
I was under the assumption that if you pass an object as a param to a method and inside that method this object is changed, the object will stay changed when returned from the method because the...
2
by: Hakan Örnek | last post by:
Hi , I want to parameter passing to my windows sevice. I call service commands like this ; '------------------------------------------------------------ Dim sc As ServiceController sc = New...
8
by: =?Utf-8?B?UmF2aQ==?= | last post by:
Hi, I'm trying to pass values of different data-types to a web-service. I thought it would be easier to box these values and pass them as a System.object parameter, like public void...
7
by: =?iso-8859-1?Q?S=F8ren_M._Olesen?= | last post by:
Hi How do I pass a complex type to a webservice?? What I have is a Class 'MyComplexClass' which lives in it's own dll/namespace. I'd like to pass this class to my webmethod: <WebMethod()_...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.