Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » .NET dataset deserialization
.NET dataset deserialization [message #171993] Thu, 22 June 2006 09:14 Go to next message
Eclipse User
Originally posted by: pbarry.prosys.fr

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:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="DocumentSearchAsDatasetResult">
<s:complexType>
<s:sequence>
<s:element ref="s:schema" />
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>

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
generator.

Regards,
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 User
Originally posted by: pbarry.prosys.fr

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 :
http://msdn.microsoft.com/msdnmag/issues/03/04/XMLFiles/

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.

regards,
Paul Barry Delongchamps.

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


Current Time: Tue Sep 23 18:24:58 GMT 2014

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

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