我已经复制了我在浏览器上得到的 Soap 响应,我如何使用 soap 在 Android 中解析这个响应?我用过 SoapObject obj = (SoapObject)mySoapEnvelop.getResponse(); 但我得到 obj.getPropertyCount() = 1 。
我在这一点上很困惑,谁能帮我出来???
这是我的完整回复:
真的
<Data>
<xs:schema id="NewDataSet" >
<xs:element
name="NewDataSet"
msdata:IsDataSet="true"
msdata:Locale="" >
<xs:complexType>
<xs:choice
maxOccurs="unbounded"
minOccurs="0" >
<xs:element name="Table" >
<xs:complexType>
<xs:sequence>
<xs:element
name="ID"
minOccurs="0"
type="xs:int" />
<xs:element
name="UniqueID"
minOccurs="0"
type="xs:string"
msdata:DataType="System.Guid, mscorlib,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<xs:element
name="FullName"
minOccurs="0"
type="xs:string" />
<xs:element
name="Title"
minOccurs="0"
type="xs:string" />
<xs:element
name="Phone"
minOccurs="0"
type="xs:string" />
<xs:element
name="Email"
minOccurs="0"
type="xs:string" />
<xs:element
name="CreatedDate"
minOccurs="0"
type="xs:dateTime" />
<xs:element
name="Website"
minOccurs="0"
type="xs:string" />
<xs:element
name="CompanyName"
minOccurs="0"
type="xs:string" />
<xs:element
name="LeadStatus"
minOccurs="0"
type="xs:string" />
<xs:element
name="StatusName"
minOccurs="0"
type="xs:string" />
<xs:element
name="IsRead"
minOccurs="0"
type="xs:boolean" />
<xs:element
name="OwnerName"
minOccurs="0"
type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram>
<NewDataSet>
<Table
diffgr:id="Table1"
msdata:rowOrder="0" >
<ID>6</ID>
<UniqueID>8d93aab5-086f-41bb-b8ec-03b3eb0aa463</UniqueID>
<FullName>bhatt</FullName>
<Title />
<Phone />
<Email />
<CreatedDate>2012-02-24T13:14:06.773+05:30</CreatedDate>
<Website />
<CompanyName>xyz</CompanyName>
<LeadStatus>Qualified</LeadStatus>
<StatusName>Approved</StatusName>
<IsRead>false</IsRead>
<OwnerName>Admin admin</OwnerName>
</Table>
</NewDataSet>
</diffgr:diffgram>
</Data>