One-way call seem to still call the EndWebMethod

K

kplkumar

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??
 
J

Josh Twist

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top