KSOAP parsing

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

KSOAP parsing

Postby Quest » Tue Sep 02, 2008 10:11 am

Hi all ,

Can any body help me how to get values in New DataSet tags which is KSOAP response ..

The response is from .NET server

[size=18][size=12]<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<fetchclaimResponse xmlns="http://tempuri.org/">
<fetchclaimResult>
<xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="claimdata">
<xs:complexType>
<xs:sequence>
<xs:element name="claim_no" type="xs:string" minOccurs="0" />
<xs:element name="assign_date" type="xs:string" minOccurs="0" />
<xs:element name="insured" type="xs:string" minOccurs="0" />
<xs:element name="status" 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:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<NewDataSet xmlns="">
<claimdata diffgr:id="claimdata1" msdata:rowOrder="0">
<claim_no>10001</claim_no>
<assign_date>08/08/2005</assign_date>
<insured>bajaj</insured>
<status>In-Progress</status>
</claimdata>
<claimdata diffgr:id="claimdata2" msdata:rowOrder="1">
<claim_no>11111</claim_no>
<assign_date>11111111</assign_date>
<insured>wddf</insured>
<status>Pending</status>
</claimdata>

..........................................
The response XML is coming like this.
But when I set KsoapResponse.getgetProperty("NewDataSet");
its giving error illegal Property NewDataSet.

I am unable to catch what id the problem.Please help me guys.

Thanks
User avatar
Quest
Junior Developer
Junior Developer
 
Posts: 16
Joined: Tue Aug 26, 2008 8:04 am

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 3 guests