02-08-04 01:41 PM
Hi Divi,
That's what configuration files are for.
Also, to tie in with Jan's suggestion: if you have an open submission, you
don't need the name of anything except the dummy channel.
We've given you two alternatives. Both viable.
1) Jan's idea: if you get a blank document, have your preprocessor create a
dummy XML file as it's return value. Set up the receive function to be
"Open" so that Biztalk will automatically route the dummy document. Set up
a dummy channel that will pick it up, send it to a dummy port, connected to
an AIC that discards it.
2) My idea: set up a a dummy channel that expects an XML document every
single time (Just like Jan's dummy channel). Set up a preprocessor to look
at the input data, and if there is something valid there, submit it to
Biztalk from within the Preprocessor. Use the config file to hold the
settings that you'd like to submit it with (I have six different submission
"sets" in my config file, allowing me to sidestep Biztalk's automatic
routing function, since the senders may send files that don't EXACTLY match
the selection criteria in Biztalk.)
A third alternative:
3) Write your own Receive function. Instead of picking up every file from
the drop directory, it will pick up every file but only submit the ones to
Biztalk that have contents in them. This one's a hassle and hardly seems
worth it, but there's no mystery to it.
Good Luck,
--- Nick
"divihari" <divihari@yahoo.com> wrote in message
news:0cde01c3db74$bbdb5a30$a301280a@phx.gbl...
> HI
> it sounds good if i hard code the channel name in
> preprocessor for sbumitting.the problem is i have a
> generic preprocessor which does common stuff across lot of
> interfaces . so i do not have a mechanism to know the
> channel name if doc is not blank.
> any ideas to to
> thanks
> divi
> dummy channel
> submit it to the real
> its
> some
> he
[ Post a follow-up to this message ]
|