Hi
I need help for read an xml that give me an asp .net web service, the xml is:
<?xml version="1.0" encoding="utf-8" ?>
- <DataSetClientes xmlns="http://tempuri.org/">
- <xs:schema id="DataSetClientes" targetNamespace="http://tempuri.org/DataSetClientes.xsd" xmlns:mstns="http://tempuri.org/DataSetClientes.xsd" xmlns="http://tempuri.org/DataSetClientes.xsd" xmlns

s="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com

ml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified">
- <xs:element name="DataSetClientes" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
- <xs:complexType>
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element name="CLIENTES">
- <xs:complexType>
- <xs:sequence>
<xs:element name="CLI_CODIGO" type="xs:string" minOccurs="0" />
<xs:element name="CLI_NOMBRE" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
- <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com

ml-msdata" xmlns:diffgr="urn:schemas-microsoft-com

ml-diffgram-v1">
- <DataSetClientes xmlns="http://tempuri.org/DataSetClientes.xsd">
- <CLIENTES diffgr:id="CLIENTES1" msdata:rowOrder="0">
<CLI_CODIGO>000049</CLI_CODIGO>
<CLI_NOMBRE>BANCO SANTANDER CENTRAL HISPANO, S.A.</CLI_NOMBRE>
</CLIENTES>
- <CLIENTES diffgr:id="CLIENTES2" msdata:rowOrder="1">
<CLI_CODIGO>000063</CLI_CODIGO>
<CLI_NOMBRE>BANCO MAPFRE</CLI_NOMBRE>
</CLIENTES>
- <CLIENTES diffgr:id="CLIENTES3" msdata:rowOrder="2">
<CLI_CODIGO>000065</CLI_CODIGO>
<CLI_NOMBRE>BARCLAYS BANK, S.A.E.</CLI_NOMBRE>
</CLIENTES>
and this is the code that give in string the xml:
try {
HttpTransport transport = null;
SoapObject soap = new SoapObject("http://tempuri.org/","ObtenerClientes");
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER10);
envelope.bodyOut = soap;
envelope.dotNet = true;
transport = new HttpTransport("http://100.1.1.126/WebService/service.asmx");
transport.debug = true;
transport.call("http://tempuri.org/ObtenerClientes", envelope);
soapMesg = envelope.getResult().toString();
//StringItem item = new StringItem("Resultado: ", envelope.getResult().toString());
//formulario.append(item);
} catch (Exception e) {
formulario.append(e.toString());
e.printStackTrace();
}
But how can i work with this xml code?
Thanks, Oscar