What is the difference between a fault and exception in
Apache SOAP?
Answer / supra
The difference lies in where the error occurs - on the
client side (during the generation of the soap request or
the unmarshalling the response) - or on the server side
(when unmarshalling the request, processing the message or
marshalling the response). The client side raises an
exception whereas the server side sends a SOAP response to
the client indicating an error occured on the server side
(ie. you get a SOAP fault).
For example, sending a SOAP encoded request for a
method that does not exist results in a SOAP fault whereas
if the server sends a response with a field that does not
exist in a client side class a SOAP exception will be
raised.
| Is This Answer Correct ? | 8 Yes | 1 No |
What is soap and rest web services?
Explain about SOAP?
Differentiate soap and rest?
What are the types of Garbage Collectors ?
How does the message security model allow the creation of soap more secure to use?
What is the primary challenge when testing web services?
What are the different components can be used in the web services?
What are the various approaches available for developing soap based web services?
What is the main difference between soap and rest web services?
Enlist few frameworks in java to implement soap web services.
What are the steps involved in doing the data exchange between the client and the server?
What is the use of protocol rest?