Testing the SOAP Fault Trapping Code
Using the Terminal you can test the error trapping code in the ContactApplication.SOAPServiceSoap Demo method.
-
Open the Terminal in the namespace in which you installed the client application.
-
Invoke the ContactApplication.SOAPServiceSoap Demo method, passing it an invalid ID value.
SAMPLES>Do ##class(ContactApplication.SOAPServiceSoap).Demo(0)
The following is the result of the Demo method's error trapping code:
faultcode=ContactNotFound
faultstring=application error
faultactor=
detail=Contact with id 0 could not be found!