There is another object in ADO.NET - DataReader. It is pretty close to JDBC.
Usual way *when client is receiving* data is to expose it as DataReader, and
then load DataSet from DataReader.

You have different problem.
DataSet serialized representation is documented (I don't have the docs right
now), so one of the options is to use it. However, this means some work.

I beleive much easier solution is to send (from client to server) just XML.
It could be propriatery XML, or SOAP.
Sergei Meleshchuk.
----- Original Message -----
From: "Scott Nichol" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 20, 2002 7:42 AM
Subject: Re: java client for .NET webservice and Co


> A DataSet is a construct that ADO.NET works with, right?  If so, to have
an
> Apache SOAP client send a DataSet, you need to create a DataSet Java class
> that implements the org.apache.xml.Serializer interface.  That interface
has
> a single method named marshal, which is responsible for writing the XML
> representation of the DataSet that is carried within the SOAP message.
>
> Scott
>
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, February 20, 2002 7:17 AM
> Subject: Re: java client for .NET webservice and Co
>
>
> > okay so after have looked at many documentation, i didn't find the
> > solution so i post my question here :
> >
> > what i must create is a java client that sends a DataSet to a .NET
> > webservice. This webservice takes the DataSet and add it into a SQL
server
> > database.
> > My problem is : how to create a DataSet understandable by Microsoft ? I
> > first have a java object (myCompanyObject, with the name, the address
> > etc...)
> >
> > So is the DataSet created by a class that transforms objects into
DataSet
> > ? or is it performed by a xml, wsdl, something file ? (my knowledge
about
> > wsdl is very small) ??? even better : how would look like the code for a
> > "object to DataSet" transformation in some sample lines ?
> >
> >
> > here is the doc about my .NET webservice :
> >
> > SOAP
> > The following is a sample SOAP request and response. The placeholders
> shown need to be replaced with actual values.
> >
> >
> > POST /PCS_Integration/SynchronizeProfiles.asmx HTTP/1.1
> > Host: biztalk
> > Content-Type: text/xml; charset=utf-8
> > Content-Length: length
> > SOAPAction: "http://tempuri.org/WS_UpdateProfileAgency";
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
> >   <soap:Body>
> >     <WS_UpdateProfileAgency xmlns="http://tempuri.org/";>
> >       <dsComp>dataset</dsComp>
> >     </WS_UpdateProfileAgency>
> >   </soap:Body>
> > </soap:Envelope>
> >
> >
> >
> >
> >
> > HTTP/1.1 200 OK
> > Content-Type: text/xml; charset=utf-8
> > Content-Length: length
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
> >   <soap:Body>
> >     <WS_UpdateProfileAgencyResponse xmlns="http://tempuri.org/";>
> >
<WS_UpdateProfileAgencyResult>boolean</WS_UpdateProfileAgencyResult>
> >     </WS_UpdateProfileAgencyResponse>
> >   </soap:Body>
> > </soap:Envelope>
> >
> >
> > Regards,
> > Elise
> >
>
>

Reply via email to