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 web relation functionalities provided by soap protocol?

0 Answers  


Why is rest more popular than soap?

0 Answers  


What are the primary security issues of web service?

0 Answers  


Explain how you can parametrize the endpoints in soap ui?

0 Answers  


What are advantages of soap?

0 Answers  






What is a soap what for is it used?

0 Answers  


Explain the message element in wsdl?

0 Answers  


What are the differences between rest and soap?

0 Answers  


in soapui i am prepared test data and create request and run the request. response generated. this response data how to validate/verification. how to verify the xml data in database. write query to get xml response data in oracle query. pls help me

0 Answers  


What is an ESB?

5 Answers   Cognizant,


List out important characteristics of soap envelop element?

0 Answers  


What are the syntax rules for a soap message?

0 Answers  


Categories