validating the SOAP response in Magento 2.3

I am working on a module that connects to a third-party API using SOAP. What I want to know is

  • What are the best practices when developing with SOAP?
  • How to validate the SOAP response?
    For example, if the SOAP response comes in XML format, how to verify if a specific node is available
  • any auxiliary method to use

Thank you