onvif soap 协议的错误代码

在 stdsoap2.h 头文件中定义的的宏
#define SOAP_EOF EOF
#define SOAP_OK 0
#define SOAP_CLI_FAULT 1
#define SOAP_SVR_FAULT 2
#define SOAP_TAG_MISMATCH 3
#define SOAP_TYPE 4
#define SOAP_SYNTAX_ERROR 5
#define SOAP_NO_TAG 6
#define SOAP_IOB 7
#define SOAP_MUSTUNDERSTAND 8
#define SOAP_NAMESPACE 9
#define SOAP_USER_ERROR 10
#define SOAP_FATAL_ERROR 11 /* deprecated */
#define SOAP_FAULT 12
#define SOAP_NO_METHOD 13
#define SOAP_NO_DATA 14
#define SOAP_GET_METHOD 15
#define SOAP_PUT_METHOD 16
#define SOAP_PATCH_METHOD 17
#define SOAP_DEL_METHOD 18
#define SOAP_HTTP_METHOD 19
#define SOAP_EOM 20
#define SOAP_MOE 21
#define SOAP_HDR 22
#define SOAP_NULL 23
#define SOAP_DUPLICATE_ID 24
#define SOAP_MISSING_ID 25
#define SOAP_HREF 26
#define SOAP_UDP_ERROR 27
#define SOAP_TCP_ERROR 28
#define SOAP_HTTP_ERROR 29
#define SOAP_SSL_ERROR 30
#define SOAP_ZLIB_ERROR 31
#define SOAP_DIME_ERROR 32
#define SOAP_DIME_HREF 33
#define SOAP_DIME_MISMATCH 34
#define SOAP_DIME_END 35
#define SOAP_MIME_ERROR 36
#define SOAP_MIME_HREF 37
#define SOAP_MIME_END 38
#define SOAP_VERSIONMISMATCH 39
#define SOAP_PLUGIN_ERROR 40
#define SOAP_DATAENCODINGUNKNOWN 41 /* unused */
#define SOAP_REQUIRED 42
#define SOAP_PROHIBITED 43
#define SOAP_OCCURS 44
#define SOAP_LENGTH 45
#define SOAP_PATTERN 46
#define SOAP_FD_EXCEEDED 47
#define SOAP_UTF_ERROR 48
#define SOAP_NTLM_ERROR 49
#define SOAP_LEVEL 50
#define SOAP_FIXED 51
#define SOAP_EMPTY 52
#define SOAP_END_TAG 53
#define SOAP_ERR 99

SOAP_TCP_ERROR 28  错误通常表示在网络通信过程中发生了 TCP 层的连接错误。具体而言,这类错误通常意味着以下几种情况之一:

  1. 设备不可达:程序尝试连接设备的 IP 地址或端口失败,比如设备断开网络连接,或者设备 IP 地址或端口配置错误。
  2. 网络不通:客户端和设备之间的网络中断,比如 VPN 未连接或网络被防火墙阻断。
  3. 超时:TCP 连接尝试超时,设备响应速度慢,或由于网络延迟无法建立连接。
  4. 路由问题:客户端的网络配置(例如子网、网关设置等)错误,导致无法连接到设备的 IP 地址。

 

posted @ 2024-10-29 12:45  Fitz  阅读(9)  评论(0编辑  收藏  举报