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 >