473,782 Members | 2,507 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accessing service from .NET web page

I have a .NET service I wrote running on my web server. I'd like to be able
to make infrequent calls from my my web application to this service. For
example, my service does some work every 30 minutes. I'd like my secure web
page (hosted on the same server) to tell it to "go do your thing right now"
because I can't wait 30 minutes.

I'm assuming that this requires either:

1. Remoting of some form.
2. ASPNET account to have enough rights to call a service on the same
machine.

I'd like to stick to option 1... but that's only because remoting sounds
fun. I need to learn the basics of remoting sometime. :) But, feel free
to talk me out of it.

So, what I'm looking for is a brief summary of how this should be done.

Thanks in advance.

Mark
Nov 16 '05 #1
2 1233
I've being thinking about the same thing, and like yourself, don't really
know any remote way of doing this.

One method we came up with that we're investigating further is to have the
service listen to some port for a certian message. The web server can simply
initiate the service by posting this message at the port being listened to.

This then extends to many possible (but seemingly messy) ideas, i.e. given
the aspnet account write access to a folder, and have the service poll every
x seconds for a certain file. When it's found, it is initiated...

Other ideas anyone?
"Mark" <Ma**@nowhere.c om> wrote in message
news:eH******** ******@TK2MSFTN GP09.phx.gbl...
I have a .NET service I wrote running on my web server. I'd like to be
able
to make infrequent calls from my my web application to this service. For
example, my service does some work every 30 minutes. I'd like my secure
web
page (hosted on the same server) to tell it to "go do your thing right
now"
because I can't wait 30 minutes.

I'm assuming that this requires either:

1. Remoting of some form.
2. ASPNET account to have enough rights to call a service on the same
machine.

I'd like to stick to option 1... but that's only because remoting sounds
fun. I need to learn the basics of remoting sometime. :) But, feel free
to talk me out of it.

So, what I'm looking for is a brief summary of how this should be done.

Thanks in advance.

Mark

Nov 16 '05 #2
You ideally want as little interaction from the service as possible on your
web server, so it can concentrate on http traffic - however, there is an
exanple of this.

http://msdn.microsoft.com/library/de...SecNetHT15.asp

Not how I would do this - I would put a db on the server that could control
the service via a DB pool, and set the values with asp.net in the same DB.
Infinitely simpler to develop and enhance.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Mark" <Ma**@nowhere.c om> wrote in message
news:eH******** ******@TK2MSFTN GP09.phx.gbl...
I have a .NET service I wrote running on my web server. I'd like to be able to make infrequent calls from my my web application to this service. For
example, my service does some work every 30 minutes. I'd like my secure web page (hosted on the same server) to tell it to "go do your thing right now" because I can't wait 30 minutes.

I'm assuming that this requires either:

1. Remoting of some form.
2. ASPNET account to have enough rights to call a service on the same
machine.

I'd like to stick to option 1... but that's only because remoting sounds
fun. I need to learn the basics of remoting sometime. :) But, feel free
to talk me out of it.

So, what I'm looking for is a brief summary of how this should be done.

Thanks in advance.

Mark

Nov 16 '05 #3

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

Similar topics

2
2192
by: Keith E. | last post by:
I have implemented a Web Service on an IIS 5.0 platform using the ASP listener I can access the Web Service just fine from a VB 6 App and classic ASP using the SOAP 3.0 toolkit and its "MSSOAP.SoapClient30" object However, one of the servers that I'd like to call the Web Service from is a shared hosting platform that does not offer the "MSSOAP.SoapClient30" object It only has the MS XMLDOM. I have located an example of Accessing a Web...
0
2642
by: George | last post by:
Hello, I'm running an ASPX application "WebApplication1" which consumes a web service (service1.asmx) hosted on a machine with IP (128.1.7.x) . The web service is located in the intranet. The web methods can be invoked successfully if "WebApplication1" is located in machines with the same subnet (128.1.7.x). However, it fails if "WebApplication1" is hosted on
0
1113
by: RichardF | last post by:
I have a solution that contains a web service and a web site. I was working on it all day Monday with no problems. Tuesday morning it stopped working, but ONLY when run from inside Visual Studio (VS). Now, when I run it from inside VS, my web site times out when trying to access the web service. The initial login page comes up OK so I enter my user name and password and hit enter, at that time the web site attempts to contact the web...
0
2266
by: Joergen Bech | last post by:
Fairly new to ASP.NET 1.1. Getting the error below when running application on a web server outside of my control, but only the first time I run it: 1. After a long period of inactivity (or updating the code-behind dll) accessing any aspx page in the application causes the application to run for the first time. Some of the initialization involves reading and writing some text and xml files using simple streamreader and streamwriter...
3
7680
by: Jim Lewis | last post by:
I have read several things that state accessing a Web Service through a Query String should work. However, when I try to execute http://localhost/webservice1/service1.asmx/HelloWorld I get the error below. Can I access a Web Service through a Query Sting. I need to send XML to a Flash movie using a Web Service. Thank You, Jim Lewis Server Error in '/WebService1' Application.
3
5006
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : >************************************************************************ > <WebMethod(), System.Web.Services.Protocols.SoapRpcMethod()> _ > Public Function HelloWorld() As > <System.Xml.Serialization.SoapElementAttribute("return")> String
4
9538
by: Joe | last post by:
This may actually be an IIS configuration issue but any help would be appreciated. I'd like to display some content based upon who the current user is that is accessing an internal ASP.NET applciation. I am using the 2.0 framework. I use the following syntax to retrieve the user name: string username = Environment.UserName; I use the 'username' variable to make comparisons and show the appropriate content based upon the user. This...
0
1537
by: jacorona | last post by:
Hello all, I have found a problem accesing a web service hosted in IIS 5.0 in a W2K box. The web service site is configured to accept both integrated windows authentication and client certificates. I have a WinForm 2.0 client application and when it presents a certificate it works fine, but when it tries to access the web service using integrated security it times out. Both accesses are via an https: uri. Moreover, an .aspx page in the...
8
10841
by: GaryDean | last post by:
I have a Wizard page and need to affect the next and previous buttons from my code-behind. I've googled around and found two solutions, and neither appear to work. I can access the SideBarList steps successfully with the following code... Control myContainer = (Control)Wizard1.FindControl("SideBarContainer"); DataList mySideBarList = (DataList)myContainer.FindControl("SideBarList");
0
9641
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
9480
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
10313
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10146
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...
1
10080
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6735
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4044
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 we have to send another system
3
2875
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.