views:

54

answers:

1

I need to provide data to a DataTable in a .NET application from a servlet hosted in Tomcat. It seems tempting to just stream back XML the .NET application can just pupulate using DataTable.ReadXML. Is that the proper road to go down ? And not the least; are there existing Java components that can help me with this on the Tomcat side ?

Edit. The .NET application is a GUI application not a web application/service.

+1  A: 

DataSet and DataTable are implementation specific. They are not the sort of thing to expose from a web service, as they hare how you happen to be implementing your service, and have nothing to do with what the service is trying to do.

Instead, define the data that you need transferred, create a class containing that data (and just that data), and have the servelet send that data to the .NET service.

John Saunders