DC_Xml2ObjectTree

This forum is for eXpress++ general support.
Post Reply
Message
Author
Wolfgang Ciriack
Posts: 478
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

DC_Xml2ObjectTree

#1 Post by Wolfgang Ciriack »

Hi Roger,
with that code, sometimes i get the above error:

Code: Select all

oHttp := xbHTTPClient():new()
oResponse:=oHttp:Execute(script,"POST","xml="+xbEscape(cXmlStr))
if oResponse == NIL
   cRet:="Kommunikations-HTTP-Fehler !"
else
   cRet:=oResponse:Content
   oR:=DC_Xml2ObjectTree( cRet )
How can i prevent this error ? (I use XBase 1.9.355, eXPress 266, Xb2net 3.6.05)
error1.png
error1.png (76.64 KiB) Viewed 6952 times
_______________________
Best Regards
Wolfgang

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DC_Xml2ObjectTree

#2 Post by rdonnay »

The problem is with the XML that is returned in the response.

You need to write that XML to a file before calling DC_Xml2ObjectTree() so it can be investigated.

cRet:=oResponse:Content
MemoWrit('Response.Xml',cRet)
oR:=DC_Xml2ObjectTree( cRet )

DC_Xml2ObjectTree() uses the Alaska XML parser.

That is where the IDSC is occurring.

The next time you get an IDSC error, send me the XML so I can see if I can reproduce the error.
The eXpress train is coming - and it has more cars.

Wolfgang Ciriack
Posts: 478
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: DC_Xml2ObjectTree

#3 Post by Wolfgang Ciriack »

Ok, thank you Roger, i will try to catch one, it is difficult, because i have seen this error only 4 or 5 times in the last 3 month at 3 of 16 customers.
_______________________
Best Regards
Wolfgang

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DC_Xml2ObjectTree

#4 Post by rdonnay »

You will need to inform your customers to save away the Response.xml file immediately after the runtime error, otherwise it will get overwritten by the next XML request.
The eXpress train is coming - and it has more cars.

Post Reply