kumar krishnan

kumar krishnan

  • NA
  • 1
  • 990

Parsing kSoap response

Sep 2 2015 9:08 AM
Hi,
      I have ASP.NET webservice which return the ksoap response  like this 
 
anyType{schema=anyType{element=anyType{complexType=anyType{choice=anyType{element=anyType{complexType=anyType{sequence=anyType{element=anyType{}; element=anyType{}; element=anyType{}; element=anyType{}; element=anyType{}; }; }; }; }; }; }; }; diffgram=anyType{}; }
 
   Browser output of my Asmx webservice like this
 <DataSet>
<xs:schema id="NewDataSet">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
<xs:complexType>
  <xs:choice minOccurs="0" maxOccurs="unbounded">
  <xs:element name="Table">
   <xs:complexType>
    <xs:sequence>
     <xs:element name="Id" type="xs:int" minOccurs="0"/>
     <xs:element name="CategoryName" type="xs:string" minOccurs="0"/>
      <xs:element name="Active" type="xs:boolean" minOccurs="0"/>
       <xs:element name="CategoryCode" type="xs:string" minOccurs="0"/>
        <xs:element name="CreateDate" type="xs:dateTime" minOccurs="0"/>
        </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>55</Id><CategoryName>Filippo Berio Olive Oil</CategoryName>
        <Active>true</Active>
        <CategoryCode>FB</CategoryCode>
        <CreateDate>2014-07-26T18:42:41.85+08:00</CreateDate>
     </Table>
    <Table diffgr:id="Table2" msdata:rowOrder="1">
    <Id>8</Id>
    <CategoryName>Ideal Sunflower Oil</CategoryName>
    <Active>true</Active>
    <CategoryCode>IO</CategoryCode>
    <CreateDate>2014-07-26T18:42:41.85+08:00</CreateDate>
    </Table>
   </NewDataSet>
   </diffgr:diffgram>
  </DataSet>
 
    I was stuck past 7 days    how can i parse this. Could any body help to  me.
 
   Thanks and regards
   kumar
 
 

Answers (1)