BizTalk Server Orchestration - how capture filename from a receive port

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > October 2005 > how capture filename from a receive port





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author how capture filename from a receive port
sean rogers

2005-10-13, 6:00 pm

hi

i have a receive port looking at a folder for *.xml files.

On occassions these files may be schema invalid - so i would like to capture
the original filename for logging purposes. so i can send this back to the
sender.

Is it possible to do this - i imagine somewhere in the receive port before
the message gets given a Guid.

thanks very much

Stephen W. Thomas

2005-10-13, 6:00 pm

Hello.

Seems like you are doing the same thing (it is about 7 posts down):
http://msdn.microsoft.com/newsgroup...81-95b22b3fd07b

The Received File is a property in the message. You can access it inside an
Orchestation Expression Shape like this: YourMessage(File.ReceivedFileName).

The easiest way to do what you want is to do you schema validation inside
the Orchestation rather then the pipeline. Otherwise, it will get error in
the pipeline and those are harder to deal with.

Hope this helps.

Stephen W. Thomas
http://www.biztalkgurus.com
http://geekswithblogs.net/sthomas/


"sean rogers" wrote:

> hi
>
> i have a receive port looking at a folder for *.xml files.
>
> On occassions these files may be schema invalid - so i would like to capture
> the original filename for logging purposes. so i can send this back to the
> sender.
>
> Is it possible to do this - i imagine somewhere in the receive port before
> the message gets given a Guid.
>
> thanks very much
>

Avinash

2005-10-26, 2:48 am

Hi,
I have got similar scenarios to be implemented in our project. The problem
is the incoming message doesn't contain any target namespace value. To
counter this i have created a custom pipeline where using memory stram i am
writing a new xml document with the target namespace appended in the roor
node. But in this scenario how do i get the original file name.
Or is there any other way to handle namespace and filename capture issues.
An early reply will be highly appreciated. Thanks in advance.
Regards,
Avi
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com