# Schema Validation of SOAP in Postman

**URL:** <https://community.postman.com/t/schema-validation-of-soap-in-postman/15430>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [August 31, 2020, 2:51am UTC](https://community.postman.com/t/schema-validation-of-soap-in-postman/15430 "2020-08-31T02:51:41Z")\
**Posts on this page:** 6\
**Page:** 1

<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:** [August 31, 2020, 2:51am UTC](https://community.postman.com/t/schema-validation-of-soap-in-postman/15430/1 "2020-08-31T02:51:41Z")

</div>

Hello Everyone, I am using Postman for few months for testing REST API. Now we have a requirement for testing SOAP requests/responses.

I wanted to know whether we have any way to validate the schema of the SOAP responses?

Like the same way we do for any REST like below:

pm.test(‘Schema is valid for the generated Test Data’, function(){  
pm.response.to.have.jsonSchema(schema);  
});

Appreciate the responses 🙂

---

<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:** [August 31, 2020, 3:14pm UTC](https://community.postman.com/t/schema-validation-of-soap-in-postman/15430/2 "2020-08-31T15:14:16Z")

</div>

@odanylewycz Do you have any idea on this?

---

<div class="post-metadata">

**Author:** ![odanylewycz](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/odanylewycz/32/3240_2.png) [@odanylewycz](https://community.postman.com/u/odanylewycz)\
**Post date:** [September 1, 2020, 6:49pm UTC](https://community.postman.com/t/schema-validation-of-soap-in-postman/15430/3 "2020-09-01T18:49:26Z")

</div>

Hi @bpricilla,

To my knowledge, there isnt a direct way to validate SOAP Schema in Postman. It’s utilized more around JSON services, so you won’t see many things around XML.

However, since Postman is built off node.js, you might be able to use a node.js library thats not included in Postman. Below is a node.js library that could be used to validate xml schema. I have not personally used it, but I searched npm and its what I found.

> **[libxml-xsd](https://www.npmjs.com/package/libxml-xsd)**
>
> XSD validator based on libxml. Latest version: 0.5.2, last published: 8 years ago. Start using libxml-xsd in your project by running \`npm i libxml-xsd\`. There are 16 other projects in the npm registry using libxml-xsd.

I have also not tried to use different external libraries that are not within Postman, so I am not sure how this would work (or even it if would work), but figured I’d throw around the idea.

Hope this helps!

Orest

---

<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:** [September 2, 2020, 1:25am UTC](https://community.postman.com/t/schema-validation-of-soap-in-postman/15430/4 "2020-09-02T01:25:40Z")

</div>

Thanks for your effort 🙂 Will check this out!!

---

<div class="post-metadata">

**Author:** ![security-architect-2](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@security-architect-2](https://community.postman.com/u/security-architect-2)\
**Post date:** [September 20, 2021, 9:41am UTC](https://community.postman.com/t/schema-validation-of-soap-in-postman/15430/5 "2021-09-20T09:41:44Z")

</div>

@bpricilla Hi There, did you find any solution to validation schema validation of SOAP in postman. Please help me if you find any.

TIA

---

<div class="post-metadata">

**Author:** ![veenathomas2015](https://avatars.discourse-cdn.com/v4/letter/v/5f9b8f/32.png) [@veenathomas2015](https://community.postman.com/u/veenathomas2015)\
**Post date:** [December 15, 2021, 1:13am UTC](https://community.postman.com/t/schema-validation-of-soap-in-postman/15430/6 "2021-12-15T01:13:02Z")

</div>

@bpricilla , Have you found a way to do XML schema validation in postman? Please help to reply
