Interview Questions

What software elements must be assembled to build a SOAP Server?

SOAP Interview Questions and Answers


(Continued from previous question...)

What software elements must be assembled to build a SOAP Server?

In this section we will look at what are the main system elements in a typical SOAP-based system, what they do and how they interact.

Let's look at the Client-Side first. As we have seen, all our dialogues with the server running the web service are done via SOAP. Remember, SOAP does not specify a transport but HTTP is common. This example presumes the use of HTTP (but you could just as easily use SMTP). As such, our messages to the server will be SOAP-XML requests wrapped in HTTP requests. Likewise the responses from the server will be HTTP responses that enclose SOAP-XML responses. Now, we as client-side developers do not want to have to worry about all the details of SOAP serialization and HTTP encoding, so we employ a SOAP package to do this for us. This is typically a library that we link into our own client code. We would then invoke services simply by invoking the appropriate method in the SOAP package (typically specifying the service URL, service name and all required parameters). The first job of the SOAP package is to serialize this service invocation into a SOAP request. It then needs to encode that message in a HTTP request and send it to the specified URL.

What the server does with this request is detailed further down on this page. But for the moment let's take it for granted that the server sends us back a HTTP-encoded message containing the SOAP response. We rely on the same SOAP package to do the reverse of what was done at the request stage, ie. we rely on it to decode the HTTP message and extract the SOAP message, then deserialize the SOAP message and obtain the return value of the method call. The return value found is then passed as the return value to the original method invocation by the client code.

Read More...

http://www.soapuser.com/basics4.html

(Continued on next question...)

Other Interview Questions