getHTTPServiceRequest crashes reading xml data with non traditional characters.

Started by Paul M., January 22, 2024, 03:55:47 PM

Previous topic - Next topic

Paul M.

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



Olivier E.

Hello Paul,

May I ask you if you get the same problem in Genero BDL 4.01.06 or the latest Genero EAP V5?

Thank you,

--
Olivier Eckert – Four Js Customer Care