XML-RPC 故障码的标准是什么?
在为我的网站编写 pingback 处理程序的过程中,我注意到 XML-RPC 规范 没有不要说什么故障代码应该被定义以及它们应该意味着什么。 那么问题来了,是否有一个普遍接受的故障码标准来规定这些信息呢? 定义了哪些故障代码以及它们的含义是什么? 既适用于一般的 XML-RPC,又适用于特定的应用程序(如 pingback)?
我想我知道这个问题的答案,但我想得到社区的意见(我认为这是很好的参考资料)。
In the process of writing a pingback handler for my website, I noticed that the XML-RPC specification doesn't say anything about what fault codes should be defined and what they should mean. So the question is, is there a commonly accepted standard for fault codes that specifies this information? Which fault codes are defined and what do they mean? Both for XML-RPC in general, and for specific applications (like pingback)?
I think I know an answer to this but I'd like to get the community's input on it (and I think it's good reference material to have on SO).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php 似乎被广泛接受。
http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php seem to be widely accepted.
XML-RPC 不定义故障代码,因为那是应用程序级别的定义。 XML-RPC 只是一种传输格式:它指定数据,但不指定数据中的内容。 故障代码通常是特定于服务器的。
也就是说,XML-RPC 的一般用途可能有一些标准的错误代码,您最好查找一下它们,因为我想像 pingbacks 这样广泛使用的东西也有一些错误代码。
XML-RPC doesn't define fault codes because that's an application level definition. XML-RPC is just a carriage format: It specifies data, it doesn't specify what's in the data. Fault codes are generally server-specific.
That said, general uses of XML-RPC may have some standard fault codes, and you'd do well to look them up because I'd imagine there are some for something as widespread as pingbacks.
没有全球故障代码列表。 由服务器实施者或更高级别的标准来指定故障代码。
http://xmlrpc.scripting.com/spec.html
There is no global list of fault codes. It is up to the server implementer, or higher-level standards to specify fault codes.
http://xmlrpc.scripting.com/spec.html