Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » .NET dataset deserialization
.NET dataset deserialization [message #171993] Thu, 22 June 2006 09:14 Go to next message
Eclipse UserFriend
Originally posted by:

I'm creating a web service client with WTP for a .NET publied web services.
some functions of those web services returns .NET serialized dataset
they are defined in the WSDL only as (for example) :

<s:element name="DocumentSearchAsDatasetResponse">
<s:element minOccurs="0" maxOccurs="1"
<s:element ref="s:schema" />
<s:any />

From that, WTP web service client class generator generates only a response
class that contains an array of any...
in which I have only the XML parsing result as a MessageElement tree.

I would like to know if there is Java class somewhere that already
correspond to .NET dataset type so I can directly deserialize this kind of
message with it, or if it's planed to implement it directly in the class

Paul Barry Delongchamps.
Re: .NET dataset deserialization [message #172032 is a reply to message #171993] Thu, 22 June 2006 12:23 Go to previous message
Eclipse UserFriend
Originally posted by:

Ok, I actually discovered that since the ADO.NET DataSet type is totally
dynamic, the only way to get its structure is to get it at runtime.
There is a good overall review of the possibles workaround there :

Still, since my result is really a dynamic one which structure depends on
the call parameters, I need to keep my use of DataSet which is really
usefull for this. For the java deserialization, it will stay as it is, and I
do intend to recreate the structure at runtime like it is done in .NET
generated web services clients (using the msdata:IsDataSet="true" attribute
in the SOAP response).
I'd like to know if this has already been made (I supposed so, since the
code already exists in .NET) ; something like a pareser of the parsed XML
SOAP response that analyze the structure, create an object and populate it
with the datas.

Paul Barry Delongchamps.

"Paul Barry Delongchamps" <> a
Previous Topic:JSP tag libraries and code assist
Next Topic:WTP and Tomcat 3.3
Goto Forum:

Current Time: Tue Oct 25 19:11:47 GMT 2016

Powered by FUDForum. Page generated in 0.02271 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software