This discussion is archived
3 Replies Latest reply: Oct 17, 2012 2:02 AM by 967419 RSS

RE:Reading SOAP Element in java

967419 Newbie
Currently Being Moderated
Hi All,

I am calling one web service in java the output of web service is SOAP Element

when i tried to print that it gave the follwing o/p

<CheckKeyActivationResult xmlns="http://tempuri.org/">
<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="Table">
<xs:complexType>
<xs:sequence>
<xs:element name="TrialDays" type="xs:int" minOccurs="0"/>
<xs:element name="DownloadType" type="xs:string" minOccurs="0"/>
<xs:element name="NoOfLicense" type="xs:int" minOccurs="0"/>
<xs:element name="NoOfTimesActivated" type="xs:int" minOccurs="0"/>
<xs:element name="LicenseUsedNumber" type="xs:int" minOccurs="0"/>
<xs:element name="ProductActivationId" type="xs:int" 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="">
<Table diffgr:id="Table1" msdata:rowOrder="0">
<TrialDays>15</TrialDays>
<DownloadType>Trial</DownloadType>
<NoOfLicense>1</NoOfLicense>
<NoOfTimesActivated>1</NoOfTimesActivated>
<LicenseUsedNumber>0</LicenseUsedNumber>
<ProductActivationId>334</ProductActivationId>
</Table>
</NewDataSet>
</diffgr:diffgram>
</CheckKeyActivationResult>

now how can i extract the data individually for each elements

Please help

Thanks
Manoj

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points