2

I am a newbie to SOAP services, I want to extract XML from the following SOAP response which belongs to corresponding SOAP request, so my XML is contained in a String tag. I want to extract the xml from the String Tag. Please give me the solution with an example

<?xml version="1.0" encoding="UTF-8"?>
<string xmlns="http://www.webserviceX.NET/">
   <StockQuotes>
      <Stock>
         <Symbol>STRING</Symbol>
         <Last>0.00</Last>
         <Date>N/A</Date>
         <Time>N/A</Time>
         <Change>N/A</Change>
         <Open>N/A</Open>
         <High>N/A</High>
         <Low>N/A</Low>
         <Volume>N/A</Volume>
         <MktCap>N/A</MktCap>
         <PercentageChange>N/A</PercentageChange>
         <AnnRange>N/A - N/A</AnnRange>
         <Earns>N/A</Earns>
         <P-E>N/A</P-E>
         <Name>STRING</Name>
      </Stock>
   </StockQuotes>
</string>
jasonlam604
  • 1,456
  • 2
  • 16
  • 25
Hala Rowan
  • 169
  • 6

1 Answers1

0

Take a look here: How to read XML using XPath in Java

You do not need any specific tool for SOAP. You just need to get info from your XML.

Community
  • 1
  • 1
ruhungry
  • 4,506
  • 20
  • 54
  • 98
  • my soap xml response is previously what i mention the code like that only within that string tag, it just come like text eg:STRING0.00N/A N/AN/A N/AN/A N/A N/AN/A N/A - N/AN/A N/ASTRING – Hala Rowan Mar 24 '14 at 04:47