Last post Apr 25, 2009 02:55 AM by sachin.dhake
Apr 21, 2009 03:09 AM|sachin.dhake|LINK
I am trying to integrate classic ASP (Client Application) + MSMQ + .Net (Window Service).
I am trying to achieve following using classic ASP web application as Client and .Net Windows Service as windows serice.
1. I have classic ASP page that generates XML document containing customer details populated from database. I am using
Microsoft.XMLDOM to generate XML document.
2. The generated XML is submitted as MSMQ.MSMQMessage
to MSMQ service for processing
3. A windows service, built using .Net 2.0, will pick up this messages and will send out notifcation email to all customers whoes data is present in MSMQMessage XML file.
The problem I am facing is while reading the XML document which is submitted as part of MSMQMessage. When the generated XML document is submitted to MSMQ from Classic ASP, it automatically appends additional information (garbage ?) to XML that is being sent
to MSMQ, which can bee seen from the "Body" tab of MSMQ Message. This is creating problems for Windows Service and it is not able to read the document.
I just want to send an XML from classic ASP to MSMQ Service and process it from .Net Windows service.
I tried sending XML as string instead of XML Document, but no success.
Please help me if I have missed anyting, or if i am on wrong path. Thanks in advance
Apr 21, 2009 04:53 AM|qwe123kids|LINK
Y donot u create COM Object In Csharp..
Create Object For MSQM in COM..
U can Check code here for MSQM ..
Create Comobject for It..
U can check Above The Link mention below how to use COM in Classic Asp whcih is Build in csharp
Once u have Register Your DLL U can Pass Parameter to Object creatd in COM and Through Cl;asic asp
Hope it helps
Apr 22, 2009 12:20 AM|sachin.dhake|LINK
Thanks for reply. I had idea of using COM component for the purpose, but dont have much information as how to implement it. I had been working on this issue from last 4-5 days, but no success. For now we have decided to make use of Windows Services as replacement
over MSMQ [:(].
I will give it a try using COM, but that will be my last option.
Thanks for help.
Apr 22, 2009 03:04 AM|sachin.dhake|LINK
I had gone through the links you have mentioned for building COM object, and have created separate COM object for passing information from Classic ASP to MSMQ.
It works fine till we create an instance of COM component and assign values to it in ASP page. The issue I am facing now is with
MSMQ.MSMQMessage, when I set our COM instance as BODY of MSMQMessage object. It prompts with an error saying "Interface is not supported".
I googled for this and found out that to use COM object as BODY of MSMQMessage, COM component must support
IPersist and IDispatch interface.
Any idea what is wrong with the implementation, or I am on wrong path. Please suggest.
Thanks in advance.
Apr 22, 2009 09:04 AM|qwe123kids|LINK
Check the abovemention link
Hope it helps
Apr 23, 2009 12:48 AM|qwe123kids|LINK
U can Also use Server To Server Hit..
using classoc Asp..
Create MsQm -- Application In Asp.net Page...
Know pass pagrameter in from Classic Asp In from of Query String Or Post methos as u wwanrt
when U receive The psoetd Data on Aspx Page u can Modify the record and As U want..
the data Would receive By Aspx Page When U hit Internally and It would set the MSQM in Quee..
Hope this helps
Apr 25, 2009 02:55 AM|sachin.dhake|LINK
Thanks a lot for your help and the links you have provided, those were really helpful.
But for now i have put the idea of impementing the mailing feature using MSMQ aside as client is in hurry and have asked to implement it ASAP using regular Windows Service.
Again Thanks a log for your help...