Interview Questions

Describe the SOAP actor attribute?

SOAP Interview Questions and Answers


(Continued from previous question...)

Describe the SOAP actor attribute?

The actor Attribute
A SOAP message may travel from a sender to a receiver by passing different endpoints along the message path. However, not all parts of a SOAP message may be intended for the ultimate endpoint, instead, it may be intended for one or more of the endpoints on the message path.
The SOAP actor attribute is used to address the Header element to a specific endpoint.

Syntax
soap:actor="URI"
Example
<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.www.org/2010/12/soap-envelope"
soap:encodingStyle="http://www.www.org/2010/12//soap-encoding">

<soap:Header>
<m:Trans xmlns:m="http://www.www.org/2010/12/transaction/"
soap:actor="http://www.www.org/2010/12/appml/">234
</m:Trans>
</soap:Header>
...
...
</soap:Envelope>

(Continued on next question...)

Other Interview Questions