PDA

View Full Version : XML to ValueTree being called using an empty XML handle



RonaldZwiers
21-May-2015, 02:57 AM
I Suspect that in the package cClientWebService.pkg on line 2305 there is an expression that contains an error.

The expression is as follows:

Else If (hoChildNode and ;
(IsElementNS(hoChildNode, If(bRpc,"", ChildSoapParamDef.sNamespace), ChildSoapParamDef.sName)) or ;
(ChildSoapParamDef.hoStruct and pbSimpleContent(ChildSoapParamDef.hoStruct)) ) Begin
Get XMLToValueTree ChildSoapParamDef hoChildNode (&iError) to ChildValueTree

If for whatever reason hoChildNode is 0 this expression can still become True. The result is that XMLToValueTree will be called without a valid handle to an XML document, resulting in a number of error messages.

I attached an example to demonstrate the problem.

Regards,

Ronald Zwiers

Dennis Piccioni
22-May-2015, 12:45 PM
Thanks for your report Ronald.

I have sent you an email with a fix that I would like you to test.

RonaldZwiers
4-Jun-2015, 07:39 AM
Thanks to John and Dennis this problem has been solved. A patched version of cClientWebService.pkg will be shipped with version 18.1.

Ronald