|
Home > Archive > BizTalk Server General > May 2006 > Desperately seeking an example of a dynamic SMTP adapter using BTS
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 |
Desperately seeking an example of a dynamic SMTP adapter using BTS
|
|
| Mark Brimble 2006-05-29, 7:15 pm |
| Can anyone point me in the direction of good example that sends a text email
message from an orchestration in BTS 2006? I have found an example by Seroter
someone on Winterdom.com but there is not enough detail to work out what I
have to do.
I am in the process of migrating all our BTS2004 intefaces to BTS2006 and
have hit a glitch in the way we used SMTP adapters in BTS2004. We have used
email notifications in many of our interfaces and used a message of type
System.String. We where not to bothered that the string gets formatted as an
XML document and never bothered to implement the Raw String code.
Unfotunately when the interface is migrated to BTS 2006 we get the following
error;
Event Type: Error
Event Source: BizTalk Server 2006
Event Category: BizTalk Server 2006
Event ID: 5754
Date: 30/05/2006
Time: 8:58:30 a.m.
User: N/A
Computer: *****
Description:
A message sent to adapter "SMTP" on send port
" CBORD_Send_to_Oracle_SMTPDynamicSendPort
" with URI
"mailto:dummy@adhb.govt.nz" is suspended.
Error details: There was a failure executing the send pipeline:
"Microsoft.BizTalk.DefaultPipelines.XMLTransmit,
Microsoft.BizTalk.DefaultPipelines, Version=3.0.1.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" Source: "XML assembler" Send Port:
" CBORD_Send_to_Oracle_SMTPDynamicSendPort
" URI: "mailto:dummy@adhb.govt.nz"
Reason: This Assembler cannot retrieve a document specification using this
type: "string".
MessageId: {B29B6ADA-7C7F-4376-91EA-933D6F9CC8BC}
InstanceID: {FB848C43-5EF0-4F68-98FE-059655AFD2C5}
The code where we assign the message is;
appSettings =
(System.Collections.Specialized.NameValueCollection)
System.Configuration.ConfigurationSettings.GetConfig("CBORDToOracle");
SMTPMessage = GenericDocument(FILE.ReceivedFileName) +
" has been saved in " + appSettings.Get("Message");
SMTPMessage(SMTP.Subject) = "CBORD to Oracle: " +
GenericDocument(FILE.ReceivedFileName) + " has arrrived";
SMTPMessage type is System.String. Do I change my message type or do i just
assign a the string to SMTP.EmailBodyText?
| |
| Tomas Restrepo \(MVP\) 2006-05-30, 1:16 am |
| Mark,
> Can anyone point me in the direction of good example that sends a text
> email
> message from an orchestration in BTS 2006? I have found an example by
> Seroter
> someone on Winterdom.com but there is not enough detail to work out what I
> have to do.
I think you're confusing Richard Seroter (blogs.msdn.com/richardbpi/) and me

> " CBORD_Send_to_Oracle_SMTPDynamicSendPort
" with URI
> "mailto:dummy@adhb.govt.nz" is suspended.
> Error details: There was a failure executing the send pipeline:
> "Microsoft.BizTalk.DefaultPipelines.XMLTransmit,
> Microsoft.BizTalk.DefaultPipelines, Version=3.0.1.0, Culture=neutral,
> PublicKeyToken=31bf3856ad364e35" Source: "XML assembler" Send Port:
> " CBORD_Send_to_Oracle_SMTPDynamicSendPort
" URI:
> "mailto:dummy@adhb.govt.nz"
> Reason: This Assembler cannot retrieve a document specification using this
> type: "string".
> MessageId: {B29B6ADA-7C7F-4376-91EA-933D6F9CC8BC}
> InstanceID: {FB848C43-5EF0-4F68-98FE-059655AFD2C5}
If you're trying to send a text message, why are you using the XmlTransmit
pipeline instead of a passthrough one? Might that be the problem?
--
Tomas Restrepo
tomasr@mvps.org
http://www.winterdom.com/
|
|
|
|
|