You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by roberto battistoni <rb...@acm.org> on 2006/09/20 18:10:52 UTC
Read XML serialization of an ADO.NET Recordset
Whth .NET WS I have serialized an ADO.NET Recordset in an XML Stream like this:
<xml xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882'
xmlns:dt='uuid:C2F41010-65B3-11d1-A29F-00AA00C14882'
xmlns:rs='urn:schemas-microsoft-com:rowset'
xmlns:z='#RowsetSchema'>
<s:Schema id='RowsetSchema'>
<s:ElementType name='row' content='eltOnly'>
<s:AttributeType name='FIELD' rs:number='1' rs:nullable='true'>
<s:datatype dt:type='string' rs:dbtype='str'
dt:maxLength='512'/>
</s:AttributeType>
...
<s:AttributeType name='FIELDn' rs:number='n'
rs:nullable='true' rs:writeunknown='true'>
<s:datatype dt:type='string' rs:dbtype='str'
dt:maxLength='180'/>
</s:AttributeType>
<s:extends type='rs:rowbase'/>
</s:ElementType>
</s:Schema>
<rs:data>
<z:row FIELD1='C' ... FIELDn='(A)'/>
<z:row FIELD1='C' ... FIELDn='(B)'/>
...
</rs:data>
</xml>
Now in my Java application I use Axis to obtain the WS Stream. How can
I deserialize this XML in Java classes?
I have seen JAXB, but it wants two file: an XSD Schema and a XML file....
Thanks
Roberto
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org