473,654 Members | 3,289 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Passing parameter to windows service...

Hi ,
I want to parameter passing to my windows sevice. I call service commands
like this ;
'------------------------------------------------------------
Dim sc As ServiceControll er
sc = New ServiceControll er("ProsetLogSe rvices")
sc.MachineName = "."
If sc.Status = ServiceControll erStatus.Stoppe d Then
sc.Start()
End If
sc.ExecuteComma nd(129)
'------------------------------------------------------------
This is working but how can I passing parameters to windows service
function...

Thanks for all help...
Jan 14 '07 #1
3 1930
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.c omwrote in message
news:%2******** **********@TK2M SFTNGP02.phx.gb l...
Hi ,
I want to parameter passing to my windows sevice. I call service commands
like this ;
'------------------------------------------------------------
Dim sc As ServiceControll er
sc = New ServiceControll er("ProsetLogSe rvices")
sc.MachineName = "."
If sc.Status = ServiceControll erStatus.Stoppe d Then
sc.Start()
End If
sc.ExecuteComma nd(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.infini tec.de>
wrote in message news:%2******** **********@TK2M SFTNGP02.phx.gb l...
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.c omwrote in message
news:%2******** **********@TK2M SFTNGP02.phx.gb l...
>Hi ,
I want to parameter passing to my windows sevice. I call service commands
like this ;
'------------------------------------------------------------
Dim sc As ServiceControll er
sc = New ServiceControll er("ProsetLogSe rvices")
sc.MachineNa me = "."
If sc.Status = ServiceControll erStatus.Stoppe d Then
sc.Start()
End If
sc.ExecuteComm and(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*****@discus sions.microsoft .comwrote in message
news:C9******** *************** ***********@mic rosoft.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.infini tec.de>
wrote in message news:%2******** **********@TK2M SFTNGP02.phx.gb l...
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.c omwrote in message
news:%2******** **********@TK2M SFTNGP02.phx.gb l...
>Hi ,
>I want to parameter passing to my windows sevice. I call service
commands
>like this ;
>'------------------------------------------------------------
>Dim sc As ServiceControll er
>sc = New ServiceControll er("ProsetLogSe rvices")
>sc.MachineNa me = "."
>If sc.Status = ServiceControll erStatus.Stoppe d Then
>sc.Start()
>End If
>sc.ExecuteComm and(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
7770
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 investigate the possibility of building a front-end web page which captures MailMessage properties such To, From Subject, Attachments etc, builds a MailMessage object, passes the MailMessage object to a web service, the web service then sends the message...
5
3499
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 (where "MyWebSvcName" is the name of my web service). I don't know how to assign value to this parameter. (I'm using VB.NET 2003.) Here are some sample codes:
22
25575
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 compile. <WebMethod()> _ Public Function VerifySku(ByVal skus As XmlDataDocument) As DataSet Test program : Dim cartSet As DataSet cartSet = ws.VerifySku(cartSet)
2
2019
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 as was the case in the previous version of VB e.g. VB .Net 2003. Here's the procedure in the web service: Public Sub Convert2Dollar(ByVal euroAmount As Double, ByRef usDollarAmount As Double) Dim exchangeRate As Double exchangeRate = 10 / 6
10
3921
by: amazon | last post by:
Our vender provided us a web service: 1xyztest.xsd file... ------------------------------------ postEvent PostEventRequest ------------------------------------- authetication authentication eventname string source string ID string
0
1250
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 (I need help in passing this)) Postev.postEvent(auth(), "Test", "1234567", tdt, parameter()) For the first parameter authentication I have: Private Function auth() As ws.Authentication
7
3297
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 object is a reference type? my code is not proving that. I have a web project i created from a web service that is my object: public class ExcelService : SoapHttpClientProtocol {
2
5039
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 ServiceController("ProsetLogServices") sc.MachineName = "." If sc.Status = ServiceControllerStatus.Stopped Then sc.Start() End If
8
8895
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 webmethod1(object a) where a can be of type string, DateTime, float, etc..
7
10141
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()_ Public Sub MyMethod(ByVal arg As MyComplexClass) End Sub
0
8376
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8290
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8708
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8594
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7307
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6161
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4149
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1596
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.