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.

One-way call seem to still call the EndWebMethod

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kplkumar@gmail.com - 17 Jan 2006 21:13 GMT
I created a web method which returns void. I then added the OneWay=true
atribute. But the funny thing I noticed is that, even though it is an
async call, the EndWebMethod is called at the end of the execution.

This is what I really want..... I want to call a webmethod and just
totally forget about it. I need nothing in return.

The way I found out that this isn't working is, in my web method I am
doing an insert into the database. This I need to do once and totally
forget about it. But what happens is that, since the EndWebMethod is
called the insert is done again and the database craps out.

Any ideas why??
Josh Twist - 18 Jan 2006 08:32 GMT
Can you post the code where you call your web service? Also, you added
the OneWay attribute to the WebMethod inside the Web Service itself and
not the client right?

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



©2009 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.