Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: getHTTPServiceRequest crashes reading xml data with non traditional characters.  (Read 3999 times)
Paul M.
Posts: 16


« on: January 22, 2024, 03:55:47 pm »

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.
Four Js
Posts: 204


« Reply #1 on: February 05, 2024, 07:30:26 pm »

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
restore b.
Posts: 1


« Reply #2 on: February 21, 2024, 11:22:17 am »

I had the same problem in Genero BDL 4.01.06. happy wheels
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines