Hello Client has their website running on linux using php.
They want to integrate with NAV. Sending orders etc.
I am suggesting using MSMQUEue and using NAV Comcom dll files.
I was wondering if linux system can send xml files to MSMQ. If yes, could you provide me with some code and any packages that needs to be installed. Thank you.
0
Comments
Isn't it possible to "talk" through webservices? One webservice (NAV side) sends XML to MSMQ and NAS picks it up. Other webservice (linux side) gets XML from NAV.
capiche?
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
Or you can do some research on MSMQ over HTTP (http://blogs.msdn.com/ihimmar/archive/2 ... 71996.aspx)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Is there an example using xmlttp to access msmq over http?
I would greatly appreciate it.
My other option is to create webservice on NAS. So what are the options to create a webservice in NAS?
RIS Plus, LLC
Just fill in a screen name. It brings you to a post on the msdn forum
http://forums.microsoft.com/MSDN/ShowPo ... 5&SiteID=1
which then has a link to:
http://msdn.microsoft.com/en-us/library/ms947353.aspx
http://www.BiloBeauty.com
http://www.autismspeaks.org
My point wasn't so much that I found THE answer for you (that would be arrogant
RIS Plus, LLC
I'm sure there are lot of companies that integrate NAV with a website running on linux (PHP) like mibuso.
What method do you use for two way integration?
Don't complain about just a mere 4 hours though, that's nothing. I've searched literally weeks for solutions because there was no training budget. The customer would not pay for me to go to training for 1 week, but there was no problem billing them for weeks of R&D, go figure
I don't know what else to say but 'keep it up', the answer must be out there
RIS Plus, LLC
1 - Web Service Based: Build a front end web service that runs on IIS & communicates to MSMQ. Then using some of the various tecniques that have been discussed on various message boards & whitepapers available from Microsoft hook up Navision to MSMQ via a NAS. Then you can access the message and use it however you would like within a Navision codeunit (run a dataport, XML Port, another codeunit or whatever) to handle order processing or creation. This gives you a fairly real time capabilities to integrate Navision with any other system (Linux or otherwise that can communicate via web services. If you don't have any of those pieces my company does offer these components packaged up in a framework for you to use.
2 - Direct Table Access: This is an approach that I've used in the past several times, it's simple, cheap to develop but not as clean and it doesn't offer real time functionality (and it requires you use SQL). Have your external system perform any reads directly from the Navision tables (READS ONLY). If you need to write anything back to Navision have the data put in a table that is made up of simple text fields. Have a NAS running that monitors records placed in this table and if it finds any it can then create a new order within Navision using standard Navision logic. The important thing here is that these designated "staging" tables are the only tables that an external system writes too. Navision is very picky about it's data types and so it's easy to corrupt things if you start trying to write records in standard Navision tables all on your own. See the URL below for an article on how to compile, build & link a PHP program to SQL server.
http://www.devarticles.com/c/a/PHP/Executing-Microsoft-SQL-Server-Stored-Procedure-from-PHP-on-Linux/
Good luck.
Epimatic Corp.
http://www.epimatic.com
We had a project where a web application on Unix/PHP/Oracle was interacting with NAS via sockets - the setup worked fine.
B3 Technologies - Making Technology Serve the People
Also if you build a web service based integration the overall solution will be ready if the client switches to NAV2009 in the future (as that has web service integration out of the box)
Epimatic Corp.
http://www.epimatic.com