Forum Discussion

ili's avatar
ili
Occasional Contributor
3 years ago

Smart Assertion - assert logical/relationship contracts in response

Hi, I have soap response with format similar to the following dummy example, ... <person>      <firstName>xxxxxxxxxx</firstName>      <lastName>yyyyyyyyyy</lastName>      <phoneNumber>zzzzzzzzz...
  • KarelHusa's avatar
    3 years ago

    ili,

    your API definition (WSDL in the case of SOAP services) should say there's just one occurrence of the person in the answer in the schema definition (XSD).

     

    Afterward, you can use Schema Compliance assertion.

     

    With this approach, you can validate any issues relating to message structure.

     

    Best regards,

    Karel