Desperately seeking an example of a dynamic SMTP adapter using BTS
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server General > Desperately seeking an example of a dynamic SMTP adapter using BTS




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Desperately seeking an example of a dynamic SMTP adapter using BTS  
Mark Brimble


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-30-06 12:15 AM

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 Serote
r
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?









[ Post a follow-up to this message ]



    Re: Desperately seeking an example of a dynamic SMTP adapter using BTS  
Tomas Restrepo \(MVP\)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-30-06 06: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/







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:29 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register