English 中文(简体)
• 获取网络服务以恢复XML等数据库成果的最佳途径?
原标题:Best way to get a Web Service to return a database result as XML?

我正在利用 j子建立一个网络服务,并询问一个具有Kingk的DB2 z/OS数据库,并将结果作为阵列清单。 我谨将这份名单作为十大马,但我不肯定如何这样做。

是否有任何人有恢复XML这一结果的例子,正在使用Arraylist最佳方法这样做?

我是否应该使用日本航天中心。 如果有的话?

问题回答

页: 1 页: 1

这方面的一个例子

USE AdventureWorks
GO
SELECT Cust.CustomerID, 
       OrderHeader.CustomerID,
       OrderHeader.SalesOrderID, 
       OrderHeader.Status,
       Cust.CustomerType
FROM Sales.Customer Cust 
INNER JOIN Sales.SalesOrderHeader OrderHeader
ON Cust.CustomerID = OrderHeader.CustomerID
FOR XML AUTO

也许XMLEncoder.writeObject(arrayList)

但这与数据库无关。 简称表

最容易的方式很可能是使用鸡奸。

XStream是一个简单的图书馆,可以把物体编成XML并再次编成。

如果看看他们的理论,你就可以很快推断出一个阵列清单的顺序。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签