Pass Through data to AIC
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 Applications Integration > Pass Through data to AIC




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

    Pass Through data to AIC  
Curt Vasbinder


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


 
04-19-04 11:36 PM

I am using BizTalk 2002 and need to have the receive function pickup the fil
e send it to the channel/port as passthru.  In the port I have the primary t
ransport as a lightweight AIC, but because I am using a passthru, the data i
n not coming into the AIC a
s ASCII chaacters.  How do I convert the data using c#?





[ Post a follow-up to this message ]



    RE: Pass Through data to AIC  
mark


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


 
04-21-04 08:35 AM

Hi,
here's a small code snippet. It could be improved
but it should give you some ideas to work with.

// Is this a PassThru?
bool IsPassThru=false;
object PT = dict["IsPassThrough"];
if (null != PT)
{
if (DBNull.Value != PT)
IsPassThru = Convert.ToBoolean(dict["IsPassThrough"]);
}

if (IsPassThru)
{
UnicodeEncoding unicBSTR = new UnicodeEncoding();
Byte[] encodedBSTR = unicBSTR.GetBytes((string)dict["working_data"])
;
int biztalkLength = (int) dict["PTDataLen"];
FileStream fs = new FileStream(strLocalFilename, FileMode.Create);
BinaryWriter w = new BinaryWriter(fs);
w.Write(encodedBSTR);
w.Close();
fs.Close();
}





[ Post a follow-up to this message ]



    RE: Pass Through data to AIC  
Curt Vasbinder


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


 
04-29-04 07:37 PM

Mark, this was the trick that I needed.  Thanks for your help.....





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:34 AM.      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