*This post is locked for comments
I would start here....
Application Designers Guide
PART 8 XMLPorts
Chapter 21 XMLPorts
XMLport Fundamentals
Designing XMLports
XMLport Examples
Validating Data
XMLports and Business Notification
Also, available in the Mibuso.com download section
Xml Export 1.3i
viewtopic.php?f=7&t=1775
XML Import Sample v1.0i
viewtopic.php?f=7&t=2266
FYI - here are some dataport examples
In a roundabout way you can use NAS, but I don't know if it's possible with PHP.
First of all, NAV 2009 can expose codeunits as web services, so in that version you don't need NAS even. For earlier versions you'd have to create logic in NAV that monitors a message queue, or a TCP/IP socket, and this logic runs inside an instance of NAS. Then in your PHP you send XML messages into the message queue or the socket. The MSMQ adapter is very limited though (it must have a hard coded message label, no transactional queue, things like that) but it works very well.
Thanks Daniel!
We are also looking at integrating through xml ports. Can you please let me know if it is possible to perform real-time update between NAV and PHP using NAS? Can we call codeunits and execute xml ports directly from php?
Hari
[quote user="Hari"]sales orders in csv format from webshop [/quote]
Have you considered using XML format? Coming from a webshot I'd think that would not be too difficult to implement, and that will give you much more flexibility.
Hi Hari,
You can write the dataport directly into the sale order tables but the way I normally do this is to base the dataport on the Virtual table "Integer". This allows me to test the imported value are valid and log issues. If using this way then you need to code the insertion into the sales order tables.
Hope this helps
Thanks Dave for your reply!
I am importing sales orders in csv format from webshop developed using php and MySQL and have all the details that are required for an order.
Thanks
Hari
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156