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


Please Help Members By Posting Answers For Below Questions

What are the elements of SOAP message structure?

503


What is entrust privacy service?

550


What are the major functionalities provided by the soap protocol class?

518


explain how you can parameterize the endpoints in soap ui?

528


what assertion is in soap ui is and give some example of assertion possible in soapui?

490






Inside the soapui where groovy script can be used?

471


What is the major obstacle users faced when using soap?

506


What is mandatory in soap message?

550


What is wc3 standards?How is the link between SOAP and webservices to it?

2136


State the syntax rule for soap message?

500


Explain about the SOAP body element?

541


What are transport methods in soap?

543


Why is rest more popular than soap?

503


what are the syntax rules for SOAP message?

564


What is a soap?

486