3.6 Examples of SOAP message body

Example of a SOAP message body including request:

<soapenv:Body>

  <per:personList>

    <firstName></firstName>

    <lastName>Tamm</lastName>

  </per:personList>

</soapenv:Body>


Request response:

<soapenv:Body>

  <per:personListResponse>

    <person>

      <personId>2109578339</personId>

      <firstName>Juhan</firstName>

      <lastName>Tamm</lastName>

      <birthDate>2001-11-13</birthDate>

      <personContact>

        <phone>+372 334 3321</phone>

        <e-mail>juhan.tamm@eesti.ee</e-mail>

        <address>Linnu tee 12, Tallinn</address>

      </personContact>

    </person>

  </per:personListResponse>

</soapenv:Body>


In the case of SOAP protocol, types of exchanged data are defined as XML schema, further discussed in the section describing WSDL.


Last modified: Tuesday, 16 May 2017, 12:12 PM