xml如下:
4700203048783633 Failed to identify the card scheme of the supplied card number 1000001 TEST Invalid card type 21
原来的Entity如下:
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.1")] [Serializable()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [XmlType(AnonymousType = true)] [XmlRoot(Namespace = "", IsNullable = false)]
解决方案需要增加ElementName = "Response",如下:
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.1")] [Serializable()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [XmlType(AnonymousType = true)] [XmlRoot(Namespace = "", IsNullable = false, ElementName = "Response")]
Done!
分类: