[u]OnRun()[/u] IF ISCLEAR(Comcom) THEN CREATE(Comcom); IF ISCLEAR(MQBus) THEN CREATE(MQBus); IF ISCLEAR(XMLDoc) THEN CREATE(XMLDoc); Comcom.AddBusAdapter(MQBus,1); MQBus.OpenReceiveQueue('edi\private$\myq',1,1); [u]FindNode(RootNode : Automation "'Microsoft XML, v3.0'.IXMLDOMNode";XMLNode : Automation "'Microsoft XML, v3.0'.IXMLDOMNode") XmlString [/u] CLEAR(XMLNode); XMLNode := RootNode.selectSingleNode('string'); IF ISCLEAR(XMLNode) THEN XmlString := '' ELSE XmlString := XMLNode.text; [u]Comcom::MessageReceived(VAR InMessage : Automation "''.IDISPATCH")[/u] InMsg := InMessage; InStr := InMsg.GetStream; XMLDoc.load(InStr); Line := FindNode(XMLDoc,XMLDoc); MESSAGE(Line);
Comments
RIS Plus, LLC
Thanks for the response. I do have that label. I had already researched that part. Any more ideas?
Thanks in advance
RIS Plus, LLC
<order><no>12345</no></order>
And then I'm just sending this string to the MSMQ. I'm not really sending an XML doc. Maybe I should try the same thing you did. I will keep you posted. I will get a chance to know by wednesday.
I really appreciate your suggestion.
Thanks
The only difference they said was that the message in the Queue on their end has the XML version in front of the actual xml data. On my end, it's a bunch of special characters before the xml data.
MBS support guy used a C# form to generate the xml message. They used the following, where mqFromNavision is the message queue object: ASP does not have the method they're using. Has anyone worked on a similar problem? Please help!
Thanks in advance
Have you had XMLDom given you the reason why it complains?
Can you share the characters that you are trying to load?
Br,
Jorge
“This posting is provided "AS IS" with no warranties, and confers no rights.”