What is the difference between a fault and exception in
Apache SOAP?
Answer Posted / 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 |
Post New Answer View All Answers
What are the communication channels available for a web service?
State some disadvantages due to the usage of SOAP?
what is the general format for reading the custom or default property value?
What are the elements of a soap message?
Explain the difference between RPC and Local calls?
What are some important characteristics of a soap envelope element?
what is the end point in web services?
Why is rest preferred over soap?
What are the web relation functionalities that is provided by soap protocol?
Soap or rest apis, which method to use?
How does building a call allows the communication to take place in between the client and the server using soap?
How does soap work?
What are the factors that help to decide which style of web services – soap or rest – to use?
Discuss various approaches to develop soap based web service?
What is Simple Object Access Protocol (SOAP)?