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

run function without stoping

Gav
I have very little knowledge of threads (although I think this is what I
need to use).

I have web services and web applications. It's my understanding (correct me
if I'm wrong) that if a web application calls a web service execution of the
application waits for the web service to finish wether it returns a value or
not. Is there a way to stop this?

Thanks
Gav
Jul 21 '05 #1
11 1280
When you import a web-reference, the proxy class that is generated has
syncronous and asyncronous methods for each webmethod in the webservice
(this is something done automatically - the developer of the webservice
doesn't manually have to create the asyncronous methods). Every method can
be called with:

MethodName(whatever arguments)
OR:
BeginMethodName(whatever arguments)

The BeginX method is the asyncronous one. It follows the asyncronous model
used throughout the framework.

-Brian
"Gav" <sp**@spam.com> wrote in message
news:um**************@tk2msftngp13.phx.gbl...
I have very little knowledge of threads (although I think this is what I
need to use).

I have web services and web applications. It's my understanding (correct me if I'm wrong) that if a web application calls a web service execution of the application waits for the web service to finish wether it returns a value or not. Is there a way to stop this?

Thanks
Gav

Jul 21 '05 #2
When you import a web-reference, the proxy class that is generated has
syncronous and asyncronous methods for each webmethod in the webservice
(this is something done automatically - the developer of the webservice
doesn't manually have to create the asyncronous methods). Every method can
be called with:

MethodName(whatever arguments)
OR:
BeginMethodName(whatever arguments)

The BeginX method is the asyncronous one. It follows the asyncronous model
used throughout the framework.

-Brian
"Gav" <sp**@spam.com> wrote in message
news:um**************@tk2msftngp13.phx.gbl...
I have very little knowledge of threads (although I think this is what I
need to use).

I have web services and web applications. It's my understanding (correct me if I'm wrong) that if a web application calls a web service execution of the application waits for the web service to finish wether it returns a value or not. Is there a way to stop this?

Thanks
Gav

Jul 21 '05 #3
Hello Gav,

Thanks for your post. As suggested by Brian, you can make asynchronous Web
Service calls which offer you the opportunity to cancel calls if needed.
Please refer to the following MSDN article for detailed information:

Asynchronous Web Service Calls over HTTP with the .NET Framework
http://msdn.microsoft.com/library/de...us/dnservice/h
tml/service09032002.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #4
Hello Gav,

Thanks for your post. As suggested by Brian, you can make asynchronous Web
Service calls which offer you the opportunity to cancel calls if needed.
Please refer to the following MSDN article for detailed information:

Asynchronous Web Service Calls over HTTP with the .NET Framework
http://msdn.microsoft.com/library/de...us/dnservice/h
tml/service09032002.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #5
Hi Gav,

I wanted to post a quick note to see if you would like additional
assistance or information regarding this particular issue. We appreciate
your patience and look forward to hearing from you!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #6
Hi Gav,

I wanted to post a quick note to see if you would like additional
assistance or information regarding this particular issue. We appreciate
your patience and look forward to hearing from you!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #7
Gav
Yes please, I don't seem to be able to get this working... I don't need to
add a web reference because the webservice is in my project (I want to call
it from another web service in the same project).

However I tried adding it as a web reference anyway, for the sake of trying
to run this method asynchronous, but I still get an error if I try to run it
using:

BeginMethodName

Do you have any sample code?

Thanks again

"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:QB**************@cpmsftngxa10.phx.gbl...
Hi Gav,

I wanted to post a quick note to see if you would like additional
assistance or information regarding this particular issue. We appreciate
your patience and look forward to hearing from you!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #8
Gav
Yes please, I don't seem to be able to get this working... I don't need to
add a web reference because the webservice is in my project (I want to call
it from another web service in the same project).

However I tried adding it as a web reference anyway, for the sake of trying
to run this method asynchronous, but I still get an error if I try to run it
using:

BeginMethodName

Do you have any sample code?

Thanks again

"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:QB**************@cpmsftngxa10.phx.gbl...
Hi Gav,

I wanted to post a quick note to see if you would like additional
assistance or information regarding this particular issue. We appreciate
your patience and look forward to hearing from you!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #9
Hello Gav,

Since the Web Methods are of the same project, please refer to the MSDN
article below for creating "Server-Side Asynchronous Web Methods":
http://msdn.microsoft.com/library/de...us/dnservice/h
tml/service10012002.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #10
Hello Gav,

Since the Web Methods are of the same project, please refer to the MSDN
article below for creating "Server-Side Asynchronous Web Methods":
http://msdn.microsoft.com/library/de...us/dnservice/h
tml/service10012002.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #11
Gav
Thats great thanks for the help.
"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:r%****************@cpmsftngxa10.phx.gbl...
Hello Gav,

Since the Web Methods are of the same project, please refer to the MSDN
article below for creating "Server-Side Asynchronous Web Methods":
http://msdn.microsoft.com/library/de...us/dnservice/h tml/service10012002.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #12

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

Similar topics

3
by: domeceo | last post by:
can anyone tell me why I cannot pass values in a setTimeout function whenever I use this function it says "menu is undefined" after th alert. function imgOff(menu, num) { if (document.images) {...
17
by: Roland Hall | last post by:
Is there a way to return multiple values from a function without using an array? Would a dictionary object work better? -- Roland Hall /* This information is distributed in the hope that it...
17
by: strout | last post by:
function F(e) { return function(){P(e)} } Can anybody tell me what the code is doing? If return another function all in a function I would do function F(e)
6
by: Daniel Nichols | last post by:
I've noticed that in a C module (.c, .h file combination) that if you create a function's definition before it is used in other functions than a declaration is not necessary. I believe if the...
4
by: Bob Day | last post by:
Using VS 2003, VB, MSDE... I am stoping a thread with the following code: Try Thread.CurrentThread.Abort() Catch ex As Exception MessageBox.Show(ex.ToString)
4
by: Baski | last post by:
Hi, In DB2 is it possible to start and stop a single database as it is done in oracle, or only instances can be started and stopped??? When I try to stop/start a database in the control center...
4
by: Michael | last post by:
Hi, I'm having difficulty finding any previous discussion on this -- I keep finding people either having problems calling os.exec(lepev), or with using python's exec statement. Neither of...
4
by: alex | last post by:
I am so confused with these three concept,who can explained it?thanks so much? e.g. var f= new Function("x", "y", "return x * y"); function f(x,y){ return x*y } var f=function(x,y){
2
by: davidratz | last post by:
I run Access 2000. We still have Access 97 resident on our server. We run all of this inside of a Citrix environment. I have a macro which runs a dozen or so queries and macros. At the end of the...
12
Death Slaught
by: Death Slaught | last post by:
I got bored in math today and decided to write a "program" that greets the user, and if the user has a certain name it will take them to a site, and if you're not one of the users something different...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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: 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...

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.