Retreiving urls within Navision

fweeee
Member Posts: 14
Hello,
I have a client who needs to retreive data from their credit card processor for reconcilation. This data comes in xml format, and can be retreived by entering in a certain url - if I enter the url (something like https://creditcardwebsite.com/creditcar ... d=password), and it displays the xml. I can then "save as" if I like.
Now I know this is intended to be automated - but I cant for the life of me work out how to automate this within Navision. There doesnt seem to be a dos command that can do this (unless I download a dos port of wget, which I am trying to avoid, as I want to use standard windows stuff only), and my playing with the internet automations has brought no joy yet.
Can someone help me please?
I have a client who needs to retreive data from their credit card processor for reconcilation. This data comes in xml format, and can be retreived by entering in a certain url - if I enter the url (something like https://creditcardwebsite.com/creditcar ... d=password), and it displays the xml. I can then "save as" if I like.
Now I know this is intended to be automated - but I cant for the life of me work out how to automate this within Navision. There doesnt seem to be a dos command that can do this (unless I download a dos port of wget, which I am trying to avoid, as I want to use standard windows stuff only), and my playing with the internet automations has brought no joy yet.
Can someone help me please?
0
Comments
-
HYPERLINK('https://creditcardwebsite.com/creditcardreport?username=client&password=password');
Put this code snippet in the OnPush trigger of a button for instance.0 -
DenSter,
Thanks for your reply, but I'm after something which is completely transparent to the user. I beleive the code you suggested will pop up internet explorer (or whatever their default web browser is), and the user will have to select "save as", etc etc.
I'm after something which automatically saves the page, without anything poping up.0 -
Sorry mate, can't help you out there :oops: . For that you'll probably have to use the MSIE object model, although I am not sure to what extent that is exposed within Navision.0
-
XmlHTTP is your friend. Here's an example that grabs the 'Recent Discussions' rss feed from mibuso and displays the title of the first item.
'xmlHTTP' is 'Microsoft XML, v4.0'.XMLHTTP40
'domDoc' is 'Microsoft XML, v4.0'.DOMDocument40
'domNode' is 'Microsoft XML, v4.0'.IXMLDOMNodeCREATE(xmlHTTP); xmlHTTP.open('GET','http://www.mibuso.com/rss/?feed=2',FALSE); xmlHTTP.send; domDoc := xmlHTTP.responseXML; domNode := domDoc.selectSingleNode('//rss/channel/item/title'); MESSAGE(domNode.text); CLEAR(domNode); CLEAR(domDoc); CLEAR(xmlHTTP);
0 -
Cool. And then you can use domDoc.Save('c:\somefolder\somename.xml'); to save it somewhere.0
-
Nice. Who will be the first to create a Navision object that displays the mibuso.com Discussions, while one is working with Navision ;-)No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
-
Hey guys, I was following your discussion and tried it myself.
It works perfectly fine with pure xml data. But is there a possibility to read just normal html-formated websites into navision ? I cant figure out how to read the complete website.
Thanks in advance for your help.
sabato
P.S. In fact it is nor a real html website, but i dont know if you guys are familiar with the wddc format ?
But one i have read the website into navision, i should be able to play around with it0 -
I have the same issue: but different...
Anybody knows how to retrieve jpg's in navision.
I have the url available eg http://site.com/12345.jpg.
Now I need to import the pic into a blob.
Anyone?0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions