473,651 Members | 2,645 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Question regarding oneway attribute of webmethod.

Hi all,

I am having one confusion regarding webmethod's fire and forget
behaviour.

Say suppose i have method like

[ SoapRpcMethod(O neWay=true) ]
[ WebMethod(Descr iption="Starts nightly stats batch process.") ]
public void StartStatsCrunc h() {
// Begin a process that takes a long time to complete.
}

StartStatsCrunc h contains some long running code say more than 1 hours.

My client which is windows application has invoked this methods. So my
question is suppose i close my windows application what will happen
with this remote call. Will it continue its execution. Or is there any
link between client's thread and thread on which my webmethod is
running.

Please correct me if i am wrong.

thanks in advance.

Sep 27 '06 #1
2 1777
Hi,

When a web method is one way, the client does not expect a response message.
As you said, it is fire and forget, if you close the application, the
service will continue executing.

Regards,
Pablo Cibraro
http://weblogs.asp.net/cibrax

"archana" <tr************ **@yahoo.comwro te in message
news:11******** **************@ h48g2000cwc.goo glegroups.com.. .
Hi all,

I am having one confusion regarding webmethod's fire and forget
behaviour.

Say suppose i have method like

[ SoapRpcMethod(O neWay=true) ]
[ WebMethod(Descr iption="Starts nightly stats batch process.") ]
public void StartStatsCrunc h() {
// Begin a process that takes a long time to complete.
}

StartStatsCrunc h contains some long running code say more than 1 hours.

My client which is windows application has invoked this methods. So my
question is suppose i close my windows application what will happen
with this remote call. Will it continue its execution. Or is there any
link between client's thread and thread on which my webmethod is
running.

Please correct me if i am wrong.

thanks in advance.

Sep 27 '06 #2
Hi,

Thanks a lot for clearing my confusion.

Pablo Cibraro [MVP] wrote:
Hi,

When a web method is one way, the client does not expect a response message.
As you said, it is fire and forget, if you close the application, the
service will continue executing.

Regards,
Pablo Cibraro
http://weblogs.asp.net/cibrax

"archana" <tr************ **@yahoo.comwro te in message
news:11******** **************@ h48g2000cwc.goo glegroups.com.. .
Hi all,

I am having one confusion regarding webmethod's fire and forget
behaviour.

Say suppose i have method like

[ SoapRpcMethod(O neWay=true) ]
[ WebMethod(Descr iption="Starts nightly stats batch process.") ]
public void StartStatsCrunc h() {
// Begin a process that takes a long time to complete.
}

StartStatsCrunc h contains some long running code say more than 1 hours.

My client which is windows application has invoked this methods. So my
question is suppose i close my windows application what will happen
with this remote call. Will it continue its execution. Or is there any
link between client's thread and thread on which my webmethod is
running.

Please correct me if i am wrong.

thanks in advance.
Sep 28 '06 #3

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

Similar topics

4
2152
by: sunnyz | last post by:
i am using property in Webservice.But attribute doesn' work for properties.Cud any1 tell me plz which attribute to use for properties thx *-----------------------* Posted at: www.GroupSrv.com *-----------------------*
0
2257
by: TT (Tom Tempelaere) | last post by:
Hi, In my project I have a seperate logging application. I use remoting to log to it. The remoted object exposes a certain (log-)interface, and the methods therein are all OneWay methods (decorated with the OneWay attribute). In my real application, I connect to the remoted log-object (using RemotingServices.Connect). This returns a proxy for the remoted object, which I cast to the logging-interface.
0
1610
by: Christopher D. Wiederspan | last post by:
I have a web service and I'm using a connection string to SQL Server that specifies "Integrated Security=SSPI" to impersonate the calling user. My setup works fine until I add the attribute to the web service, and then I start getting the error: Login failed for user '(null)'. I'm guessing that this has something to do with threading and the new thread not having the context of the calling user. Can somebody enlighten me? Thanks, Chris
3
4248
by: Adam Stephensen | last post by:
http://msdn.microsoft.com/msdnmag/issues/04/10/ServiceStation/ In the downloadable code (not the article itself) for this great article about WSE Security, Aaron Skonnard has the following C# method ... public ConfirmedWeblogEntry AddEntry( NewWeblogEntry newEntry ) { }
9
4572
by: Brad Wood | last post by:
I've added my custom attribute to a web service's method. When I consume the web service and attempt to check the value of the attribute, it's not there, but the WebMethod attribute is. My attribute descends from the same System.Attribute class as the WebMethod attribute does. Can anyone tell me why it has gone missing?
7
10575
by: Mark A | last post by:
If server 01 running HADR in the primary role crashes, and the DBA does a HADR takeover by force on the 02 server to switch roles, then the 02 server is now the primary. What happens when the Server 01 is brought back up? It still thinks it is the primary because that was its role when it crashed and it does not know about the takeover by force command that was issued. Does the 01 server check the 02 server to see what role they are in...
1
2455
by: George Jordanov Ivanov | last post by:
Folks, I have a Web service with the two possible types of methods - OneWay and Request/Response. The problem is while debugging I cannot step into the OneWay methods, while trying to do the same with Request/Response methods is working just fine! Have any ideas why this happens? I have Microsoft .NET framework 2.0 and Visual Studio 2005 as the development platform. Regards, George Jordanov Ivanov
0
1400
by: DMT012 | last post by:
I have a WebMethod with the attribute OneWay set to True. When the acknowledgement gets sent back to the calling computer the content-type HTTP header is not present, and my firewall drops the response. Is there anyway to explicitly set the content-type header or have it automatically generated? I realize that since there is no payload it makes sense not to have a content-type specified, but changing how the firewall works is not an...
0
2183
by: Jesse Houwing | last post by:
Hello all, I was wondering... If you look in the documentation and on the web to find any info on long running webservice calls, they all come down to: Add the SoapDocumentMethod Attribute to your webmethod and set it's OneWay property to true. Nowhere I can find though what will happen in any of the following situations:
0
8349
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
8795
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...
1
8460
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
7296
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
6157
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
5609
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
4281
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2696
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
2
1585
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.