Can anyone give me good resource pointer for the subject ? Does anyone have working experiences with MQ Bus Adapter ? Thanx for any hints
Marcus, There are some Navision code examples on the product CD. In addition to this you will need to know how to create MSMQ’s and the windows OS help had details. In most cases the MSMQ is used with XML so you also need the msxml DOM parser (down load from Microsoft) to handle the XML message in Navision. Are you going to be usning the bus adaptor in the context of a Navision web product or in a fully bespoke application? Reagrds, Chris.
Hi I am building a web application that communicates via NAS and MSMQ, my problem is when i have created the DOM Document with data inside Navision, I cant get it to write it out to the reply message, I am working on 3.60, here is the example I am trying with (snippet from the example provided by Navision). The Error is the string exceeds the length of the buffer, does anyone have a working example of a codeunit receiving xml and sending back XML? Navision: OutMsg:= InboundMessage.CreateReply; Outstrm:= OutMsg.GetStream; DomOut.save(‘c:\xmlfromnavi.txt’); Outstrm.WRITE(DomOut.xml); OutMsg.Send(0); XML Data: 2
Test company 1700 PACIFICEXT 2858DALLASMorten 214-111-1111 TX75201
Basicly your xml format & the command is correct. I have similar experience with that… mine is an aspx page trying to send a xml doc to mq and then parsed in navision. The string exceed buffer error message is shown because the ‘>’ in your .txt file is intepreted as ‘>’ and your ‘<’ is intepreted as ‘<’… try to look at the stream body of your MQ. try to format the xml (xmlfromnavi.txt) using native primitive from msxml3 library, don’t use the usual string concatenation
sorry… i mean ‘<’ is intepreted as ‘lt’ with (’&’) and ‘>’ is intepreted as ‘gt’ with (’&’)…