Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / January 2006

Tip: Looking for answers? Try searching our database.

Odd problem with a oneway webservice

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Keith McDonald - 25 Jan 2006 22:22 GMT
We need to invoke a webservice method that will call an sp that may run
up to 1 hour so we want to start the sp then let the client continue
working.  I have read about the OneWay:=true but calling the webservice
it seems to still wait until the service is finished before returning
to the client.  Any ideas? - Code below..

In the webservice we define this method:

<SoapDocumentMethod(OneWay:=True), _
      WebMethod(EnableSession:=True, Description:="STX processing of
imported invoices.")> _
   Public Sub StartProcessingInvoices()

  --code to run the sp which works as needed

   End Sub

In the codebehind aspx page:

           'Final call to webservice to start processing inported data
           Dim wsInvoices As New STXProcessInvoices
           Dim resultMessage As String

           wsInvoices.StartProcessingInvoices()

          ...continue processing and displaying the aspx results page
to the client
Keith McDonald - 26 Jan 2006 20:13 GMT
This looks to be solved. We had the webservice in the same project as
the aspx page.  Not sure what the difference is but putting it in as a
web reference and calling it that way fixed the problem.
m.posseth - 29 Jan 2006 08:54 GMT
I guess the difference is the threading mechanism used , in your code you
could have acomplished the same if you used a background worker

regards

Michel Posseth [MCP]

> This looks to be solved. We had the webservice in the same project as
> the aspx page.  Not sure what the difference is but putting it in as a
> web reference and calling it that way fixed the problem.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.