Options

DOTNET-Components on AZURE

Hello,

In the same session I'am declaring to times the same DOTNET-component, as a local variable.
But it seems that on Azure the second time, it is referring to the same object in memory.
If I run first #1 and then #2, I get this message

Een aanroep voor System.Xml.XmlElement.get_Count is mislukt met dit bericht:
Het type van een of meer argumenten komt niet overeen met het parametertype van de methode.

A call for System.Xml.XmlElement.get_Count failed with this message:
The type of one or more arguments does not match the parameter type of the method.


#1
#ReqXml := ReqXml.XmlDocument; System.Xml.XmlNodeList.'System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
ReqXml.LoadXml(pxmlRequest);
TopNode := ReqXml.SelectSingleNode(RequestNodeList[1]);
Attribute := TopNode.OwnerDocument.CreateAttribute('Access');


#2
lXmlDoc := lXmlDoc.XmlDocument(); System.Xml.XmlNodeList.'System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
lXmlHttp := lXmlHttpReqClass.XMLHTTPRequestClass();
lXmlHttp.open('POST', URL, FALSE, '','');
lXmlHttp.setRequestHeader('Content-type', 'text/xml; charset=utf-8');
lXmlHttp.setRequestHeader('SOAPAction','urn:ec.europa.eu:taxud:vies:services:checkVat:types');
lXmlHttp.send(RequestXML(pCountryCode,CleanVATNo("pVAT No.", pCountryCode)));
IF NOT (lXmlHttp.status = 200) THEN
MESSAGE(FORMAT(COPYSTR(lXmlHttp.statusText,1,250)));
ResponseString := lXmlHttp.responseText();
lXmlDoc.LoadXml(ResponseString);
lXmlNodeList := lXmlDoc.SelectNodes('//*');
lXMLNodeListCount := lXmlNodeList.Count;

Een aanroep voor System.Xml.XmlElement.get_Count is mislukt met dit bericht:
Het type van een of meer argumenten komt niet overeen met het parametertype van de methode.

Kind regards,
Jan
Sign In or Register to comment.