# SOAP XML Response Data Extraction

**URL:** <https://forum.uipath.com/t/soap-xml-response-data-extraction/551135>\
**Category:** Studio\
**Tags:** project-panel, question, studio, webapi, activities\
**Created:** [June 5, 2023, 5:15am UTC](https://forum.uipath.com/t/soap-xml-response-data-extraction/551135 "2023-06-05T05:15:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![athiramuraleedharan](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@athiramuraleedharan](https://forum.uipath.com/u/athiramuraleedharan)\
**Post date:** [June 5, 2023, 5:15am UTC](https://forum.uipath.com/t/soap-xml-response-data-extraction/551135/1 "2023-06-05T05:15:34Z")

</div>

Hello

Iam trying to extract data from an XDocument Variable. But iam uanble to do the same. XML is as below. Could anyone please help in extracting data from the same.

```auto
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <ns4:abcReviewRepairLookupListResponse xmlns:ns2="http://www.abc.com/connector/schema/basetypes" xmlns:ns3="http://www.abc.com/connector/schema/claimtypes" xmlns:ns4="http://www.abc.com/connector/schema/claim/extract">
         <status>SUCCESS</status>
         <abcResult>
            <abcNumber>12345</abcNumber>
            <frequencyCode>1</frequencyCode>
         </abcResult>
         <abcResult>
            <abcNumber>45789</abcNumber>
            <frequencyCode>1</frequencyCode>
         </abcResult>
 </ns4:abcReviewRepairLookupListResponse>
   </soap:Body>
</soap:Envelope>

```

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [June 5, 2023, 5:16am UTC](https://forum.uipath.com/t/soap-xml-response-data-extraction/551135/2 "2023-06-05T05:16:57Z")

</div>

@athiramuraleedharan

Please check this on detailed explanation

> [@XML Extraction - Handling Namespaces (Tableau, Soap, OASIS types)](https://forum.uipath.com/t/xml-extraction-handling-namespaces-tableau-soap-oasis-types/401623/3):
>
> Going ahead Serializing the XML - output: xDoc | DataType: XDocument: [grafik] Checking if we have to handle XML namespaces We do have: [grafik] Checking for some children: [grafik] Defining Namespace Variable bulb In some cases, we can also do: Assign Activity - xnsDefault = xDoc.Root.Name.Namespace Checkin the retrieval [grafik] xDoc.Descendants(xnsDefault + "productVersion") GetDescendants { [\<productVersion build="456" xmlns="http://tableau.com/api"\>123\</…

cheers

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [June 8, 2023, 5:17am UTC](https://forum.uipath.com/t/soap-xml-response-data-extraction/551135/3 "2023-06-08T05:17:04Z")

</div>

Closed on June 8, 2023, 5:17am UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
