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

calling windows service from webservice

Hi All,

I have a question which might be a beginner's question.

I have a webservice whose webmethod has to call a window's service and get
back the results.
What is the best way to implement this scenario.

I am asking this as windows service is an exe and i could not figure out a
way call its methods from webservice.

Please help me with a speedy reply.

Jan 8 '08 #1
3 2872

"leo2" <le**@discussions.microsoft.comwrote in message
news:5E**********************************@microsof t.com...
Hi All,

I have a question which might be a beginner's question.

I have a webservice whose webmethod has to call a window's service and get
back the results.
What is the best way to implement this scenario.

I am asking this as windows service is an exe and i could not figure out a
way call its methods from webservice.

Below is the only way you're going to be able to communicate worth a .NET NT
Service application, you need to get more information about it use Google or
get a good book.

That's the only way you're going to be able to communicate with a method in
a .Net Service application.

http://msdn2.microsoft.com/en-us/lib...nd(VS.80).aspx
You want two way communications between your Web service and the NT Service
application, then either you use .Net Remoting or you set a share folder
where the NT service writes Response.txt files out that the Web service will
read. The Response.txt can be a two way communication mechanism between the
two applications, because otherwise, a NT services has no namespace of its
own to allow two way communications

In either case, you need some major changes in both applications. It's
one-way communications with the NT Service via the OnCustomCommans().
Jan 8 '08 #2
Hi Arnold,

Thanks for your prompt reply.
I tried to visit the website link provided by you but it is not
working.Please provide me with the working URL.
I was also thinking about using WCF(latest compared to remoting) but
couldn't find out about how to implement it like where to make an interface
between the two(webservice and windows service), what headers files and major
classes to use to call the windows service methods remotely from web service.
If possible, please provide me with some directions or any sample for this.
Sample based on remoting to achieve this will also be useful for me.

Regards
"Mr. Arnold" wrote:
>
"leo2" <le**@discussions.microsoft.comwrote in message
news:5E**********************************@microsof t.com...
Hi All,

I have a question which might be a beginner's question.

I have a webservice whose webmethod has to call a window's service and get
back the results.
What is the best way to implement this scenario.

I am asking this as windows service is an exe and i could not figure out a
way call its methods from webservice.


Below is the only way you're going to be able to communicate worth a .NET NT
Service application, you need to get more information about it use Google or
get a good book.

That's the only way you're going to be able to communicate with a method in
a .Net Service application.

http://msdn2.microsoft.com/en-us/lib...nd(VS.80).aspx
You want two way communications between your Web service and the NT Service
application, then either you use .Net Remoting or you set a share folder
where the NT service writes Response.txt files out that the Web service will
read. The Response.txt can be a two way communication mechanism between the
two applications, because otherwise, a NT services has no namespace of its
own to allow two way communications

In either case, you need some major changes in both applications. It's
one-way communications with the NT Service via the OnCustomCommans().
Jan 8 '08 #3

"leo2" <le**@discussions.microsoft.comwrote in message
news:3E**********************************@microsof t.com...
Hi Arnold,

Thanks for your prompt reply.
I tried to visit the website link provided by you but it is not
working.Please provide me with the working URL.
I was also thinking about using WCF(latest compared to remoting) but
couldn't find out about how to implement it like where to make an
interface
between the two(webservice and windows service), what headers files and
major
classes to use to call the windows service methods remotely from web
service.
If possible, please provide me with some directions or any sample for
this.
Sample based on remoting to achieve this will also be useful for me.
http://www.google.com/search?hl=en&q...=Google+Search

Since, you're already on a Web server trying to do this, I going to point
you in this direction.

http://www.lhotka.net/Default.aspx

It's got the 3 elements you're looking for to use.

1) CSLA Framework is based on a Web Service as the portal.
2) CSLA framework uses .Net Remoting
3) An application using the CSLA Framework can use .NET Remoting to send
objects between the Web Domain application and a Windows Desktop Domain
application such as a NT Service application.

You get the book and read it to understand what's happening, you download
the CSLA Framework (the source code is yours to use), you download the
source code of the Tracker project for Windows Desktop and WEB based
applications. You put it all together, and you'll see exactly what's going
on, and the lights in your mind will come on as to how you can do things.

You might not never use the CSLA Framework again, but you'll have a solid
foundation.

Jan 8 '08 #4

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

Similar topics

3
by: Henrik | last post by:
Hi all,,, I need to get a refferece to a XML-webservice, and get some data from it.... But I can't add it like an web-refference... What options does I else have?? I've been told that i've to...
3
by: Mike | last post by:
Timeout Calling Web Service I am calling a .NET 1.1 web service from an aspx page. The web service can take several minutes to complete its tasks before returning a message to the aspx page. ...
7
by: WhiskRomeo | last post by:
I have a WIN .NET application that calls a web service to retrieve data. I deployed the application to a server and configured the webservice. The webservice and SQL Server 2000 database are on...
7
by: Jorgen Haukland, Norway | last post by:
Hi, I have created a Java webservice which runs in IBM WebSphere appserver. I take the WSDL-file and create a VS.NET WinForm application and calls the service running on my PC and everything...
5
by: Nate | last post by:
We are attempting to make a request to a web service (we will refer to it as XXXServices) hosted on a Web Logic server from a C# SOAP client. The server responds with a 401 Unauthorized error...
5
by: joeblast | last post by:
I have a Web service that gets the financial periods and hold a reference to a disconnected dataset built at initialization. Web methods work on the dataset inside the web service. Everything is...
7
by: GD | last post by:
Hi, I am trying to call a webservice from a windows service application. It works only if I launch the windows service app from VS.Net 2005 (Worked around from Main()) or from a winform test...
4
by: gengyue | last post by:
Hi, I need to call .Net webservice from my JSP page. My application is Struts application. It is deployed on Oracle application server. Here is the whole process. I have a login form. When user...
4
by: gengyue | last post by:
Hi, I need to call .Net webservice from my JSP page. My application is Struts application. It is deployed on Oracle application server. Here is the whole process. I have a login form. When user...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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: 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
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,...

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.