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.
我有一个要求。我在java中编写了一个调用getEmpDetail方法的方法,该方法连接SAP数据库并在控制台中获取员工详细信息。我正在使用 Eclipse 开普勒、apache tomcat 7.0.42 和axis2 1.6.2。我将我的方法转换为 Web 服务(SOAP)。当我在浏览器中运行我的 Web 服务并调用它时,它会在控制台中显示数据。我想在浏览器中使用 XML 格式的所有数据。我正在使用 MVC 架构开发 struts。
此处提供示例代码
如何在java中将表格数据转换为XML格式