Hi everyone,

I'm new to SOAP and I'm trying to build a client class to access some
web-service. In my client class, I need to be able to determine exactly the
results of my call, because based on those results, there are different
actions that I should take. So I need to be able to differentiate between
the following cases:

1- My request did not even reach the server.
2- My request reached the server, but there was no reply (I guess we can
call that time-out).
3- My request reached the server, but there was something wrong with the
request, so the server returned an error.
4- My request reached the specific web-service I'm calling, but an error
occurred while the service was executing.
5- My request reached the specific web-service I'm calling, and the service
responed successfully.

I wonder whether I can really differentiate between those cases. I also need
to know which of them raise exceptions and which just return a response with
a Fault in it. I also need to know whether there are certain error codes in
the exception that I can use to determine what happened. I'd also like to
know that for the Fault, and whether the fault code can actually tell me
what happened (not when I'm debugging but in a certain way I can test
against in my code).

You see, my problem is I need to call a certain web-service with a certain
transaction id only once and I should not repeat this id under any
circumstances. I should be able to determine if the error is a complete
failure to reach the ws, which means I can use the same transaction id again
or just a tiemout or something of that sort, and in this case, there's some
sort of query I can do later to find out the result of the request I sent
earlier.

Thanks in advance,
Tarek Nabil


Reply via email to