Reputation: 317
I have BizTalk application with FILE incoming port and WCFCustom sending port.
WCFCustom sending port is calling stored procedure and passing message body as xml parameter to this stored procedure by specifying Template property like on screenshot below.
Body of the message is specified by the bts-msg-body tag.
Questions:
1.Is there any way to pass file name into stored procedure as additional parameter ?
2.Is thre way to send multiple parameters into stored procedure ?
Upvotes: 2
Views: 1111
Reputation: 372
The way I would do this is:
If your file is not XML you will probably need a custom pipeline component instead of a standard map (I would use the FixMsg example from the SDK).
Upvotes: 2
Reputation: 11527
The answer to 2, is it possible to send multiple parameters into the stored procedure. Yes it is
<ns0:StoredProc xmlns:ns0="http://schemas.microsoft.com/Sql/2008/05/Procedures/dbo">
<ns0:document>
<bts-msg-body xmlns="http://www.microsoft.com/schemas/bts2007" encoding="base64"/>
</ns0:document>
<ns0:documentname>
Test
</ns0:documentname>
</ns0:StoredProc>
How to populate the documentname from the message context property, that is the bit I can't figure out. Maybe someone else can come up with a suggestion for that.
Upvotes: 2