构建安全的Xml Web Service系列之wse之错误代码详解

    WSE3.0现在还没有中文版的可以下载,使用英文版的过程中,难免会遇到各种各样的错误,而面对一堆毫无头绪的错误异常,常常会感到迷茫和无助,我起初就觉得这个框架使用起来真的很难用,有时候一些莫名其妙的错误会困扰我半天或者几天的时间,而一些英文的解释理解起来似是而非,很难一针见血的获得哪里出了问题,我将用几篇文章将wse所涉及到的错误代码和错误消息翻译成中文,并且根据个人的一点经验,提出引发错误的原因,并总结出解决建议,不是很准确,只是我所遇到的情况的一个总结而已,也可能有错误,大家辩证的看这个。

   下面先列出这么多,好多n多,篇幅太长,分几次录入。以后会做成一个文档,供大家使用

异常名称 错误消息 消息注释 引发原因 解决建议
BodyEncryptionCheckFailed Protection requirements not satisfied: body of the message is not encrypted, or is encrypted with a token of an unexpected type 未能满足保护要求:消息的主体没有加密或者被一个未知类型的令牌加密 客户端证书于服务端证书不匹配,或者客户端未设置证书,而服务端要求证书验证  
Cryptography_Xml_CreatedKeyFailed Failed to create the signing key. 无法创建签名密钥 提供的证书没有签名的功能  更换证书类型,创建可以用于签名的证书
Cryptography_Xml_CreateHashAlgorithmFailed Could not create the hash algorithm object. 无法创建DigestMethod指定的hash算法对象  指定的DigestMethod算法不受指定证书支持  更换证书
Cryptography_Xml_CreateTransformFailed Could not create the XML transformation identified by the URI {0}. 未能创建标志特定URI的转换器    
Cryptography_Xml_DigestMethodRequired A DigestMethod must be specified on a Reference before generating XML. 生成XML之前必须在一个引用上指定DigestMethod    
Cryptography_Xml_DigestValueRequired A Reference must contain a DigestValue. 引用上必须包含DigestValue    
Cryptography_Xml_EnvelopedSignatureRequiresContext An XmlDocument context is required for enveloped transforms. 一个XML文档需要信封转换器    
Cryptography_Xml_InvalidElement Malformed element {0}. 错误节点:{0}    
Cryptography_Xml_InvalidReference Malformed reference element. 错误的引用节点:{0}    
Cryptography_Xml_InvalidSignatureLength The length of the signature with a MAC should be less than the hash output length. 带MAC的签名长度应该比输出的hash值长度短    
Cryptography_Xml_InvalidSignatureLength2 The length in bits of the signature with a MAC should be a multiple of 8. 带MAC的加密比特长度应该是8的倍数    
Cryptography_Xml_InvalidSignatureTag The signature element is not valid. 签名节点非法    
Cryptography_Xml_KeyInfoRequired A KeyInfo element is required to check the signature. 一个KeyInfo节点要求检查签名    
Cryptography_Xml_LoadKeyFailed A signing key is not loaded. 签名密钥未被加载    
Cryptography_Xml_ReferenceElementRequired At least one Reference element is required. 至少应该有一个引用节点    
Cryptography_Xml_SelfReferenceRequiresContext An XmlDocument context is required to resolve the Reference URI {0}. 一个XML文档需要处理引用URI:{0}    
Cryptography_Xml_SignatureDescriptionNotCreated SignatureDescription could not be created for the signature algorithm supplied. 签名描述不能用于创建提供的签名算法    
Cryptography_Xml_SignatureMethodKeyMismatch The key does not fit the SignatureMethod. 密钥与签名方法不匹配    
posted @ 2007-06-21 16:56  Robin Zhang  阅读(3221)  评论(1编辑  收藏  举报