Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 Web 服务的新手,但遇到了问题。在 JBOSS 6 上运行了一个 Web 服务,当我们在客户端使用“&”发送数据时,我们遇到这样的错误“实体名称必须紧跟实体引用中的 '&'”?在网上找不到解决方案。
听起来服务器正在接收 XML 文档;在您发送的字符串中,您(或代表您的某些代理)需要在传输消息之前转义 XML 的分隔符(将“&”替换为“&”,将“<”替换为“<”)。这与 XSD 无关;它是基本的 XML 语法。