Hello. Im beginner in Nav and I have been assigned to convert form to page. When I convert to page the xml will not import to the XMLport like it did with the form.
What is the reason for that? Does anyone have solution for this?
- - - - - -- - - - - -- - - - - - - - - - -- - - - - -- - - - - - -- - - - - - -- - - - -- - - - - - -- - - - - - -- - - - -
Name DataType Subtype Length
ReadyXMLDoc Automation 'Microsoft XML, v4.0'.DOMDocument 40
XMLDoc Automation 'Microsoft XML, v4.0'.DOMDocument 40
XMLHTTP Automation 'Microsoft XML, v4.0'.XMLHTTP 40
XMLHTTP.open('GET',Url,FALSE,User,Password);
XMLHTTP.send(); // send url to get an answer
IF (XMLHTTP.status = 200) THEN BEGIN // answer is OK
IF ISCLEAR(XMLDoc) THEN
IF NOT CREATE(XMLDoc) THEN
ERROR(Text000);
XMLDoc.async:=FALSE;
XMLDoc := XMLHTTP.responseXML; // load the answer #02
CLEAR(TempTable);
TempTable.CALCFIELDS(Picture);
TempTable.Picture.CREATEOUTSTREAM(OutStreamMessage);
TempTable.Picture.CREATEINSTREAM(InStreamMessage);
IF ISCLEAR(ReadyXMLDoc) THEN
CREATE(ReadyXMLDoc);
IF NOT RemoveNamespace(XMLDoc,ReadyXMLDoc) THEN // remove namespace
ERROR(Text003,Url);
ReadyXMLDoc.save(OutStreamMessage); // save answer to an outstream
XmlCollectorPort.SETSOURCE(InStreamMessage);
IF NOT XmlCollectorPort.IMPORT THEN // import the data
ERROR(Text001) // Here comes my error
0
Comments
http://msdn.microsoft.com/en-us/library/ee414220.aspx
http://www.BiloBeauty.com
http://www.autismspeaks.org
But how can I do this so the XML port will import xml. How can I catch the XML from instream if I cannot use BLOB to the instream?
Can anyone show me an example?