![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
My web service is based on WCF. One of the operations needs to return a two-dimensional data structure. May I return a DataTable without losing interoperability with J2EE ? |
#3
| |||
| |||
|
|
"Elyo Ravuna" <akora (AT) community (DOT) nospam> wrote in message news:9B0E1E0E-4B87-4306-84AB-881AFDC46623 (AT) microsoft (DOT) com... My web service is based on WCF. One of the operations needs to return a two-dimensional data structure. May I return a DataTable without losing interoperability with J2EE ? Of course not. Does J2EE know about .NET objects at all? -- -------------------------------------------------------------------------------- John Saunders | MVP - Windows Server System - Connected System Developer |
#4
| |||
| |||
|
|
I can think of many workarounds but I would be very glad to hear the best-practices. |
#5
| |||
| |||
|
|
"Elyo Ravuna" <akora (AT) community (DOT) nospam> wrote in message news:9B0E1E0E-4B87-4306-84AB-881AFDC46623 (AT) microsoft (DOT) com... My web service is based on WCF. One of the operations needs to return a two-dimensional data structure. May I return a DataTable without losing interoperability with J2EE ? Of course not. Does J2EE know about .NET objects at all? -- ---------------------------------------------------------------------------- |
|
John Saunders | MVP - Windows Server System - Connected System Developer |
#6
| |||
| |||
|
|
Hi Elyo, Since .NET 2.0 datatable can be serialized into XML, I think you may pass it as a XML document/fragment to J2EE. However, it still require your J2EE client to be able to correctly parse the XML fragment. You may either use XML API or some XML-Object mapping framework to do this in J2EE. Anyway, directly return .NET object to heterogenious client is not recommended(no matter whether it is xml serializable or not). Sincerely, Steven Cheng Microsoft MSDN Online Support Lead This posting is provided "AS IS" with no warranties, and confers no rights. -------------------- From: =?Utf-8?B?RWx5byBSYXZ1bmE=?= <akora (AT) community (DOT) nospam References: <9B0E1E0E-4B87-4306-84AB-881AFDC46623 (AT) microsoft (DOT) com ezP7a6TOIHA.3940 (AT) TK2MSFTNGP05 (DOT) phx.gbl Subject: Re: WCF / J2EE interoperability - DataTable Date: Sat, 8 Dec 2007 03:56:01 -0800 Thank you for the answer, that's exactly what I thought. I can think of many workarounds but I would be very glad to hear the best-practices. Elyo Ravuna "John Saunders [MVP]" wrote: "Elyo Ravuna" <akora (AT) community (DOT) nospam> wrote in message news:9B0E1E0E-4B87-4306-84AB-881AFDC46623 (AT) microsoft (DOT) com... My web service is based on WCF. One of the operations needs to return a two-dimensional data structure. May I return a DataTable without losing interoperability with J2EE ? Of course not. Does J2EE know about .NET objects at all? -- ---------------------------------------------------------------------------- ---- John Saunders | MVP - Windows Server System - Connected System Developer |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |