You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by El...@lionbridge.com on 2002/02/20 16:39:02 UTC
Re: java client for .NET webservice and Co : found some information but not
all
in fact (tell me if i'm wrong),i guess i just have to transform my java
object into a XML SOAP object, specifying a shema (my wsd file), and then
send this xml SOAP object to the .NET webservice.
is there a class to do this ? is the Class SOAPMappingRegistry doing this
? i'm not sure (A SOAPMappingRegistry object is an XMLJavaMappingRegistry
with pre-registered serializers and deserializers to support SOAP.) or
should i use Class XMLJavaMappingRegistry ? did someone create a
complextype with a shema (a wsd file) ?
any help in my search would be appreciated
regards,
elise, xml learning girl
Elise_Dupont@lionbridge.com
02/20/2002 02:59 PM
Please respond to soap-dev
To: soap-dev@xml.apache.org
cc:
Subject: Re: java client for .NET webservice and Co
i also do have a WSD file :
============
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="dsCompany" targetNamespace="http://tempuri.org/dsCompany.xsd" elementFormDefault="qualified" attributeFormDefault="qualified" xmlns="http://tempuri.org/dsCompany.xsd" xmlns:mstns="http://tempuri.org/dsCompany.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="dsCompany" msdata:IsDataSet="true">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="T_Company">
<xs:complexType>
<xs:sequence>
<xs:element name="COMP_CompanyId" type="xs:string"/>
<xs:element name="COMP_Name" type="xs:string" minOccurs="0"/>
<xs:element name="COMP_AddressLine1" type="xs:string" minOccurs="0"/>
<xs:element name="COMP_AddressLine2" type="xs:string" minOccurs="0"/>
<xs:element name="COMP_City" type="xs:string" minOccurs="0"/>
<xs:element name="COMP_StateCode" type="xs:string" minOccurs="0"/>
<xs:element name="COMP_Zip" type="xs:string" minOccurs="0"/>
<xs:element name="COMP_CountryCode" type="xs:string" minOccurs="0"/>
<xs:element name="COMP_PhoneNumber" type="xs:string" minOccurs="0"/>
<xs:element name="COMP_FaxNumber" type="xs:string" minOccurs="0"/>
<xs:element name="COMP_website" type="xs:string" minOccurs="0"/>
<xs:element name="COMP_CurrencyCode" type="xs:string"/>
<xs:element name="COMP_LocalVend" type="xs:boolean"/>
<xs:element name="COMP_Customer" type="xs:boolean"/>
<xs:element name="COMP_Agency" type="xs:boolean"/>
<xs:element name="COMP_LBSite" type="xs:boolean"/>
<xs:element name="T_Customer">
<xs:complexType>
<xs:sequence>
<xs:element name="COMP_CompanyId" type="xs:string"/>
<xs:element name="ContractNo" type="xs:string" minOccurs="0"/>
<xs:element name="CustomerCode" type="xs:string" minOccurs="0"/>
<xs:element name="CODA_CreditAccountCode" type="xs:string" minOccurs="0"/>
<xs:element name="CODA_DebitAccountCode" type="xs:string" minOccurs="0"/>
<xs:element name="CODA_CustomerCode" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="dsCompanyKey2" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:T_Company"/>
<xs:field xpath="mstns:COMP_CompanyId"/>
</xs:unique>
</xs:element>
</xs:schema>
With all those elements, should i be able to transform a java object in
what is experting .NET ? and how ?
Elise_Dupont@lionbridge.com
02/20/2002 01:17 PM
Please respond to soap-dev
To: soap-dev@xml.apache.org
cc:
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