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

Inside the soapui where groovy script can be used?

458


Explain about message passing in RPC?

506


What is the difference between soap and http?

490


What are the steps involved in doing the data exchange between the client and the server?

486


Explain how you can parametrize the endpoints in soap ui?

446






What is soap protocol used for?

484


How can user use the facilities that are provided by soap?

459


Explain about the encoding style attribute?

552


What are the disadvantages of soap web services?

465


What are the uses of soap?

469


How does the processing of the call() function happens on the server side using soap?

467


What is entrust entitlements service?

486


What are the elements which should be contained in SOAP message?

488


Can you elaborate on SoapBindingSkeleton?

2598


What are web services?

517