I have a web api that receives an XML document for processing. Every once in a blue moon, there is a control character(?) that causes the program to abort on a 15550 error.
I am wondering if perhaps I am not using the right tool or is there a way to clean the service request before the readXMLRequest() crashes
I am on RHEL 7.9
on BDL 3.20.11
code was modeled after (plagiarized) the demo web service in the manual.
CALL com.WebServiceEngine.Start()
WHILE (true)
LET req = com.WebServiceEngine.getHTTPServiceRequest(-1)
LET url = req.getURL()
IF url IS NULL THEN
DISPLAY "Failed: url should not be null"
continue while
end if
TRY
LET doc = req.readXMLRequest()
DISPLAY "Request is :", doc.saveToString()
... My code ...
CATCH
DISPLAY "Failed: unexpected error :", STATUS
EXIT PROGRAM (-1)
END TRY
END WHILE