I'm doing a proof-of-concept that uses PDF forms to submit data to a web service back end. I'm mostly there but I have some concerns about form robustness in the face of SOAP faults. The server is a J2EE application running on JBoss 3.2.6 using Axis 1.2.1.
Everything works nicely in the 'normal' case. We throw java exceptions if the data is bad (e.g. customer ID not found). All the other apps I have tried (InfoPath, custom java client code, VisualBasic.NET, etc) all recognize the exception (which is turned into a SOAP fault by Axis and passed back to the caller). However the PDF form doesn't give any indication that the SOAP response contained a fault. As far as the form user is concerned, everything went ahead. Am I missing something?
Can I get to the SOAP fault code with the java script on the service button events? If so, which event should I hook and which property should I be interrogating?