What is the difference between a fault and exception in
Apache SOAP?



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

Post New Answer

More SOAP Interview Questions

What are the syntax rules for a soap message?

0 Answers  


What is soap protocol used for?

0 Answers  


How is SOAP different from the Ariba and Commerce One Standards of cXML etc?

0 Answers  


Soap or rest apis, which method to use?

0 Answers  


Which is better rest or soap?

0 Answers  


What are disadvantages of soap?

0 Answers  


Explain about the SOAP Envelope element?

0 Answers  


What do you mean by SOAP encoding?

1 Answers  


Explain about SOAP?

0 Answers  


How does building a call allows the communication to take place in between the client and the server using soap?

0 Answers  


what is the difference between a web service and SOA?

0 Answers  


What is soap client?

0 Answers  


Categories