views:

32

answers:

1

I have a mobile application calling a webservice. When I run the application once it works normally, but if i call it again without restarting the application, the webservice is not even triggered.

Do you have an idea of what the problem might be?

+1  A: 

A webservice call is essenially, reading a webpage. So, the real question is -- "Is the GET request coming in?" If so, the problem is with your server; if not, it's with the client.

James Curran
how i can check this? for the time being, when the webservice is being triggered i am writing the time in a text file. I noted that at the second attempt no time is being written, which means that the webservice is not being triggered.
mouthpiec
Use Fiddler (www.fiddler2.com) or WireShark (www.wireshark.org) to see the network traffic.
James Curran
@mouth: Do you have that part of the code wrapped in a try block? Sounds like an exception to me...
Dave Swersky
@Dave - yes dave .... but it just keeps waiting till a "timeout"
mouthpiec
@James: a SOAP call is a POST not a GET
John Saunders
@mouth: If your second network call always fails, something is not being released. Are you closing the network connection after the first successful call?
Dave Swersky
@Dave: I am using the <webservice>.Dispose() method. Is there any other way to release the network connection?
mouthpiec
James Curran
@James: even REST uses more then just the GET request. It's all about HTTP.
John Saunders