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

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

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

异常名称错误消息消息注释引发原因解决建议
BodyEncryptionCheckFailedProtection requirements not satisfied: body of the message is not encrypted, or is encrypted with a token of an unexpected type未能满足保护要求:消息的主体没有加密或者被一个未知类型的令牌加密客户端证书于服务端证书不匹配,或者客户端未设置证书,而服务端要求证书验证 
Cryptography_Xml_CreatedKeyFailedFailed to create the signing key.无法创建签名密钥提供的证书没有签名的功能 更换证书类型,创建可以用于签名的证书
Cryptography_Xml_CreateHashAlgorithmFailedCould not create the hash algorithm object.无法创建DigestMethod指定的hash算法对象 指定的DigestMethod算法不受指定证书支持 更换证书
Cryptography_Xml_CreateTransformFailedCould not create the XML transformation identified by the URI {0}.未能创建标志特定URI的转换器  
Cryptography_Xml_DigestMethodRequiredA DigestMethod must be specified on a Reference before generating XML.生成XML之前必须在一个引用上指定DigestMethod  
Cryptography_Xml_DigestValueRequiredA Reference must contain a DigestValue.引用上必须包含DigestValue  
Cryptography_Xml_EnvelopedSignatureRequiresContextAn XmlDocument context is required for enveloped transforms.一个XML文档需要信封转换器  
Cryptography_Xml_InvalidElementMalformed element {0}.错误节点:{0}  
Cryptography_Xml_InvalidReferenceMalformed reference element.错误的引用节点:{0}  
Cryptography_Xml_InvalidSignatureLengthThe length of the signature with a MAC should be less than the hash output length.带MAC的签名长度应该比输出的hash值长度短  
Cryptography_Xml_InvalidSignatureLength2The length in bits of the signature with a MAC should be a multiple of 8.带MAC的加密比特长度应该是8的倍数  
Cryptography_Xml_InvalidSignatureTagThe signature element is not valid.签名节点非法  
Cryptography_Xml_KeyInfoRequiredA KeyInfo element is required to check the signature.一个KeyInfo节点要求检查签名  
Cryptography_Xml_LoadKeyFailedA signing key is not loaded.签名密钥未被加载  
Cryptography_Xml_ReferenceElementRequiredAt least one Reference element is required.至少应该有一个引用节点  
Cryptography_Xml_SelfReferenceRequiresContextAn XmlDocument context is required to resolve the Reference URI {0}.一个XML文档需要处理引用URI:{0}  
Cryptography_Xml_SignatureDescriptionNotCreatedSignatureDescription could not be created for the signature algorithm supplied.签名描述不能用于创建提供的签名算法  
Cryptography_Xml_SignatureMethodKeyMismatchThe key does not fit the SignatureMethod.密钥与签名方法不匹配  


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部