Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Biztalk
Biztalk General discussion about Biztalk server.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Biztalk section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 8th, 2005, 01:34 AM
Registered User
Join Date: Sep 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default BizTalk MSMQ - Help Needed

Hello Friends,

I am new in Biztalk server 2004. I need a solution for my project.

Below I give my problem, Please give me a good solution for me.
I have a C# application. It has an upload page. If user uploads a XML file,the C# application reads it and send this to MSMQ as a Message.
The code is below.

StreamReader sr = new StreamReader(Path);
string str;
str = sr.ReadToEnd();
System.Messaging.Message mm = new System.Messaging.Message();
mm.Formatter = new ActiveXMessageFormatter();
mm.Body = str.ToString();
mm.Label = UserID;

I create a Orchestration with receive and send ports. The receive ports looks message from the MSMQ using MSMQ adapter. then I use schemas and maps to transfer the Message. After that, I use a file adapter for save the final message to a folder.

Every thing works fine. My problem is, I want to identify the User who uploads the file. In C# application I set the label for the message as USERID.

I want to save the name of the output file is [userid].xml.

I use %SourceFileName% and MsgOut(FILE.ReceivedFileName) to rename the output file. But how to get the userid from the C# application and set the file name. I cant able to access MSMQT.Label in Expression Editor. Because I use MSMQ adapter. Please give me a good solution.

The main problem is identify the user who uploads the file.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Receiving MSMQ Messages obrienkev C# 0 August 25th, 2008 05:17 AM
MSMQ with FormatName tyh79 VB Components 1 September 26th, 2007 02:44 AM
MSMQ Triggers Tofu General .NET 0 September 8th, 2004 08:52 PM
Configuring MSMQ mchu7aa3 VB Components 0 January 26th, 2004 01:17 PM
How to delete a specified message in MSMQ? scorpion Pro VB 6 0 September 15th, 2003 10:15 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.