Access violation error in RemObjects SDK - Delphi XE2

Hello,

we’ve got a problem in RemObjects SDK using SOAP PROTOCOL (DocumentLiteral).

If an SOAP envelope contains commentaries, like in a ComplexType,
RemObjects SDK returns an access violation error (becauses it tries to call Node.AttributeCount on it, and fNode.Attributes is unassigned…)

Thanks for all,

Can you give a test case or example of SOAP request and WSDL, please?

OK, here it is.

WSDL :
http://dral.free.fr/SOAP.zip

Envelope (I added a comment at the same place than OSB do) :
http://dral.free.fr/envelope.zip

Thanks for all,

Hi.

Thank you for test case, this issue was fixed. As workaround change

function TROMSXMLNode.GetAttributeCount: integer;
begin
  if assigned(fNode.attributes) then result := fNode.attributes.length
  else result := 0;
end;

or if you are using OpenXML

function TROOpenXMLNode.GetAttributeCount: integer;
begin
  if assigned(fNode.attributes) then result := fNode.attributes.length
  else result := 0;
end;

OK thanks for all,
do you know when next update will be published ?

Unfortunately this fix wasn’t included in latest release. Meanwhile you’ll need fix source manually.

OK, thank you…

Hello,

you'll need fix source manually.
Or just wait for the beta version which will come after the release, presumably at the end of the week.

Best regards - Sergey.

Thanks for all !!!