Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > webservice return value but continue some process

Reply
Thread Tools

webservice return value but continue some process

 
 
raj
Guest
Posts: n/a
 
      07-24-2003
Hi,
I am new to this web service concept.
I have following requirment for a web method--

web service check for some data
if data is ok -- returns a value
if data is not ok- returns a value

Now My requirement is to continue some processing if data
is ok. though I have to return a value immediately.Whether
the coninued process failed does not have any affect on
the user.

can anyone point me out how to approch this problem.
I will appreciate any help.
thanks
Rajesh
 
Reply With Quote
 
 
 
 
Tomas Restrepo \(MVP\)
Guest
Posts: n/a
 
      07-24-2003
raj,

> I am new to this web service concept.
> I have following requirment for a web method--
>
> web service check for some data
> if data is ok -- returns a value
> if data is not ok- returns a value
>
> Now My requirement is to continue some processing if data
> is ok. though I have to return a value immediately.Whether
> the coninued process failed does not have any affect on
> the user.
>
> can anyone point me out how to approch this problem.
> I will appreciate any help.


I'd probably spin off the real work unto a Queued Component running in COM+
or use MSMQ to send a message to a service...

--
Tomas Restrepo
http://www.velocityreviews.com/forums/(E-Mail Removed)


 
Reply With Quote
 
 
 
 
raj
Guest
Posts: n/a
 
      07-24-2003
IS there a way to implement this in web service.
is there a way to return a value and continue process?


>-----Original Message-----
>raj,
>
>> I am new to this web service concept.
>> I have following requirment for a web method--
>>
>> web service check for some data
>> if data is ok -- returns a value
>> if data is not ok- returns a value
>>
>> Now My requirement is to continue some processing if

data
>> is ok. though I have to return a value

immediately.Whether
>> the coninued process failed does not have any affect on
>> the user.
>>
>> can anyone point me out how to approch this problem.
>> I will appreciate any help.

>
>I'd probably spin off the real work unto a Queued

Component running in COM+
>or use MSMQ to send a message to a service...
>
>--
>Tomas Restrepo
>(E-Mail Removed)
>
>
>.
>

 
Reply With Quote
 
Steven Licciardi
Guest
Posts: n/a
 
      07-24-2003
How about using threads, would that work? From your main function you call
a new function in a thread then return your value from the main function,
so:

function mainwebfunction(params) as integer
dim m as new thread(addressof newFunction)
m.start()

''do some stuff here
return value
end function

function newFunction()
''write your continuation code here
end function

I'm just not sure if newFunction will just stop when the mainFunction
returns when using webservices?

Steven

"raj" <(E-Mail Removed)> wrote in message
news:078901c35195$dd7316b0$(E-Mail Removed)...
> IS there a way to implement this in web service.
> is there a way to return a value and continue process?
>
>
> >-----Original Message-----
> >raj,
> >
> >> I am new to this web service concept.
> >> I have following requirment for a web method--
> >>
> >> web service check for some data
> >> if data is ok -- returns a value
> >> if data is not ok- returns a value
> >>
> >> Now My requirement is to continue some processing if

> data
> >> is ok. though I have to return a value

> immediately.Whether
> >> the coninued process failed does not have any affect on
> >> the user.
> >>
> >> can anyone point me out how to approch this problem.
> >> I will appreciate any help.

> >
> >I'd probably spin off the real work unto a Queued

> Component running in COM+
> >or use MSMQ to send a message to a service...
> >
> >--
> >Tomas Restrepo
> >(E-Mail Removed)
> >
> >
> >.
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
exec (new process or new thread?) to continue aidy Ruby 5 04-08-2009 08:35 PM
PIX NAT/PAT IP locks up, but static conduits continue - How to track bad pc? dogfrndnew@yahoo.com Cisco 1 09-12-2007 06:10 PM
How to continue process without waiting for the output of system()? Cod Perl Misc 6 09-06-2007 04:12 PM
what value does lack of return or empty "return;" return Greenhorn C Programming 15 03-06-2005 08:19 PM
How to send info to client but continue server processing ?? Chris ASP .Net 1 10-16-2004 02:59 PM



Advertisments