08-27-04 11:07 PM
Dave:
Try this:
1) Create a custom pipeline component.
2) Modify the Execute() method of this component, to look like this:
public Microsoft.BizTalk.Message.Interop.IBaseMessage
Execute(IPipelineContext pc, IBaseMessage inmsg)
{
string strAttachmentFileName = "Dave.xml";
inmsg.Context.Write("FileName","http://schemas.microsoft.com/BizTalk/2003/mi
me-properties ", strAttachmentFileName );
return inmsg;
}
3) Use this custom pipeline component, in the custom pipeline that you have
developed earlier. But put this component in a stage prior to the encoding
stage. The MIME/SMIME encoder should use this FileName property while
creating an attachment.
See if this works, otherwise I'll suggest something else.
Regards
Dev
"Dave" <Dave@discussions.microsoft.com> wrote in message
news:DCE50F1B-7088-499C-BE82-EFF2C89BE4B6@microsoft.com...
> Thanks, that worked for sending the attachment. How do I set the file
name
> and extension so it will show up as an XML file? It attached with a
generic
> name "Attachment0" in text format. The file looked good though when I
opened[vbcol=seagreen]
> it in notepad.
>
>
> "Devdutt Patnaik" wrote:
>
Component[vbcol=seagreen]
as[vbcol=seagreen]
once[vbcol=seagreen]
puts[vbcol=seagreen]
[ Post a follow-up to this message ]
|