Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 160
  • Last Modified:

Perform transactions using web service in .NET

Hi Experts,

I am using a web service that accepts files from registered users running in .NET.  

Client application calls a web method that validates the user.  Upon successful validation, the application then sends the file over (probably through another web method calls).  I need to link the file to the validated user.  But due to the “stateless” nature of web connection, the session of the first web call (validation) will cease when the web method returns.  

Is there a way to maintain a persistence connection when performing these 2 tasks?  
Any other solutions to this problem will be appreciated.  

Thanks!

0
pcssecure
Asked:
pcssecure
1 Solution
 
testnCommented:
transactions cannot be performed in .net 1.0 web services. however, you can use cookie to maintain state somewhat in the application.....
check this example...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconstatemanagementinaspnetwebservices.asp

but actually i would modify webservices suck that the second call recieves a parameter returned from the first call....
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now