Interview Questions

What do SOAP Messages/Dialogues look like?

SOAP Interview Questions and Answers


(Continued from previous question...)

What do SOAP Messages/Dialogues look like?

Following is an example SOAP request and its respective response. This dialogue pertains to a call of a simple method that doubles a given integer.

Method Signature
int doubleAnInteger ( int numberToDouble );

Request

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:doubleAnInteger
xmlns:ns1="urn:MySoapServices">
<param1 xsi:type="xsd:int">123
</ns1:doubleAnInteger>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

(Continued on next question...)

Other Interview Questions