IF ISCLEAR(locautXmlDoc) THEN CREATE(locautXmlDoc,FALSE,TRUE); locautXmlDoc.load(XMLHTTP.responseXML); CREATE(xmlNodeList, FALSE, TRUE); xmlNodeList := locautXmlDoc.getElementsByTagName('CONNUMBER');
Cannot create an instance for the automation server with CLSIF ={XXX-XXXX}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><document><CREATE><CONREF>15D</CONREF><CONNUMBER>GE158487071ES</CONNUMBER><SUCCESS>Y</SUCCESS></CREATE></document>
Answers
And I get this error:
Use these functions/variables in your solution.
For example, rather than try The call wll return the XMLDocument var, which is a .NET type XML object
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
I've already created some automation variables like this, changing the "RunOnClient" paremeter to "YES", but in this case, It's not posible
Thanks, I'll try with this approach, Really appreciated!!!
edit: In this sentence, I have a compilation error:
locautXmlDoc DotNet System.Xml.XmlDocument.'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
"Cannot convert type because one of the operators has an invalid type
Text := Automation"
Which type must the objetcs be?
LoadXMLDocumentFromText accepts Text in the first parameter, so perhaps you should do this call in 2 steps:
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Thanks, I've tried that, But now, my error is when tryng to get the elemnt from the XML. I'm doing this:
But it says that assignment is not allowed for "xmlNodeList ". Should I change the type of the variable? What types are the bests for doin g this issue? I'm getting a mess whit DOMDocument, XMLDocuments....
Just analyse the functions available, it will give you answers. Look for FindNode in the first place.
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
But when I run the app, I see the error:
I've found this type of erros quite a lot while developing this application, and I fixed it changing the "RunOnClient" parameter on the DotNet variables. But now it's not working. When debbuging, I can see this:
It is failing in the 6224 CU. I've generated and made the HTTP request with Automation instead of DOTNet variables because of this issue
How can this problem be solved?