|
|
|
WebServices: SoapException handling with overriden proxy
|
|||
|---|---|---|---|
|
#18+
Всем привет! Такой вопрос: например, если оверрайдить прокси-класс для веб-сервиса и там использовать модифицированный WebResponse(ну, например, для зипования ответа): public class CompressedWebRequest : WebRequest { public override WebResponse GetResponse() { try { return request.GetResponse(); } catch (SoapException ex) { DoSomething(...); } catch(WebException ex) { DoSomethingElse(...); } } } то в том случае, если сервис генерит SoapException, то на клиенте я его ловлю уже как обычный WebException(HTTP-500). А как бы мне в этом случае SoapException ловить? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 02.03.2010, 18:52 |
|
||
|
|

start [/forum/search_topic.php?author=Anchor&author_mode=last_topics&do_search=1]: |
0ms |
get settings: |
8ms |
get forum list: |
19ms |
get settings: |
11ms |
get forum list: |
15ms |
get settings: |
10ms |
get forum list: |
21ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
87ms |
get topic data: |
12ms |
get first new msg: |
7ms |
get forum data: |
3ms |
get page messages: |
55ms |
get tp. blocked users: |
2ms |
| others: | 1091ms |
| total: | 1349ms |

| 0 / 0 |
