Whth .NET WS I have serialized an ADO.NET Recordset in an XML Stream like this:
<xml xmlns:s='uuid:B DC6E3F0-6DA3-11d1-A2A3-00AA00C14882'
xmlns:dt='uuid: C2F41010-65B3-11d1-A29F-00AA00C14882'
xmlns:rs='urn:s chemas-microsoft-com:rowset'
xmlns:z='#Rowse tSchema'>
<s:Schema id='RowsetSchem a'>
<s:ElementTyp e name='row' content='eltOnl y'>
<s:AttributeTyp e name='FIELD' rs:number='1' rs:nullable='tr ue'>
<s:datatype dt:type='string ' rs:dbtype='str'
dt:maxLength='5 12'/>
</s:AttributeType >
...
<s:AttributeTyp e name='FIELDn' rs:number='n'
rs:nullable='tr ue' rs:writeunknown ='true'>
<s:datatype dt:type='string ' rs:dbtype='str'
dt:maxLength='1 80'/>
</s:AttributeType >
<s:extends type='rs:rowbas e'/>
</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 3 3810
"roboB" <ro***@discussi ons.microsoft.c omwrote in message
news:65******** *************** ***********@mic rosoft.com...
Whth .NET WS I have serialized an ADO.NET Recordset in an XML Stream like
this:
<xml xmlns:s='uuid:B DC6E3F0-6DA3-11d1-A2A3-00AA00C14882'
xmlns:dt='uuid: C2F41010-65B3-11d1-A29F-00AA00C14882'
xmlns:rs='urn:s chemas-microsoft-com:rowset'
xmlns:z='#Rowse tSchema'>
<s:Schema id='RowsetSchem a'>
<s:ElementTyp e name='row' content='eltOnl y'>
<s:AttributeTyp e name='FIELD' rs:number='1'
rs:nullable='tr ue'>
<s:datatype dt:type='string ' rs:dbtype='str'
dt:maxLength='5 12'/>
</s:AttributeType >
...
<s:AttributeTyp e name='FIELDn' rs:number='n'
rs:nullable='tr ue' rs:writeunknown ='true'>
<s:datatype dt:type='string ' rs:dbtype='str'
dt:maxLength='1 80'/>
</s:AttributeType >
<s:extends type='rs:rowbas e'/>
</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....
If that's what JAXB wants, then why not give it to JAXB?
Why would you expect Java or anything else to understand this XML format?
Does JAXB know about the 'urn:schemas-microsoft-com:rowset' namespace? If
not, then how will it be able to interpret an rs:data element?
You should think this through, starting with the WSDL file and its
associated schemas, and then, maybe finally deciding how to serialize your
ADO.NET Recordset. That's the final thing you should be doing, not the
first.
John
Ok, Jhon, pehaps I was not so very clear.
Some question more spicifically:
1) Why Does Microsoft persist an ADO.NET recordset in this mode if this is
not so very useful to deserialize in Java environment? WS are made to do
interoperabilit y more accessible...
2) How Do you think it is more convenient to serialize and deserialize
ADO.NET recordset in Java?
Thanks to you
"John Saunders" wrote:
"roboB" <ro***@discussi ons.microsoft.c omwrote in message
news:65******** *************** ***********@mic rosoft.com...
Whth .NET WS I have serialized an ADO.NET Recordset in an XML Stream like
this:
<xml xmlns:s='uuid:B DC6E3F0-6DA3-11d1-A2A3-00AA00C14882'
xmlns:dt='uuid: C2F41010-65B3-11d1-A29F-00AA00C14882'
xmlns:rs='urn:s chemas-microsoft-com:rowset'
xmlns:z='#Rowse tSchema'>
<s:Schema id='RowsetSchem a'>
<s:ElementTyp e name='row' content='eltOnl y'>
<s:AttributeTyp e name='FIELD' rs:number='1'
rs:nullable='tr ue'>
<s:datatype dt:type='string ' rs:dbtype='str'
dt:maxLength='5 12'/>
</s:AttributeType >
...
<s:AttributeTyp e name='FIELDn' rs:number='n'
rs:nullable='tr ue' rs:writeunknown ='true'>
<s:datatype dt:type='string ' rs:dbtype='str'
dt:maxLength='1 80'/>
</s:AttributeType >
<s:extends type='rs:rowbas e'/>
</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....
If that's what JAXB wants, then why not give it to JAXB?
Why would you expect Java or anything else to understand this XML format?
Does JAXB know about the 'urn:schemas-microsoft-com:rowset' namespace? If
not, then how will it be able to interpret an rs:data element?
You should think this through, starting with the WSDL file and its
associated schemas, and then, maybe finally deciding how to serialize your
ADO.NET Recordset. That's the final thing you should be doing, not the
first.
John
"roboB" <ro***@discussi ons.microsoft.c omwrote in message
news:AE******** *************** ***********@mic rosoft.com...
Ok, Jhon, pehaps I was not so very clear.
Some question more spicifically:
1) Why Does Microsoft persist an ADO.NET recordset in this mode if this is
not so very useful to deserialize in Java environment? WS are made to do
interoperabilit y more accessible...
Why would Java be an overwhelming consideration for Microsoft?
2) How Do you think it is more convenient to serialize and deserialize
ADO.NET recordset in Java?
Why do you want Java or any other platform to have to understand what a
DataSet is? Pretend that DataSets don't exist and that you still have to
send the same data. Then separate the data to be sent from the platform
sending it.
John This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ante Sabo |
last post by:
Hello,
It seems to me to be in some kinda trouble. I wanted to implement
communication between Java applet and Server through sockets and
Serialization. So, I serialize Object, send it to server which deserialize
it with no problems. In other direction problems came out since Object
serialized under Java 1.4.1 seems to be not deserializable under Java 1.1.4.
(MS VM). If applet si run under J2, there are no problems, but I cannot push...
|
by: psy000 |
last post by:
Hi,
I have a C# web service client that talks to a JAVA application sever.
I use AXIS to generate the WSDL file, use wsdl.exe to generate proxy
stub c# code. When I try to use c# client connect to application
server, I did not get the result in the C# client side, I used a soap
monitor to look at the SOAP messages that were exchanged, I can see
server returned a correct SOAP message, but the C# client failed to
deserialize the XML...
|
by: Aaron Clamage |
last post by:
Hi,
I'm not sure that if this is the right forum, but any help would be greatly
appreciated.
I am porting some java serialization code to c# and I can't figure out the
correct way to do it. It seems that either I can use default serialization
or implement ISerializable. Is there any way to do both (e.g. extend the
default serialization). In other words, I want to be able to implement my
custom serialization code but call the...
|
by: Ray Mitchell |
last post by:
Hello,
I have two Java applications that exchange serialized
objects. Although I would like to ultimately convert both
to C# it's a pretty monumental task, especially for
someone just learning both langauges. I thought it might
be more reasonable to start with simply converting the
simpler one of the two and getting it to work. I have
used Microsoft's free Java to C# converter to convert most
of the code, but of course I must...
|
by: Uttam |
last post by:
Hello,
We are at a very crucial decision making stage to select between .Net
and Java. Our requirement is to download a class at runtime on the
client computer and execute it using remoting or rmi.
Just to keep my question short I am posting trimmed version of my
code.
//file: Serializable.cs
| |
by: nickdu |
last post by:
We have the need to persist data to a configuration database. We want the
format of this data to be XML. There are two approaches that come to mind
that seem to fit the bill. Below are the two approaches I'm referring to.
Note that I do list what I think are the pros and cons of each approach.
1. .NET Serialization.
We could create classes which can participate in .NET serialization. Since
we want the format of the persisted data to...
|
by: umhlali |
last post by:
I get the following exception when my VB.NET app calls a Java web service that returns an array of objects. The same call works for a single object though. So looks like there is no problem serializing the object but there seems to be a problem serializing an array of objects. Any help will be appreciated
"Cannot assign object of type System.Object to an object of type ElectronicWallet.C2PTest.PaymentItem."
:...
|
by: Christo |
last post by:
as part of a project at uni i have been asked to provide object persistance
through files
I have opted for serialization
my question is quite simple
when u use serialization is an object saved to a single file or are more
than one object(s) saved to a single file?
|
by: Pavel |
last post by:
Hello,
Does anyone know a (preferably open-source) multi-platform C or C++
library that would be able to write and read C/C++ doubles and floats
to/from streambuf, char array or similar device in IEEE 754 with
reasonably optimal precision and performance?
The purpose is to exchange serialized doubles and floats between C/C++
and Java programs where Java serialization rules are used.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |