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

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(OneWay=true) ]
[ WebMethod(Description="Starts nightly stats batch process.") ]
public void StartStatsCrunch() {
// Begin a process that takes a long time to complete.
}

StartStatsCrunch 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 1760
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.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
Hi all,

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

Say suppose i have method like

[ SoapRpcMethod(OneWay=true) ]
[ WebMethod(Description="Starts nightly stats batch process.") ]
public void StartStatsCrunch() {
// Begin a process that takes a long time to complete.
}

StartStatsCrunch 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.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
Hi all,

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

Say suppose i have method like

[ SoapRpcMethod(OneWay=true) ]
[ WebMethod(Description="Starts nightly stats batch process.") ]
public void StartStatsCrunch() {
// Begin a process that takes a long time to complete.
}

StartStatsCrunch 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
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:...
0
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...
0
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...
3
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#...
9
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...
7
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...
1
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...
0
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...
0
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...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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...
0
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,...
0
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...

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.