# Need help saving GET request response in XML format (or converting to JSON) and then doing a POST request after

**URL:** <https://community.postman.com/t/need-help-saving-get-request-response-in-xml-format-or-converting-to-json-and-then-doing-a-post-request-after/17253>\
**Category:** Help Hub\
**Created:** [October 30, 2020, 12:41am UTC](https://community.postman.com/t/need-help-saving-get-request-response-in-xml-format-or-converting-to-json-and-then-doing-a-post-request-after/17253 "2020-10-30T00:41:00Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![bpricilla](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/bpricilla/32/6511_2.png) [@bpricilla](https://community.postman.com/u/bpricilla)\
**Post date:** [March 26, 2021, 10:19am UTC](https://community.postman.com/t/need-help-saving-get-request-response-in-xml-format-or-converting-to-json-and-then-doing-a-post-request-after/17253/13 "2021-03-26T10:19:27Z")

</div>

@AzhaguBanca Welcome to the community 🥳

SOAP response should be handled differently compared to JSON parsing.

So here in your case,

```auto
pm.environment.set("paymentid", jsonData['soap:Envelope']['soap:Body']['tns:DetailPayment']['tns:PaymentId']);

```

I have tried roughly based on the visible response. If not working, please provide me the full response 🙂

Also kindly read the below [link](https://community.postman.com/t/soap-api-testing-in-postman/19553/2) if you need to know more about SOAP response parsing.

Please create a separate topic in future for your queries, so that it will be addressed. Also I request you to consider the points [here](https://community.postman.com/t/how-to-best-ask-questions-on-community-to-get-the-answers-you-need/16912) for your next query here.

---

_[View the full topic](https://community.postman.com/t/need-help-saving-get-request-response-in-xml-format-or-converting-to-json-and-then-doing-a-post-request-after/17253)._
