Yep, I've seen that - the only problem is, that my computer doesn't have the registry keys that are in settings, thus I don't know what is supposed to be there...
Yep, pretty much. I don't know what should be there - what keys and what values.
I could also use a small sample of how to send and receive a message - somehow google doesn't show much it this subject.
And a general question - how is CPHandler better than ComCom2 + MSMQBusAdaper? more efficient?...
IF NOT queuehandler.ListenToLabel(v_claveregistro, v_pathregistro) THEN
ERROR('Can´t read');
You have define the cphandler automation with "with events" property and the system creates the event MessageReceived. This event occurs when a new message is received.
The codeunit whe you define this automation must have the "single instance" propertie with yes value.
To send a message is easier, you only need the name of the destination queue and a xml message and use the send to label method.
In Polish we also have some special chars, but when I use MSMQ Bus + XMLports (which encode data for example in UTF-8) I didn't have problems with special chars.
Comments
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I could also use a small sample of how to send and receive a message - somehow google doesn't show much it this subject.
And a general question - how is CPHandler better than ComCom2 + MSMQBusAdaper? more efficient?...
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
i'm using cphandler for interchange xml documents between Navision and other applications and it works fine.
It has one restriction, you must use cphandler in both sides. In exah machine you have define the registry keys.
With ComCom2 + MSMQBusAdaper i have problems wirh spanish spcial characters.
I give you an example:
v_pathregistro:='SOFTWARE\Navision\Navision_Infoges\'; //Path in the registry key
v_claveregistro:='Receive_queue';
//Registro windows is the automation 'Windows Script Host Object Model'.WshShell
v_colarecibir:=RegistroWindows.RegRead(('HKEY_LOCAL_MACHINE\'+v_pathregistro+v_claveregistro);
IF NOT queuehandler.ListenToLabel(v_claveregistro, v_pathregistro) THEN
ERROR('Can´t read');
You have define the cphandler automation with "with events" property and the system creates the event MessageReceived. This event occurs when a new message is received.
The codeunit whe you define this automation must have the "single instance" propertie with yes value.
To send a message is easier, you only need the name of the destination queue and a xml message and use the send to label method.
Regards, David.
RIS Plus, LLC
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
In Polish we also have some special chars, but when I use MSMQ Bus + XMLports (which encode data for example in UTF-8) I didn't have problems with special chars.